2011-03-25 02:03:05 +00:00
|
|
|
#ifndef SATELLITEEXCEPTION_H_
|
|
|
|
#define SATELLITEEXCEPTION_H_
|
|
|
|
|
|
|
|
#include <exception>
|
|
|
|
#include <iostream>
|
|
|
|
|
2011-03-30 17:16:37 +00:00
|
|
|
class SatelliteException : public std::exception {
|
2011-03-25 02:03:05 +00:00
|
|
|
public:
|
|
|
|
|
2011-03-30 17:16:37 +00:00
|
|
|
SatelliteException(const char* message)
|
|
|
|
: message_(message) {
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual ~SatelliteException(void) throw () {
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual const char* what() const throw () {
|
|
|
|
return message_.c_str();
|
|
|
|
}
|
2011-03-25 02:03:05 +00:00
|
|
|
|
|
|
|
private:
|
2011-03-30 17:16:37 +00:00
|
|
|
std::string message_;
|
2011-03-25 02:03:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|