クラス ConversionFailedException
java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
java.lang.RuntimeExceptionSE
org.springframework.core.NestedRuntimeException
org.springframework.core.convert.ConversionException
org.springframework.core.convert.ConversionFailedException
- 実装されたすべてのインターフェース:
SerializableSE
実際の型変換の試行が失敗したときにスローされる例外。
- 導入:
- 3.0
- 作成者:
- Keith Donald, Juergen Hoeller
- 関連事項:
コンストラクターのサマリー
コンストラクター説明ConversionFailedException
(TypeDescriptor sourceType, TypeDescriptor targetType, ObjectSE value, ThrowableSE cause) 新しい変換例外を作成します。メソッドのサマリー
クラス org.springframework.core.NestedRuntimeException から継承されたメソッド
contains, getMostSpecificCause, getRootCause
クラス java.lang.ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toString
コンストラクターの詳細
ConversionFailedException
public ConversionFailedException(@Nullable TypeDescriptor sourceType, TypeDescriptor targetType, @Nullable ObjectSE value, ThrowableSE cause) 新しい変換例外を作成します。- パラメーター:
sourceType
- 値の元の型targetType
- 値のターゲット型value
- 変換しようとした値cause
- 変換エラーの原因
メソッドの詳細
getSourceType
値の変換を試みたソース型を返します。getTargetType
値を変換しようとしたターゲット型を返します。getValue
問題のある値を返します。