zorba::DiagnosticHandler

#include <zorba/diagnostic_handler.h>

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

Public Functions

void

error(ZorbaException const &exception)

This function is called for all exceptions.

void

warning(XQueryWarning const &warning)

This function is called for all warnings.

~DiagnosticHandler()

Public Functions

error

void error(ZorbaException const &exception)

This function is called for all exceptions.

Parameters

exception The exception.

warning

void warning(XQueryWarning const &warning)

This function is called for all warnings.

Parameters

warning The warning.

~DiagnosticHandler

 ~DiagnosticHandler()