public class XPathException extends Exception:
Exception raised by DOM XPath operations.
Klyn follows the Java org.w3c.dom.xpath constants for compatibility: INVALID_EXPRESSION_ERR is 1 and TYPE_ERR is 2.
@example `klyn import org.w3c.dom.xpath
error = XPathException(XPathException.INVALID_EXPRESSION_ERR, "Unsupported XPath expression") print(error.code) print(error.message)
| Modifier and Type | Member | Description |
|---|---|---|
| public static readonly | INVALID_EXPRESSION_ERRINVALID_EXPRESSION_ERR as Int = 1 |
Raised when an XPath expression is syntactically invalid or uses an unsupported feature. |
| public static readonly | TYPE_ERRTYPE_ERR as Int = 2 |
Raised when an XPath result cannot be converted to the requested type. |
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | codecode as Int: |
Numeric XPath error code. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | XPathExceptionXPathException(code as Int = XPathException.INVALID_EXPRESSION_ERR, message as String = "XPath exception"): |
Creates an XPath exception. |