sgp4/TleException.h

25 lines
423 B
C
Raw Normal View History

2011-05-31 12:06:22 +00:00
#ifndef TLEEXCEPTION_H_
#define TLEEXCEPTION_H_
#include <exception>
#include <iostream>
class TleException : public std::exception {
public:
TleException(const char* message)
: message_(message) {
}
virtual ~TleException(void) throw () {
}
virtual const char* what() const throw () {
return message_.c_str();
}
private:
std::string message_;
};
#endif