Public Member Functions | List of all members
zorba::DiagnosticHandler Class Reference

When registered with an XQuery object, a DiagnosticHandler handles all exceptions and warnings that otherwise would have been thrown or reported. More...

#include <zorba/diagnostic_handler.h>

Public Member Functions

virtual void error (ZorbaException const &exception)
 This function is called for all exceptions.
virtual void warning (XQueryWarning const &warning)
 This function is called for all warnings.
virtual ~DiagnosticHandler ()

Detailed Description

When registered with an XQuery object, a DiagnosticHandler handles all exceptions and warnings that otherwise would have been thrown or reported.

Examples:
errors.cpp.

Definition at line 30 of file diagnostic_handler.h.

Constructor & Destructor Documentation

virtual zorba::DiagnosticHandler::~DiagnosticHandler ( )
virtual

Member Function Documentation

virtual void zorba::DiagnosticHandler::error ( ZorbaException const &  exception)
virtual

This function is called for all exceptions.

Parameters
exceptionThe exception.
virtual void zorba::DiagnosticHandler::warning ( XQueryWarning const &  warning)
virtual

This function is called for all warnings.

Parameters
warningThe warning.

The documentation for this class was generated from the following file:
blog comments powered by Disqus