summaryrefslogtreecommitdiff
path: root/src/game/SaveLoadException.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/SaveLoadException.h')
-rw-r--r--src/game/SaveLoadException.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/game/SaveLoadException.h b/src/game/SaveLoadException.h
new file mode 100644
index 0000000..fea2ad5
--- /dev/null
+++ b/src/game/SaveLoadException.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 SaveLoadException: public exception {
+ string message;
+public:
+ SaveLoadException(string message_): message(message_) {}
+ const char * what() const throw()
+ {
+ return message.c_str();
+ }
+ ~SaveLoadException() throw() {};
+};
+
+#endif /* SAVELOADEXCEPTION_H_ */