public class XPathException extends 异常
XPathException表示一个通用的XPath异常。
| Constructor and Description |
|---|
XPathException(String message)
构造一个新的
XPathException与指定的细节
message 。
|
XPathException(Throwable cause)
构造一个新的
XPathException与指定的
cause 。
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
得到这个XPathException的原因。
|
void |
printStackTrace()
打印堆栈跟踪到
System.err 。
|
void |
printStackTrace(PrintStream s)
打印堆栈跟踪到指定的
PrintStream 。
|
void |
printStackTrace(PrintWriter s)
打印堆栈跟踪到指定的
PrintWriter 。
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic XPathException(String message)
构造一个新的XPathException与指定的细节message 。
cause未初始化。
如果message是null ,那么抛出一个NullPointerException 。
message - 详细信息。
NullPointerException -
message为
null 。
public XPathException(Throwable cause)
构造一个新的XPathException与指定的cause 。
如果cause是null ,那么抛出一个NullPointerException 。
cause - 原因。
NullPointerException - 如果
cause是
null 。
public Throwable getCause()
得到这个XPathException的原因。
public void printStackTrace(PrintStream s)
打印堆栈跟踪到指定的PrintStream 。
printStackTrace在类
Throwable
s - 打印堆栈跟踪到这个
PrintStream 。
public void printStackTrace()
打印堆栈跟踪到System.err 。
printStackTrace在
Throwable
public void printStackTrace(PrintWriter s)
打印堆栈跟踪到指定PrintWriter 。
printStackTrace在
Throwable
s - 打印堆栈跟踪到这个
PrintWriter 。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.