Class DefaultErrorHandler

Superclasses :
xml::ErrorHandler
Package :
xml

The default error handler prints errors to the given output file.

Source

Class summary
Methods defined in this class
fatal_error(msg, stack) initially() msg_impl(msg, stack, n, pre) set_level(n) set_out_file(x) show_stack(stack) validity_error(msg, stack) warning(msg, stack)
Variables defined in this class
level out_file

Method detail

fatal_error(msg, stack)

Overrides fatal_error(msg, stack) in xml::ErrorHandler
Source

initially()


msg_impl(msg, stack, n, pre)

Private method, not intended for client invocation

set_level(n)

Set the level to use :-

0 - no output 1 - fatal only 2 - fatal + validity 3 - fatal + validity + warning

The default is 3

Source

set_out_file(x)

Set the output file
Source

show_stack(stack)

Source

validity_error(msg, stack)

Overrides validity_error(msg, stack) in xml::ErrorHandler
Source

warning(msg, stack)

Overrides warning(msg, stack) in xml::ErrorHandler
Source

Variable detail

level


out_file