diff options
Diffstat (limited to 'src/libjin/common/exception.h')
-rw-r--r-- | src/libjin/common/exception.h | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/src/libjin/common/exception.h b/src/libjin/common/exception.h index 0dee14c..f46b607 100644 --- a/src/libjin/common/exception.h +++ b/src/libjin/common/exception.h @@ -9,37 +9,37 @@ namespace JinEngine { - /// - /// Jin Exception. - /// - class Exception : public Object, public std::exception - { - public: - /// - /// Creates a new Exception according to printf-rules. - /// - /// @param fmt The format string (see printf). - /// - Exception(const char *fmt, ...); - virtual ~Exception() throw(); - - /// - /// Returns a string containing reason for the exception. - /// - /// @return A description of the exception. - /// - inline virtual const char *what() const throw() - { - return mMessage.c_str(); - } - - private: - /// - /// Exception message. - /// - std::string mMessage; - - }; + /// + /// Jin Exception. + /// + class Exception : public Object, public std::exception + { + public: + /// + /// Creates a new Exception according to printf-rules. + /// + /// @param fmt The format string (see printf). + /// + Exception(const char *fmt, ...); + virtual ~Exception() throw(); + + /// + /// Returns a string containing reason for the exception. + /// + /// @return A description of the exception. + /// + inline virtual const char *what() const throw() + { + return mMessage.c_str(); + } + + private: + /// + /// Exception message. + /// + std::string mMessage; + + }; } // namespace JinEngine |