From 85c75b235d82da8d3872d5c7f9ff927038170370 Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Tue, 13 Dec 2011 23:04:46 +0000 Subject: [PATCH] Updated TleException --- TleException.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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