SAXParseException
classin packageorg.xml.sax
public class SAXParseException extends SAXException
└ SAXParseException

SAX exception with XML location information.

Parsers and error handlers use this exception when a warning or error can be associated with a public id, system id, line and column.

Example
import org.xml.sax

error = SAXParseException("Invalid element", null, "file:/doc.xml", 12, 5)
print(error.lineNumber)
Properties
Modifier and Type Member Description
public readonly property columnNumber
columnNumber as Int
One-based column number for the parse error, or -1 when unavailable.
public readonly property lineNumber
lineNumber as Int
One-based line number for the parse error, or -1 when unavailable.
public readonly property publicId
publicId as String
Public identifier associated with the parse error, or null.
public readonly property systemId
systemId as String
System identifier associated with the parse error, or null.
Inherited Properties
propertyInherited Properties from SAXException: message
propertyInherited Properties from Exception: message
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public SAXParseException
SAXParseException(message as String, locator as Locator)
Creates a parse exception from a locator.
public SAXParseException
SAXParseException(message as String, locator as Locator, exception as Exception)
Creates a parse exception from a locator and cause.
public SAXParseException
SAXParseException(message as String, publicId as String, systemId as String, lineNumber as Int, columnNumber as Int)
Creates a parse exception from explicit location values.
public SAXParseException
SAXParseException(message as String, publicId as String, systemId as String, lineNumber as Int, columnNumber as Int, exception as Exception)
Creates a parse exception from explicit location values and cause.
Methods
Modifier and Type Member Description
public getPublicId
getPublicId() as String
Returns the public identifier.
public getSystemId
getSystemId() as String
Returns the system identifier.
Inherited Methods
methodInherited Methods from SAXException: getCause, getException
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml