sgp4/SatelliteException.h

29 lines
473 B
C++

#ifndef SATELLITEEXCEPTION_H_
#define SATELLITEEXCEPTION_H_
#include <exception>
#include <iostream>
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