summaryrefslogtreecommitdiff
path: root/src/game/GameModelException.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GameModelException.h')
-rw-r--r--src/game/GameModelException.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/game/GameModelException.h b/src/game/GameModelException.h
new file mode 100644
index 0000000..05138f2
--- /dev/null
+++ b/src/game/GameModelException.h
@@ -0,0 +1,26 @@
+/*
+ * SaveLoadException.h
+ *
+ * Created on: Mar 29, 2012
+ * Author: Simon
+ */
+
+#ifndef SAVELOADEXCEPTION_H_
+#define SAVELOADEXCEPTION_H_
+
+#include <string>
+#include <exception>
+using namespace std;
+
+struct GameModelException: public exception {
+ string message;
+public:
+ GameModelException(string message_): message(message_) {}
+ const char * what() const throw()
+ {
+ return message.c_str();
+ }
+ ~GameModelException() throw() {};
+};
+
+#endif /* SAVELOADEXCEPTION_H_ */