Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACEXML_ErrorHandler Class Reference

ACEXML_ErrorHandler. More...

#include "ACEXML/common/ErrorHandler.h"

Inheritance diagram for ACEXML_ErrorHandler:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual void error (ACEXML_SAXParseException &exception, ACEXML_Env &xmlenv)=0
 Receive notification of a recoverable error. More...

virtual void fatalError (ACEXML_SAXParseException &exception, ACEXML_Env &xmlenv)=0
 Receive notification of a non-recoverable error. More...

virtual void warning (ACEXML_SAXParseException &exception, ACEXML_Env &xmlenv)=0
 Receive notification of a warning. More...


Detailed Description

ACEXML_ErrorHandler.

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).


Member Function Documentation

virtual void ACEXML_ErrorHandler::error ACEXML_SAXParseException   exception,
ACEXML_Env   xmlenv
[pure virtual]
 

Receive notification of a recoverable error.

Reimplemented in ACEXML_DefaultHandler, ACEXML_XMLFilterImpl, ACEXML_Print_Handler, ACEXML_SAXPrint_Handler, and ACEXML_Svcconf_Handler.

virtual void ACEXML_ErrorHandler::fatalError ACEXML_SAXParseException   exception,
ACEXML_Env   xmlenv
[pure virtual]
 

Receive notification of a non-recoverable error.

Reimplemented in ACEXML_DefaultHandler, ACEXML_XMLFilterImpl, ACEXML_Print_Handler, ACEXML_SAXPrint_Handler, and ACEXML_Svcconf_Handler.

virtual void ACEXML_ErrorHandler::warning ACEXML_SAXParseException   exception,
ACEXML_Env   xmlenv
[pure virtual]
 

Receive notification of a warning.

Reimplemented in ACEXML_DefaultHandler, ACEXML_XMLFilterImpl, ACEXML_Print_Handler, ACEXML_SAXPrint_Handler, and ACEXML_Svcconf_Handler.


The documentation for this class was generated from the following file:
Generated on Thu Oct 10 17:27:47 2002 for ACEXML by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001