sgp4/SatelliteException.h

29 lines
473 B
C
Raw Normal View History

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