| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.xml.xpath.XPathException
public class XPathException
XPathException 表示通用 XPath 异常。
| 构造方法摘要 | |
|---|---|
| XPathException(String message)构造带指定详细 message的新XPathException。 | |
| XPathException(Throwable cause)构造带指定 cause的新XPathException。 | |
| 方法摘要 | |
|---|---|
|  Throwable | getCause()获取此 XPathException 的 cause。 | 
|  void | printStackTrace()将堆栈跟踪打印到 System.err。 | 
|  void | printStackTrace(PrintStream s)将堆栈跟踪打印到指定的 PrintStream。 | 
|  void | printStackTrace(PrintWriter s)将堆栈跟踪打印到指定的 PrintWriter。 | 
| 从类 java.lang.Throwable 继承的方法 | 
|---|
| fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString | 
| 从类 java.lang.Object 继承的方法 | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
public XPathException(String message)
构造带指定详细 message 的新 XPathException。
cause 未初始化。
如果 message 为 null,则抛出 NullPointerException。
message - 详细消息。
NullPointerException - 当 message 为 null 时。public XPathException(Throwable cause)
构造带指定 cause 的新 XPathException。
如果 cause 为 null,则抛出 NullPointerException。
cause - cause
NullPointerException - 如果 cause 为 null。| 方法详细信息 | 
|---|
public Throwable getCause()
获取此 XPathException 的 cause。
Throwable 中的 getCausepublic void printStackTrace(PrintStream s)
将堆栈跟踪打印到指定的 PrintStream。
Throwable 中的 printStackTraces - 将堆栈跟踪打印到此 PrintStream。public void printStackTrace()
将堆栈跟踪打印到 System.err。
Throwable 中的 printStackTracepublic void printStackTrace(PrintWriter s)
将堆栈跟踪打印到指定的 PrintWriter。
Throwable 中的 printStackTraces - 将堆栈跟踪打印到此 PrintWriter。| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。