sgp4/SatelliteException.h

23 lines
415 B
C
Raw Normal View History

#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