Updated SatelliteException
parent
85c75b235d
commit
4f249346b1
|
@ -4,17 +4,20 @@
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
class SatelliteException : public std::exception {
|
class SatelliteException : public std::exception
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
SatelliteException(const char* message)
|
SatelliteException(const char* message)
|
||||||
: message_(message) {
|
: message_(message)
|
||||||
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~SatelliteException(void) throw () {
|
virtual ~SatelliteException(void) throw ()
|
||||||
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual const char* what() const throw () {
|
virtual const char* what() const throw ()
|
||||||
|
{
|
||||||
return message_.c_str();
|
return message_.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,4 +25,4 @@ private:
|
||||||
std::string message_;
|
std::string message_;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue