OpenMW
|
00001 #ifndef COMPILER_EXCEPTION_H_INCLUDED 00002 #define COMPILER_EXCEPTION_H_INCLUDED 00003 00004 #include <exception> 00005 00006 namespace Compiler 00007 { 00009 00010 class SourceException : public std::exception 00011 { 00012 public: 00013 00014 virtual const char *what() const throw() { return "compile error";} 00016 }; 00017 00019 00020 class FileException : public SourceException 00021 { 00022 public: 00023 00024 virtual const char *what() const throw() { return "can't read file"; } 00026 }; 00027 00029 00030 class EOFException : public SourceException 00031 { 00032 public: 00033 00034 virtual const char *what() const throw() { return "end of file"; } 00036 }; 00037 } 00038 00039 #endif