クラス ConversionFailedException

実装されたすべてのインターフェース:
SerializableSE

public class ConversionFailedException extends ConversionException
実際の型変換の試行が失敗したときにスローされる例外。
導入:
3.0
作成者:
Keith Donald, Juergen Hoeller
関連事項:
  • コンストラクターの詳細

    • ConversionFailedException

      public ConversionFailedException(@Nullable TypeDescriptor sourceType, TypeDescriptor targetType, @Nullable ObjectSE value, ThrowableSE cause)
      新しい変換例外を作成します。
      パラメーター:
      sourceType - 値の元の型
      targetType - 値のターゲット型
      value - 変換しようとした値
      cause - 変換エラーの原因
  • メソッドの詳細

    • getSourceType

      @Nullable public TypeDescriptor getSourceType()
      値の変換を試みたソース型を返します。
    • getTargetType

      public TypeDescriptor getTargetType()
      値を変換しようとしたターゲット型を返します。
    • getValue

      @Nullable public ObjectSE getValue()
      問題のある値を返します。