diff options
Diffstat (limited to 'server/src/exception.h')
-rw-r--r-- | server/src/exception.h | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/server/src/exception.h b/server/src/exception.h index 4a0ce23..e0a47fc 100644 --- a/server/src/exception.h +++ b/server/src/exception.h @@ -31,35 +31,32 @@ #include <string> -namespace Pentominos { - +/** + * Exception is the base class for all Pentominos exceptions + */ +class Exception : public std::exception { +public: /** - * Exception is the base class for all Pentominos exceptions + * The constuctor sets the error message (retained by the what() call) and + * adds an entry to the syslog, using the Pentominos::log interface. */ - class Exception : public std::exception { - public: - /** - * The constuctor sets the error message (retained by the what() call) and - * adds an entry to the syslog, using the Pentominos::log interface. - */ - Exception(std::string what); + Exception(std::string what); - /** - * Destructor - */ - virtual ~Exception() throw() {} - - /** - * what is used to gain textual information about the exception. - * @return A const char pointer to a zero terminated string containing - * textual information about the exception. - */ - virtual const char* what() const throw(); + /** + * Destructor + */ + virtual ~Exception() throw() {} - private: - std::string _what; - }; + /** + * what is used to gain textual information about the exception. + * @return A const char pointer to a zero terminated string containing + * textual information about the exception. + */ + virtual const char* what() const throw(); +private: + std::string _what; }; + #endif/*__ARTEFACT_EXCEPTION_H__*/ |