java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.xml.xpath.XPathException
- 所有已实现的接口:
-
Serializable
XPathException 表示通用的 XPath 异常。
- 自 JDK 版本:
- 1.5
- 参见:
-
Constructor Summary
ConstructorsConstructorDescriptionXPathException(String message) 构造一个带有指定详细消息的新XPathException。XPathException(Throwable cause) 构造一个带有指定cause的新XPathException。 -
Method Summary
Modifier and TypeMethodDescriptiongetCause()获取此 XPathException 的原因。void将堆栈跟踪打印到System.err。void将堆栈跟踪打印到指定的PrintStream。void将堆栈跟踪打印到指定的PrintWriter。Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
XPathException
构造一个带有指定详细消息的新XPathException。未初始化
cause。如果
message为null,则抛出NullPointerException。- 参数:
-
message- 详细消息。 - 抛出:
-
NullPointerException- 当message为null时。
-
XPathException
构造一个带有指定cause的新XPathException。如果
cause为null,则抛出NullPointerException。- 参数:
-
cause- 原因。 - 抛出:
-
NullPointerException- 如果cause为null。
-
-
Method Details
-
getCause
获取此 XPathException 的原因。 -
printStackTrace
将堆栈跟踪打印到指定的PrintStream。- 覆盖:
-
printStackTrace在类Throwable - 参数:
-
s- 将堆栈跟踪打印到此PrintStream。
-
printStackTrace
public void printStackTrace()将堆栈跟踪打印到System.err。- 覆盖:
-
printStackTrace在类Throwable
-
printStackTrace
将堆栈跟踪打印到指定的PrintWriter。- 覆盖:
-
printStackTrace在类Throwable - 参数:
-
s- 将堆栈跟踪打印到此PrintWriter。
-