summaryrefslogtreecommitdiff
path: root/src/virtualmachine/Exceptions.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-14 21:03:14 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-14 21:03:14 (GMT)
commit486b34ebe581cf41b67145911a64ce2ea7b8932a (patch)
tree6752bc0bb7245bbd5009061b504f03b02790b58b /src/virtualmachine/Exceptions.h
parent685be24ffa1eba28aa378b8a9b4fd52dbe238756 (diff)
downloadpowder-486b34ebe581cf41b67145911a64ce2ea7b8932a.zip
powder-486b34ebe581cf41b67145911a64ce2ea7b8932a.tar.gz
Fixes invalid text pasting, Adds API to VM, allow program loading in Lua and assigning to update function
Diffstat (limited to 'src/virtualmachine/Exceptions.h')
-rw-r--r--src/virtualmachine/Exceptions.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/virtualmachine/Exceptions.h b/src/virtualmachine/Exceptions.h
index fbc4341..9628d10 100644
--- a/src/virtualmachine/Exceptions.h
+++ b/src/virtualmachine/Exceptions.h
@@ -86,4 +86,15 @@ namespace vm
}
~OutOfMemoryException() throw() {};
};
+
+ class InvalidProgramException: public RuntimeException
+ {
+ public:
+ InvalidProgramException() {}
+ const char * what() const throw()
+ {
+ return "Could not load program";
+ }
+ ~InvalidProgramException() throw() {};
+ };
} \ No newline at end of file