org.w3c.dom.xpath.XPathException.XPathException
constructor

    public XPathException(code as Int = XPathException.INVALID_EXPRESSION_ERR, message as String = "XPath exception"):

Description

Creates an XPath exception.

Parameters

Parameter | Description
--- | ---
`code` | Numeric XPath error code.
`message` | Diagnostic message.

Example

    error = XPathException(XPathException.TYPE_ERR, "Expected a node result")