zorba::ErrorHandler Class Reference

ErrorHandler defines an interface. More...

#include <zorba/error_handler.h>

Inheritance diagram for zorba::ErrorHandler:

zorba::DefaultErrorHandler

List of all members.

Public Member Functions

virtual void dynamicError (const DynamicException &aDynamicError)=0
 Callback function that is called for dynamic errors as defined in the XQuery 1.0 Specification (see http://www.w3.org/TR/xquery/#id-kinds-of-errors.
virtual void serializationError (const SerializationException &aSerializationError)=0
 Callback function that is called for errors that occur during serialization of a query result.
virtual void staticError (const StaticException &aStaticError)=0
 Callback function that is called for static errors as defined in the XQuery 1.0 Specification (see http://www.w3.org/TR/xquery/#id-kinds-of-errors.
virtual void systemError (const SystemException &aSystemError)=0
 Callback function that is called for errors that occur in the system.
virtual void typeError (const TypeException &aTypeError)=0
 Callback function that is called for type errors as defined in the XQuery 1.0 Specification (see http://www.w3.org/TR/xquery/#id-kinds-of-errors.
virtual ~ErrorHandler ()
 Destructor.


Detailed Description

ErrorHandler defines an interface.

Classes that implement this interface can be used as callback classes.

Specifically, they can be registered with an XQuery object. This way, all errors that would have been reported by throwing an exception are reported by calling the according function of this interface. Subclasses of the ZorbaException class that would have been thrown are passed as parameter to the callback function.

Definition at line 33 of file error_handler.h.


Constructor & Destructor Documentation

virtual zorba::ErrorHandler::~ErrorHandler (  )  [inline, virtual]

Destructor.

Definition at line 39 of file error_handler.h.


Member Function Documentation

virtual void zorba::ErrorHandler::dynamicError ( const DynamicException aDynamicError  )  [pure virtual]

Callback function that is called for dynamic errors as defined in the XQuery 1.0 Specification (see http://www.w3.org/TR/xquery/#id-kinds-of-errors.

Parameters:
aDynamicError information about the error.

Implemented in zorba::DefaultErrorHandler.

virtual void zorba::ErrorHandler::serializationError ( const SerializationException aSerializationError  )  [pure virtual]

Callback function that is called for errors that occur during serialization of a query result.

(see http://www.w3.org/TR/2005/CR-xslt-xquery-serialization-20051103/)

Parameters:
aSerializationError information about the error.

Implemented in zorba::DefaultErrorHandler.

virtual void zorba::ErrorHandler::staticError ( const StaticException aStaticError  )  [pure virtual]

Callback function that is called for static errors as defined in the XQuery 1.0 Specification (see http://www.w3.org/TR/xquery/#id-kinds-of-errors.

Parameters:
aStaticError information about the error.

Implemented in zorba::DefaultErrorHandler.

virtual void zorba::ErrorHandler::systemError ( const SystemException aSystemError  )  [pure virtual]

Callback function that is called for errors that occur in the system.

Parameters:
aSystemError information about the error.

Implemented in zorba::DefaultErrorHandler.

virtual void zorba::ErrorHandler::typeError ( const TypeException aTypeError  )  [pure virtual]

Callback function that is called for type errors as defined in the XQuery 1.0 Specification (see http://www.w3.org/TR/xquery/#id-kinds-of-errors.

Parameters:
aTypeError information about the error.

Implemented in zorba::DefaultErrorHandler.


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