SAXParseException
class in package org.xml.sax

    public class SAXParseException extends SAXException:

Object
└ Exception
└ 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 ```klyn 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`.

Properties inherited from SAXException: message
Properties inherited from Exception: message
Properties inherited 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.
public override method | toString `toString() as String:` | Returns a string representation including location information.

Methods inherited from SAXException: getCause, getException
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml