- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.xml.xpath.XPathException
-
- すべての実装されたインタフェース:
Serializable
- 直系の既知のサブクラス:
XPathExpressionException,XPathFactoryConfigurationException
public class XPathException extends Exception
XPathExceptionはジェネリックXPath例外を表します。- 導入されたバージョン:
- 1.5
- 関連項目:
- 直列化された形式
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 XPathException(String message)指定された詳細messageで新しいXPathExceptionを構築します。XPathException(Throwable cause)指定されたcauseで新しいXPathExceptionを構築します。
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 ThrowablegetCause()このXPathExceptionの原因を取得します。voidprintStackTrace()System.errにスタック・トレースを出力します。voidprintStackTrace(PrintStream s)指定されたPrintStreamにスタック・トレースを出力します。voidprintStackTrace(PrintWriter s)指定されたPrintWriterにスタック・トレースを出力します。-
クラス java.lang.Objectから継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
クラス java.lang.Throwableから継承されたメソッド
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
-
-
-
コンストラクタの詳細
-
XPathException
public XPathException(String message)
指定された詳細messageで新しいXPathExceptionを構築します。causeは初期化されません。messageがnullの場合、NullPointerExceptionがスローされます。- パラメータ:
message- 詳細メッセージ。- 例外:
NullPointerException-messageがnullの場合。
-
XPathException
public XPathException(Throwable cause)
指定されたcauseで新しいXPathExceptionを構築します。causeがnullの場合、NullPointerExceptionがスローされます。- パラメータ:
cause- 原因。- 例外:
NullPointerException-causeがnullの場合。
-
-
メソッドの詳細
-
getCause
public Throwable getCause()
このXPathExceptionの原因を取得します。
-
printStackTrace
public void printStackTrace(PrintStream s)
指定されたPrintStreamにスタック・トレースを出力します。- オーバーライド:
printStackTrace、クラス:Throwable- パラメータ:
s- このPrintStreamにスタック・トレースを出力する。
-
printStackTrace
public void printStackTrace()
System.errにスタック・トレースを出力します。- オーバーライド:
printStackTrace、クラス:Throwable
-
printStackTrace
public void printStackTrace(PrintWriter s)
指定されたPrintWriterにスタック・トレースを出力します。- オーバーライド:
printStackTrace、クラス:Throwable- パラメータ:
s- このPrintWriterにスタック・トレースを出力する。
-
-