#include <xmltooling/base.h>
#include <map>
#include <string>
#include <vector>
#include <iostream>
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. | |
|
|
Value: XMLTOOLING_DOXYGEN(desc) \
class linkage name : public base { \
public: \
XMLTOOLING_DOXYGEN(Constructor) \
name(const char* msg=nullptr, 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;} \
}
|
|
|
Value: xmltooling::XMLToolingException* name##Factory() \ { \ return new ns::name(); \ }
|
|
|
Registers a factory for an exception class.
|
1.4.6