From a34402b79b38624a29ed8ea4e059af817266e6b8 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 3 Sep 2007 09:11:33 +0000 Subject: Implemented the first version of the XML request. Fixed eXpat incompatability with XML_Get/SetUserData and the void* in the handler functions. --- server/src/exception.h | 45 +++++++++++++++++++++------------------------ 1 file changed, 21 insertions(+), 24 deletions(-) (limited to 'server/src/exception.h') 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 -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__*/ -- cgit v1.2.3