mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 21:19:40 +00:00
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
|
class SourceException : public std::exception
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
virtual const char *what() const throw() { return "compile error";}
|
virtual const char *what() const throw() { return "compile error";}
|
||||||
///< Return error message
|
///< Return error message
|
||||||
};
|
};
|
||||||
|
@ -17,6 +19,8 @@ namespace Compiler
|
||||||
|
|
||||||
class FileException : public SourceException
|
class FileException : public SourceException
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
virtual const char *what() const throw() { return "can't read file"; }
|
virtual const char *what() const throw() { return "can't read file"; }
|
||||||
///< Return error message
|
///< Return error message
|
||||||
};
|
};
|
||||||
|
@ -24,7 +28,10 @@ namespace Compiler
|
||||||
/// \brief Exception: EOF condition encountered
|
/// \brief Exception: EOF condition encountered
|
||||||
|
|
||||||
class EOFException : public SourceException
|
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
|
///< Return error message
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue