This abstract class defines a callback mechanism for the scanner
![]() | Constructor
| ||
![]() | Destructor
| ||
![]() | Error Handler interface |
This abstract class defines a callback mechanism for the scanner. By creating a class that implements this interface and plugging an instance of that class into the scanner, the scanner will call back on the object's virtual methods to report error events. This class is also used with the validator, to allow it to report errors. This class is primarily for use by those writing their own parser classes. If you use the standard parser classes, DOMParser and SAXParser, you won't use this API. You will instead use a similar mechanism defined by the SAX API, called ErrorHandler.
virtual void error( const unsigned int errCode, const XMLCh* const errDomain, const ErrTypes type, const XMLCh* const errorText, const XMLCh* const systemId, const XMLCh* const publicId, const unsigned int lineNum, const unsigned int colNum )
errDomain - The domain from which the error occured. The domain
is a means of providing a hierarchical layering to
the error system, so that a single set of error id
numbers don't have to be split up.
type - The error type, which is defined mostly by XML which
categorizes errors into warning, errors and validity
constraints.
errorText - The actual text of the error. This is translatable,
so can possibly be in the local language if a
translation has been provided.
sysetmId - The system id of the entity where the error occured,
fully qualified.
publicId - The optional public id of the entity were the error
occured. It can be an empty string if non was provided.
lineNum - The line number within the source XML of the error.
colNum - The column number within the source XML of the error.
Because of the parsing style, this is usually just
after the actual offending text. virtual void resetErrors()
alphabetic index hierarchy of classes
Xerces-C XML Parser for C++ Version 1.1 |
|
generated by doc++