diff options
Diffstat (limited to 'engine/flatexception.cpp')
-rw-r--r-- | engine/flatexception.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/engine/flatexception.cpp b/engine/flatexception.cpp new file mode 100644 index 0000000..0216dd5 --- /dev/null +++ b/engine/flatexception.cpp @@ -0,0 +1,16 @@ +#include "flatexception.h" +#include <stdio.h> + +FlatException::FlatException(const char* error) : error(error) {} + +FlatException::~FlatException() {} + +char buffer[256]; + +const char* FlatException::what() const throw() +{ + sprintf(buffer, "%s thrown: %s", specific(), error); + + return &buffer[0]; +} + |