#include <map>
#include <string>
#include <vector>
#include <iostream>
#include <xmltooling/base.h>
Namespaces | |
namespace | xmltooling |
Classes | |
class | xmltooling::params |
Wrapper around a variable number of arguments. More... | |
class | xmltooling::namedparams |
Wrapper around a variable number of name/value pairs. More... | |
class | xmltooling::XMLToolingException |
Base exception class, supports parametrized messages and XML serialization. More... | |
class | xmltooling::XMLParserException |
Exceptions related to XML parsing. More... | |
class | xmltooling::XMLObjectException |
Exceptions in basic object usage. More... | |
class | xmltooling::MarshallingException |
Exceptions during object marshalling. More... | |
class | xmltooling::UnmarshallingException |
Exceptions during object unmarshalling. More... | |
class | xmltooling::UnknownElementException |
Exceptions due to processing of unknown element content. More... | |
class | xmltooling::UnknownAttributeException |
Exceptions due to processing of unknown attributes. More... | |
class | xmltooling::UnknownExtensionException |
Exceptions from use of an unrecognized extension/plugin. More... | |
class | xmltooling::ValidationException |
Exceptions during object validation. More... | |
class | xmltooling::IOException |
Exceptions related to physical input/output errors. More... | |
class | xmltooling::XMLSecurityException |
Exceptions related to the XML security layer. More... | |
Defines | |
#define | DECL_XMLTOOLING_EXCEPTION(name, linkage, ns, base, desc) |
Declares a derived exception class. | |
#define | DECL_XMLTOOLING_EXCEPTION_FACTORY(name, ns) |
Declares a factory function for an exception class. | |
#define | REGISTER_XMLTOOLING_EXCEPTION_FACTORY(name, ns) XMLToolingException::registerFactory(#ns"::"#name,name##Factory) |
Registers a factory for an exception class. |
#define DECL_XMLTOOLING_EXCEPTION | ( | name, | |||
linkage, | |||||
ns, | |||||
base, | |||||
desc | ) |
Value:
XMLTOOLING_DOXYGEN(desc) \ class linkage name : public base { \ public: \ XMLTOOLING_DOXYGEN(Constructor) \ name(const char* msg=NULL, const xmltooling::params& p=xmltooling::params()) : base(msg,p) {} \ XMLTOOLING_DOXYGEN(Constructor) \ name(const char* msg, const xmltooling::namedparams& p) : base(msg,p) {} \ XMLTOOLING_DOXYGEN(Constructor) \ name(const std::string& msg, const xmltooling::params& p=xmltooling::params()) : base(msg,p) {} \ XMLTOOLING_DOXYGEN(Constructor) \ name(const std::string& msg, const xmltooling::namedparams& p) : base(msg,p) {} \ virtual ~name() throw () {} \ virtual const char* getClassName() const { return #ns"::"#name; } \ void raise() const {throw *this;} \ }
name | the exception class | |
linkage | linkage specification for class | |
ns | the exception class C++ namespace | |
base | the base class | |
desc | documentation comment for class |
#define DECL_XMLTOOLING_EXCEPTION_FACTORY | ( | name, | |||
ns | ) |
Value:
xmltooling::XMLToolingException* name##Factory() \ { \ return new ns::name(); \ }
name | the exception class name | |
ns | the exception class C++ namespace |
#define REGISTER_XMLTOOLING_EXCEPTION_FACTORY | ( | name, | |||
ns | ) | XMLToolingException::registerFactory(#ns"::"#name,name##Factory) |
Registers a factory for an exception class.
name | the exception class name | |
ns | the exception class C++ namespace |