From 2df411bc345eb6917200224c8b5b4248db1c1f58 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Tue, 26 Dec 2006 02:16:11 +0000 Subject: [PATCH] Inherit exceptions from std::exception. --- xmltooling/exceptions.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/xmltooling/exceptions.h b/xmltooling/exceptions.h index a58c24f..14fbdab 100644 --- a/xmltooling/exceptions.h +++ b/xmltooling/exceptions.h @@ -131,17 +131,12 @@ namespace xmltooling { namedparams(int count,...); }; - class XMLTOOL_EXCEPTIONAPI(XMLTOOL_API) XMLToolingException; - - /** A factory function that returns an empty exception object of a given type. */ - typedef XMLToolingException* ExceptionFactory(); - /** * Base exception class, supports parametrized messages and XML serialization. * Parameters are prefixed with a dollar sign ($) and can be positional ($1) * or named ($info). */ - class XMLTOOL_EXCEPTIONAPI(XMLTOOL_API) XMLToolingException + class XMLTOOL_EXCEPTIONAPI(XMLTOOL_API) XMLToolingException : public std::exception { public: virtual ~XMLToolingException() {} @@ -311,6 +306,9 @@ namespace xmltooling { */ static XMLToolingException* fromString(const char* s); + /** A factory function that returns an empty exception object of a given type. */ + typedef XMLToolingException* ExceptionFactory(); + /** * Registers a factory to create exceptions of a given class name. * -- 2.1.4