From 01edd8deb5406d6d1f7eeedcb40abf61247e96de Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Wed, 21 Jul 2010 10:57:21 +0200 Subject: [PATCH] compiler exception class fixes --- components/compiler/exception.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/compiler/exception.hpp b/components/compiler/exception.hpp index 979315801..a28663115 100644 --- a/components/compiler/exception.hpp +++ b/components/compiler/exception.hpp @@ -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 }; }