Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

qgxml::ErrorHandler Class Reference
[XML SAX Module]

#include <qgarlib/sax/ErrorHandler.H>

Inheritance diagram for qgxml::ErrorHandler:

qgxml::DefaultHandler qgar::QgarAppDescr List of all members.

Detailed Description

Basic interface for SAX error handlers.

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.

This class is an adaptation for C++ of the interface of the same name implemented in the Java SAX API (http://www.saxproject.org).

Author:
Jan Rendek (Adaptation).
Date:
March 10, 2003 15:56
Since:
Qgar 2.1.1

Definition at line 69 of file ErrorHandler.H.

Public Member Functions

virtual void error (const SAXParseException &exception)=0
 Receive notification of a recoverable error.
virtual void fatalError (const SAXParseException &exception)=0
 Receive notification of a non-recoverable error.
virtual void warning (const SAXParseException &exception)=0
 Receive notification of a warning.
Destructor
virtual ~ErrorHandler ()
 Destructor.


Constructor & Destructor Documentation

virtual qgxml::ErrorHandler::~ErrorHandler  )  [inline, virtual]
 

Destructor.

Definition at line 83 of file ErrorHandler.H.


Member Function Documentation

virtual void qgxml::ErrorHandler::error const SAXParseException exception  )  [pure virtual]
 

Receive notification of a recoverable error.

Parameters:
exception The error information encapsulated in a SAX parse exception.

Implemented in qgxml::DefaultHandler.

Referenced by qgxml::XercesQgarErrorHandlerAdaptor::error(), and qgxml::QtQgarErrorHandlerAdaptor::error().

virtual void qgxml::ErrorHandler::fatalError const SAXParseException exception  )  [pure virtual]
 

Receive notification of a non-recoverable error.

Parameters:
exception The error information encapsulated in a SAX parse exception.

Implemented in qgar::QgarAppDescr, and qgxml::DefaultHandler.

Referenced by qgxml::XercesQgarErrorHandlerAdaptor::fatalError(), and qgxml::QtQgarErrorHandlerAdaptor::fatalError().

virtual void qgxml::ErrorHandler::warning const SAXParseException exception  )  [pure virtual]
 

Receive notification of a warning.

Parameters:
exception The warning information encapsulated in a SAX parse exception.

Implemented in qgxml::DefaultHandler.

Referenced by qgxml::XercesQgarErrorHandlerAdaptor::warning(), and qgxml::QtQgarErrorHandlerAdaptor::warning().


The documentation for this class was generated from the following file: