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()
public void printStackTrace(PrintStream s)
将堆栈跟踪打印到指定的 PrintStream。
Throwable 中的 
      printStackTrace
     s - 将堆栈跟踪打印到此 
      PrintStream。
     public void printStackTrace()
将堆栈跟踪打印到 System.err。
Throwable 中的 
      printStackTrace
     public void printStackTrace(PrintWriter s)
将堆栈跟踪打印到指定的 PrintWriter。
Throwable 中的 
      printStackTrace
     s - 将堆栈跟踪打印到此 
      PrintWriter。