xmlwrapp
Lightweight C++ XML parsing library
|
The xml::error_handler class is used to handle libxml2 errors and warnings emitted during parsing, validation etc. More...
#include <errors.h>
Public Member Functions | |
virtual void | on_error (const std::string &msg)=0 |
Called by xmlwrapp to report an error. More... | |
virtual void | on_warning (const std::string &msg)=0 |
Called by xmlwrapp to report a warning. More... | |
The xml::error_handler class is used to handle libxml2 errors and warnings emitted during parsing, validation etc.
Although you can derive a custom handler from it, the specializations included in xmlwrapp should suffice for most uses: throw_on_error and throw_on_error_or_warning throw on issues, error_messages collects errors and warnings without throwing.
|
pure virtual |
Called by xmlwrapp to report an error.
Implemented in xml::error_messages, xml::error_handler_throw_on_error, and xml::error_handler_ignore_errors.
|
pure virtual |
Called by xmlwrapp to report a warning.
Implemented in xml::error_messages, xml::error_handler_throw_on_error_or_warning, xml::error_handler_throw_on_error, and xml::error_handler_ignore_errors.