- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- javax.xml.bind.JAXBException
 
 
 
- 
- すべての実装されたインタフェース:
- Serializable
 - 直系の既知のサブクラス:
- MarshalException,- PropertyException,- UnmarshalException,- ValidationException
 
 public class JAXBException extends Exception これは、すべてのJAXB例外のルート例外クラスです。- 導入されたバージョン:
- 1.6, JAXB 1.0
- 関連項目:
- JAXBContext,- Marshaller,- Unmarshaller, 直列化された形式
 
- 
- 
コンストラクタのサマリーコンストラクタ コンストラクタ 説明 JAXBException(String message)指定された詳細メッセージを持つJAXBExceptionを構築します。JAXBException(String message, String errorCode)指定された詳細メッセージとベンダー固有のerrorCodeを持つJAXBExceptionを構築します。JAXBException(String message, String errorCode, Throwable exception)指定された詳細メッセージ、ベンダー固有のerrorCode、linkedExceptionを持つJAXBExceptionを構築します。JAXBException(String message, Throwable exception)指定された詳細メッセージとlinkedExceptionを持つJAXBExceptionを構築します。JAXBException(Throwable exception)linkedExceptionを持つJAXBExceptionを構築します。
 - 
メソッドのサマリーすべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 StringgetErrorCode()ベンダー固有のエラー・コードを取得します。ThrowablegetLinkedException()リンクされた例外を取得します。voidprintStackTrace()このJAXBExceptionとそのスタック・トレース(linkedExceptionがnull以外の場合、linkedExceptionのスタック・トレースを含む)をSystem.errに出力します。voidprintStackTrace(PrintStream s)このJAXBExceptionとそのスタック・トレース(linkedExceptionがnull以外の場合、そのスタック・トレースを含む)をPrintStreamに出力します。voidprintStackTrace(PrintWriter s)このJAXBExceptionとそのスタック・トレース(linkedExceptionがnull以外の場合、そのスタック・トレースを含む)をPrintWriterに出力します。voidsetLinkedException(Throwable exception)リンクされた例外を追加します。StringtoString()このJAXBExceptionの短い説明を返します。- 
クラス java.lang.Objectで宣言されたメソッドclone、equals、finalize、getClass、hashCode、notify、notifyAll、wait、wait、wait
 - 
クラス java.lang.Throwableで宣言されたメソッドaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
 
- 
 
- 
- 
- 
コンストラクタの詳細- 
JAXBExceptionpublic JAXBException(String message) 指定された詳細メッセージを持つJAXBExceptionを構築します。 errorCodeとlinkedExceptionは、デフォルトでnullになります。- パラメータ:
- message- 例外の説明
 
 - 
JAXBExceptionpublic JAXBException(String message, String errorCode) 指定された詳細メッセージとベンダー固有のerrorCodeを持つJAXBExceptionを構築します。 linkedExceptionは、デフォルトでnullになります。- パラメータ:
- message- 例外の説明
- errorCode- ベンダー固有のエラー・コードを指定する文字列
 
 - 
JAXBExceptionpublic JAXBException(Throwable exception) linkedExceptionを持つJAXBExceptionを構築します。 詳細メッセージとベンダー固有のerrorCodeはデフォルトでnullになります。- パラメータ:
- exception- リンクされた例外
 
 - 
JAXBExceptionpublic JAXBException(String message, Throwable exception) 指定された詳細メッセージとlinkedExceptionを持つJAXBExceptionを構築します。 errorCodeはデフォルトでnullになります。- パラメータ:
- message- 例外の説明
- exception- リンクされた例外
 
 
- 
 - 
メソッドの詳細- 
getErrorCodepublic String getErrorCode() ベンダー固有のエラー・コードを取得します。- 戻り値:
- ベンダー固有のエラー・コードを指定する文字列
 
 - 
getLinkedExceptionpublic Throwable getLinkedException() リンクされた例外を取得します。- 戻り値:
- リンクされた例外。ない場合はnull
 
 - 
setLinkedExceptionpublic void setLinkedException(Throwable exception) リンクされた例外を追加します。- パラメータ:
- exception- リンクされた例外(null値が許可されており、リンクされた例外が存在しないか不明なことを示す)。
 
 - 
toStringpublic String toString() このJAXBExceptionの短い説明を返します。
 - 
printStackTracepublic void printStackTrace(PrintStream s) このJAXBExceptionとそのスタック・トレース(linkedExceptionがnull以外の場合、そのスタック・トレースを含む)をPrintStreamに出力します。- オーバーライド:
- printStackTrace、クラス:- Throwable
- パラメータ:
- s- 出力に使用するPrintStream
 
 - 
printStackTracepublic void printStackTrace() このJAXBExceptionとそのスタック・トレース(linkedExceptionがnull以外の場合、linkedExceptionのスタック・トレースを含む)をSystem.errに出力します。- オーバーライド:
- printStackTrace、クラス:- Throwable
 
 - 
printStackTracepublic void printStackTrace(PrintWriter s) このJAXBExceptionとそのスタック・トレース(linkedExceptionがnull以外の場合、そのスタック・トレースを含む)をPrintWriterに出力します。- オーバーライド:
- printStackTrace、クラス:- Throwable
- パラメータ:
- s- 出力に使用するPrintWriter
 
 
- 
 
-