类 ConversionFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.taketoday.core.NestedRuntimeException
cn.taketoday.core.conversion.ConversionException
cn.taketoday.core.conversion.ConversionFailedException
- 所有已实现的接口:
Serializable
Exception to be thrown when an actual type conversion attempt fails.
- 从以下版本开始:
- 3.0
- 作者:
- Keith Donald, Juergen Hoeller, TODAY 2021/3/22 12:11
- 另请参阅:
-
构造器概要
构造器构造器说明ConversionFailedException(TypeDescriptor sourceType, TypeDescriptor targetType, Object value, Throwable cause) Create a new conversion exception. -
方法概要
修饰符和类型方法说明Return the source type we tried to convert the value from.Return the target type we tried to convert the value to.getValue()Return the offending value.从类继承的方法 cn.taketoday.core.NestedRuntimeException
contains, getMostSpecificCause, getNestedMessage, getRootCause
-
构造器详细资料
-
ConversionFailedException
public ConversionFailedException(@Nullable TypeDescriptor sourceType, TypeDescriptor targetType, @Nullable Object value, Throwable cause) Create a new conversion exception.- 参数:
sourceType- the value's original typetargetType- the value's target typevalue- the value we tried to convertcause- the cause of the conversion failure
-
-
方法详细资料
-
getSourceType
Return the source type we tried to convert the value from. -
getTargetType
Return the target type we tried to convert the value to. -
getValue
Return the offending value.
-