sgp4/TleException.h

30 lines
445 B
C
Raw Normal View History

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