2011-12-16 23:38:28 +00:00
|
|
|
#ifndef SATELLITEEXCEPTION_H_
|
|
|
|
#define SATELLITEEXCEPTION_H_
|
|
|
|
|
|
|
|
#include <exception>
|
|
|
|
|
2012-10-25 19:40:47 +00:00
|
|
|
/**
|
|
|
|
* @brief The exception that the SGP4 class throws upon an error.
|
|
|
|
*/
|
2011-12-16 23:38:28 +00:00
|
|
|
class SatelliteException : public std::exception
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SatelliteException(const char* message)
|
|
|
|
: message_(message)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual ~SatelliteException(void) throw ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual const char* what() const throw ()
|
|
|
|
{
|
|
|
|
return message_.c_str();
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string message_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|