diff options
Diffstat (limited to 'src/virtualmachine/Exceptions.h')
| -rw-r--r-- | src/virtualmachine/Exceptions.h | 11 |
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 |
