From 4f249346b1fcae95dca83d3cc314e3a28b609fdb Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Tue, 13 Dec 2011 23:05:57 +0000 Subject: [PATCH] Updated SatelliteException --- SatelliteException.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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