ACEXML
6.3.1
|
#include <ErrorHandler.h>
Public Member Functions | |
virtual | ~ACEXML_ErrorHandler (void) |
virtual void | error (ACEXML_SAXParseException &exception)=0 |
virtual void | fatalError (ACEXML_SAXParseException &exception)=0 |
virtual void | warning (ACEXML_SAXParseException &exception)=0 |
If a SAX application needs to implement customized error handling, it must implement this interface and then register an instance with the XML reader using the setErrorHandler method. The parser will then report all errors and warnings through this interface.
WARNING: If an application does not register an ErrorHandler, XML parsing errors will go unreported and bizarre behaviour may result.
For XML processing errors, a SAX driver must use this interface instead of throwing an exception: it is up to the application to decide whether to throw an exception for different types of errors and warnings. Note, however, that there is no requirement that the parser continue to provide useful information after a call to fatalError (in other words, a SAX driver class could catch an exception and report a fatalError).
|
virtual |
|
pure virtual |
Receive notification of a recoverable error.
Implemented in ACEXML_XMLFilterImpl, ACEXML_DefaultHandler, ACEXML_SAXPrint_Handler, and ACEXML_Print_Handler.
|
pure virtual |
Receive notification of a non-recoverable error.
Implemented in ACEXML_XMLFilterImpl, ACEXML_DefaultHandler, ACEXML_SAXPrint_Handler, and ACEXML_Print_Handler.
|
pure virtual |
Receive notification of a warning.
Implemented in ACEXML_XMLFilterImpl, ACEXML_DefaultHandler, ACEXML_SAXPrint_Handler, and ACEXML_Print_Handler.