OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
exception.hpp
Go to the documentation of this file.
1 #ifndef COMPILER_EXCEPTION_H_INCLUDED
2 #define COMPILER_EXCEPTION_H_INCLUDED
3 
4 #include <exception>
5 
6 namespace Compiler
7 {
9 
10  class SourceException : public std::exception
11  {
12  public:
13 
14  virtual const char *what() const throw() { return "compile error";}
16  };
17 
19 
21  {
22  public:
23 
24  virtual const char *what() const throw() { return "can't read file"; }
26  };
27 
29 
31  {
32  public:
33 
34  virtual const char *what() const throw() { return "end of file"; }
36  };
37 }
38 
39 #endif
virtual const char * what() const
Return error message.
Definition: exception.hpp:24
Exception: Error while parsing the source.
Definition: exception.hpp:10
Exception: File error.
Definition: exception.hpp:20
virtual const char * what() const
Return error message.
Definition: exception.hpp:14
virtual const char * what() const
Return error message.
Definition: exception.hpp:34
Exception: EOF condition encountered.
Definition: exception.hpp:30