public class SAXParseException extends SAXException:
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)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | columnNumbercolumnNumber as Int: |
One-based column number for the parse error, or `-1` when unavailable. |
| public readonly property | lineNumberlineNumber as Int: |
One-based line number for the parse error, or `-1` when unavailable. |
| public readonly property | publicIdpublicId as String: |
Public identifier associated with the parse error, or `null`. |
| public readonly property | systemIdsystemId as String: |
System identifier associated with the parse error, or `null`. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | SAXParseExceptionSAXParseException(message as String, locator as Locator): |
Creates a parse exception from a locator. |
| public | SAXParseExceptionSAXParseException(message as String, locator as Locator, exception as Exception): |
Creates a parse exception from a locator and cause. |
| public | SAXParseException | Creates a parse exception from explicit location values. |
| public | SAXParseException | Creates a parse exception from explicit location values and cause. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | getPublicIdgetPublicId() as String: |
Returns the public identifier. |
| public | getSystemIdgetSystemId() as String: |
Returns the system identifier. |
| public override method | toStringtoString() as String: |
Returns a string representation including location information. |