diff --git a/SatelliteException.h b/SatelliteException.h index fc35b08..02f428b 100644 --- a/SatelliteException.h +++ b/SatelliteException.h @@ -4,17 +4,20 @@ #include #include -class SatelliteException : public std::exception { +class SatelliteException : public std::exception +{ public: - 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(); } @@ -22,4 +25,4 @@ private: std::string message_; }; -#endif \ No newline at end of file +#endif