|
|
@ -10,8 +10,8 @@ namespace Compiler
|
|
|
|
class SourceException : public std::exception
|
|
|
|
class SourceException : public std::exception
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
virtual const char *what() const throw() { return "Compile error";}
|
|
|
|
const char *what() const noexcept override { return "Compile error";}
|
|
|
|
///< Return error message
|
|
|
|
///< Return error message
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -20,18 +20,18 @@ namespace Compiler
|
|
|
|
class FileException : public SourceException
|
|
|
|
class FileException : public SourceException
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
virtual const char *what() const throw() { return "Can't read file"; }
|
|
|
|
const char *what() const noexcept final { return "Can't read file"; }
|
|
|
|
///< Return error message
|
|
|
|
///< Return error message
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/// \brief Exception: EOF condition encountered
|
|
|
|
/// \brief Exception: EOF condition encountered
|
|
|
|
|
|
|
|
|
|
|
|
class EOFException : public SourceException
|
|
|
|
class EOFException : public SourceException
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
virtual const char *what() const throw() { return "End of file"; }
|
|
|
|
const char *what() const noexcept final { return "End of file"; }
|
|
|
|
///< Return error message
|
|
|
|
///< Return error message
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|