|
Text.XML.HXT.Arrow.XmlState.ErrorHandling | Portability | portable | Stability | stable | Maintainer | Uwe Schmidt (uwe@fh-wedel.de) |
|
|
|
Description |
the basic state arrows for XML processing
A state is needed for global processing options,
like encoding options, document base URI, trace levels
and error message handling
The state is separated into a user defined state
and a system state. The system state contains variables
for error message handling, for tracing, for the document base
for accessing XML documents with relative references, e.g. DTDs,
and a global key value store. This assoc list has strings as keys
and lists of XmlTrees as values. It is used to store arbitrary
XML and text values, e.g. user defined global options.
The user defined part of the store is in the default case empty, defined as ().
It can be extended with an arbitray data type
|
|
Synopsis |
|
|
|
Documentation |
|
|
|
|
reset global error variable
|
|
|
set global error variable
|
|
|
read current global error status
|
|
|
raise the global error status level to that of the input tree
|
|
|
set the error message handler and the flag for collecting the errors
|
|
|
error message handler for output to stderr
|
|
|
the default error message handler: error output to stderr
|
|
|
error message handler for collecting errors
|
|
|
error message handler for output to stderr and collecting
|
|
|
error message handler for ignoring errors
|
|
|
if error messages are collected by the error handler for
processing these messages by the calling application,
this arrow reads the stored messages and clears the error message store
|
|
|
|
|
filter error messages from input trees and issue errors
|
|
|
generate a warnig message
|
|
|
generate an error message
|
|
|
generate a fatal error message, e.g. document not found
|
|
|
Default exception handler: issue a fatal error message and fail.
The parameter can be used to specify where the error occured
|
|
|
add the error level and the module where the error occured
to the attributes of a document root node and remove the children when level is greater or equal to c_err.
called by setDocumentStatusFromSystemState when the system state indicates an error
|
|
|
check whether the error level attribute in the system state
is set to error, in this case the children of the document root are
removed and the module name where the error occured and the error level are added as attributes with setDocumentStatus
else nothing is changed
|
|
|
check whether tree is a document root and the status attribute has a value less than c_err
|
|
|
|
Produced by Haddock version 2.6.1 |