summaryrefslogtreecommitdiff
path: root/src/game/GameModelException.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-03-29 15:17:30 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-03-29 15:17:30 (GMT)
commit289556ac7078963b6af361f5812dd62e6712359f (patch)
tree77bfff7d8594fcefe1220a0789dd69af58a48a25 /src/game/GameModelException.h
parent1f388e4ca02f0a84e4b9d9b19e6308224389818d (diff)
downloadpowder-289556ac7078963b6af361f5812dd62e6712359f.zip
powder-289556ac7078963b6af361f5812dd62e6712359f.tar.gz
Replace Error notification with exception for Tags model
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_ */