类 ConverterNotFoundException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.core.convert.ConversionException
- org.springframework.core.convert.ConverterNotFoundException
- 所有已实现的接口:
Serializable
public class ConverterNotFoundException extends ConversionException
Exception to be thrown when a suitable converter could not be found in a given conversion service.- 从以下版本开始:
- 3.0
- 作者:
- Keith Donald, Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 ConverterNotFoundException(TypeDescriptor sourceType, TypeDescriptor targetType)
Create a new conversion executor not found exception.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 TypeDescriptor
getSourceType()
Return the source type that was requested to convert from.TypeDescriptor
getTargetType()
Return the target type that was requested to convert to.从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
ConverterNotFoundException
public ConverterNotFoundException(TypeDescriptor sourceType, TypeDescriptor targetType)
Create a new conversion executor not found exception.- 参数:
sourceType
- the source type requested to convert fromtargetType
- the target type requested to convert to
方法详细资料
getSourceType
public TypeDescriptor getSourceType()
Return the source type that was requested to convert from.
getTargetType
public TypeDescriptor getTargetType()
Return the target type that was requested to convert to.