src/gengine/BaseException.h
raw| 1 | #ifndef HEADER_BASEEXCEPTION_H |
| 2 | #define HEADER_BASEEXCEPTION_H |
| 3 | |
| 4 | #include "ExInfo.h" |
| 5 | |
| 6 | #include <stdexcept> |
| 7 | |
| 8 | /** |
| 9 | * Generic exception. |
| 10 | */ |
| 11 | class BaseException : public std::exception { |
| 12 | private: |
| 13 | ExInfo m_info; |
| 14 | public: |
| 15 | explicit BaseException(const ExInfo &exinfo); |
| 16 | virtual ~BaseException() throw() {} |
| 17 | virtual const char *what() const throw(); |
| 18 | virtual const ExInfo &info() const throw(); |
| 19 | }; |
| 20 | |
| 21 | #endif |