Class Summary : ESAXParseException
Encapsulate an XML parse error or warning.
This module, both source code and documentation, is in the
Public Domain, and comes with NO WARRANTY.
This exception may include information for locating the error
in the original XML document, as if it came from a ILocator
object. Note that although the application
will receive a ESAXParseException as the argument to the handlers
in the IErrorHandler interface,
the application is not actually required to throw the exception;
instead, it can simply read the information in it and take a
different action.
Since this exception is a subclass of ESAXException,
it inherits the ability to wrap another exception.
Since : SAX 1.0
See : ESAXException
See : ILocator
See : IErrorHandler
Methods
function getPublicId() : PSAXChar;
Get the public identifier of the entity where the exception occurred.
Result : A string containing the public identifier, or an empty string
if none is available.
See : ILocator.getPublicId
Top
function getSystemId() : PSAXChar;
Get the system identifier of the entity where the exception occurred.
If the system identifier is a URL, it will have been resolved
fully.
Result : A string containing the system identifier, or an empty string
if none is available.
See : ILocator.getSystemId
Top
function getLineNumber() : Integer;
The line number of the end of the text where the exception occurred.
The first line is line 1.
Result : An integer representing the line number, or -1
if none is available.
See : ILocator.getLineNumber
Top
function getColumnNumber() : Integer;
The column number of the end of the text where the exception occurred.
The first column in a line is position 1.
Result : An integer representing the column number, or -1
if none is available.
See : ILocator.getColumnNumber
Top
function getExceptionId() : SAXString;
Returns the identifier for the exception which is being reported.
Result : URI identifying the exception. SAX standardizes the
identifiers for errors relating to the specifications that it relies
on for XML parsing (including XML 1.0 and
Namespaces in XML).
See the SAX
package summary for more information.
Since : SAX 2.1
/
Top
procedure setExceptionId(const id : SAXString);
Assigns the identifier for the exception which is being reported,
if none has yet been assigned.
Parameter : id URI identifying the exception. SAX standardizes the
identifiers for errors relating to the specifications that it relies
on for XML parsing (including XML 1.0 and
Namespaces in XML).
See the SAX
package summary for more information.
Exception : ESAXIllegalStateException If the ID was already assigned.
Since : SAX 2.1
Top
procedure init(const publicId : SAXString; const systemId : SAXString; lineNumber : Integer; columnNumber : Integer);
Initialization method.
Parameter : publicId The public identifier of the entity which generated the exception,
or an empty string.
Parameter : systemId The system identifier of the entity which generated the exception,
or an empty string.
Parameter : lineNumber The line number of the error, or -1.
Parameter : columnNumber The column number of the error, or -1.
Top