- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.w3c.dom.xpath.XPathException
-
- All Implemented Interfaces:
-
Serializable
public class XPathException extends RuntimeException
为这些XPath接口特定的异常创建了一个新的异常。- 另请参见:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field 描述 short
code
static short
INVALID_EXPRESSION_ERR
如果表达式具有语法错误,或者根据特定的XPathEvaluator
的规则不属于法定表达式,或包含此实现不支持的专用扩展函数或变量。static short
TYPE_ERR
如果表达式无法转换返回指定的类型。
-
构造方法摘要
构造方法 Constructor 描述 XPathException(short code, String message)
-
方法摘要
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
字段详细信息
-
code
public short code
-
INVALID_EXPRESSION_ERR
public static final short INVALID_EXPRESSION_ERR
如果该表达式具有语法错误或根据特定的XPathEvaluator
的规则不是合法表达式,或包含此实现不支持的专用扩展函数或变量。- 另请参见:
- Constant Field Values
-
TYPE_ERR
public static final short TYPE_ERR
如果表达式无法转换返回指定的类型。- 另请参见:
- Constant Field Values
-
-
构造方法详细信息
-
XPathException
public XPathException(short code, String message)
-
-