diff options
Diffstat (limited to 'src/libjin/Common/je_exception.h')
-rw-r--r-- | src/libjin/Common/je_exception.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/libjin/Common/je_exception.h b/src/libjin/Common/je_exception.h deleted file mode 100644 index c319ebd..0000000 --- a/src/libjin/Common/je_exception.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef __JE_EXCEPTION_H__ -#define __JE_EXCEPTION_H__ - -#include <exception> -#include <string> - -namespace JinEngine -{ - - /// - /// Jin Exception. - /// - class Exception : 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 - -#endif
\ No newline at end of file |