diff options
author | Nao Pross <naopross@thearcway.org> | 2019-01-25 01:11:57 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2019-01-25 01:11:57 +0100 |
commit | bcd14a356cafe58808b4c2a14782ebb194c6abc5 (patch) | |
tree | 3bc95288b0a0172bb447ccf218fb59821f22501a /engine/include/exception.hpp | |
parent | Delete bin and test/makefile update .gitignore (diff) | |
download | flatland-bcd14a356cafe58808b4c2a14782ebb194c6abc5.tar.gz flatland-bcd14a356cafe58808b4c2a14782ebb194c6abc5.zip |
Rename everything under engine/ to remove `flat' and be `.hpp'
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 |