forked from mirror/openmw-tes3mp
compiler exception class fixes
This commit is contained in:
parent
a87175446c
commit
01edd8deb5
1 changed files with 8 additions and 1 deletions
|
@ -9,6 +9,8 @@ namespace Compiler
|
|||
|
||||
class SourceException : public std::exception
|
||||
{
|
||||
public:
|
||||
|
||||
virtual const char *what() const throw() { return "compile error";}
|
||||
///< Return error message
|
||||
};
|
||||
|
@ -17,6 +19,8 @@ namespace Compiler
|
|||
|
||||
class FileException : public SourceException
|
||||
{
|
||||
public:
|
||||
|
||||
virtual const char *what() const throw() { return "can't read file"; }
|
||||
///< Return error message
|
||||
};
|
||||
|
@ -24,7 +28,10 @@ namespace Compiler
|
|||
/// \brief Exception: EOF condition encountered
|
||||
|
||||
class EOFException : public SourceException
|
||||
{ virtual const char *what() const throw() { return "end of file"; }
|
||||
{
|
||||
public:
|
||||
|
||||
virtual const char *what() const throw() { return "end of file"; }
|
||||
///< Return error message
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue