sgp4/SatelliteException.h

25 lines
453 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