public XPathException(code as Int = XPathException.INVALID_EXPRESSION_ERR, message as String = "XPath exception"):
Creates an XPath exception.
error = XPathException(XPathException.TYPE_ERR, "Expected a node result")