mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
799 B
C++
33 lines
799 B
C++
15 years ago
|
#ifndef COMPILER_EXCEPTION_H_INCLUDED
|
||
|
#define COMPILER_EXCEPTION_H_INCLUDED
|
||
|
|
||
|
#include <exception>
|
||
|
|
||
|
namespace Compiler
|
||
|
{
|
||
|
/// \brief Exception: Error while parsing the source
|
||
|
|
||
|
class SourceException : public std::exception
|
||
|
{
|
||
|
virtual const char *what() const throw() { return "compile error";}
|
||
|
///< Return error message
|
||
|
};
|
||
|
|
||
|
/// \brief Exception: File error
|
||
|
|
||
|
class FileException
|
||
|
{
|
||
|
virtual const char *what() const throw() { return "can't read file"; }
|
||
|
///< Return error message
|
||
|
};
|
||
|
|
||
|
/// \brief Exception: EOF condition encountered
|
||
|
|
||
|
class EOFException
|
||
|
{
virtual const char *what() const throw() { return "end of file"; }
|
||
|
///< Return error message
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|