diff --git a/TleException.h b/TleException.h index e047f33..129a3c4 100644 --- a/TleException.h +++ b/TleException.h @@ -4,17 +4,21 @@ #include #include -class TleException : public std::exception { +class TleException : public std::exception +{ public: TleException(const char* message) - : message_(message) { + : message_(message) + { } - virtual ~TleException(void) throw () { + virtual ~TleException(void) throw () + { } - virtual const char* what() const throw () { + virtual const char* what() const throw () + { return message_.c_str(); } @@ -22,4 +26,4 @@ private: std::string message_; }; -#endif \ No newline at end of file +#endif