From 27e213e2f9ac709a8f453d0d4b48eba1fdbb8547 Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Thu, 1 Jul 2010 18:03:41 +0200 Subject: [PATCH] line ending fixes; hopefully for the last time --- components/compiler/exception.hpp | 50 +++++++++++++++---------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/components/compiler/exception.hpp b/components/compiler/exception.hpp index 3f0ff4c55c..03e80f2500 100644 --- a/components/compiler/exception.hpp +++ b/components/compiler/exception.hpp @@ -1,32 +1,32 @@ -#ifndef COMPILER_EXCEPTION_H_INCLUDED -#define COMPILER_EXCEPTION_H_INCLUDED - -#include - -namespace Compiler -{ - /// \brief Exception: Error while parsing the source - +#ifndef COMPILER_EXCEPTION_H_INCLUDED +#define COMPILER_EXCEPTION_H_INCLUDED + +#include + +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 + { + virtual const char *what() const throw() { return "compile error";} + ///< Return error message }; - - /// \brief Exception: File error - + + /// \brief Exception: File error + class FileException : public SourceException { - virtual const char *what() const throw() { return "can't read file"; } - ///< Return error message + virtual const char *what() const throw() { return "can't read file"; } + ///< Return error message }; - - /// \brief Exception: EOF condition encountered - + + /// \brief Exception: EOF condition encountered + class EOFException : public SourceException - { virtual const char *what() const throw() { return "end of file"; } - ///< Return error message + { virtual const char *what() const throw() { return "end of file"; } + ///< Return error message }; -} - -#endif +} + +#endif