diff options
Diffstat (limited to 'engine/include/exception.hpp')
-rw-r--r-- | engine/include/exception.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/engine/include/exception.hpp b/engine/include/exception.hpp new file mode 100644 index 0000000..47eb272 --- /dev/null +++ b/engine/include/exception.hpp @@ -0,0 +1,22 @@ +#ifndef __FLAT_ERROR_H__ +#define __FLAT_ERROR_H__ + +#include <exception> + +class FlatException : public std::exception +{ + const char * error; + +protected: + + virtual const char * specific() const = 0; + +public: + + FlatException(const char* error); + virtual ~FlatException(); + + virtual const char* what() const throw() override; +}; + +#endif |