类 ConversionNotSupportedException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.beans.BeansException
- org.springframework.beans.PropertyAccessException
- org.springframework.beans.TypeMismatchException
- org.springframework.beans.ConversionNotSupportedException
- 所有已实现的接口:
Serializable
,ErrorCoded
public class ConversionNotSupportedException extends TypeMismatchException
Exception thrown when no suitable editor or converter can be found for a bean property.- 从以下版本开始:
- 3.0
- 作者:
- Arjen Poutsma, Juergen Hoeller
- 另请参阅:
- 序列化表格
字段概要
从类继承的字段 org.springframework.beans.TypeMismatchException
ERROR_CODE
构造器概要
构造器 构造器 说明 ConversionNotSupportedException(PropertyChangeEvent propertyChangeEvent, Class<?> requiredType, Throwable cause)
Create a new ConversionNotSupportedException.ConversionNotSupportedException(Object value, Class<?> requiredType, Throwable cause)
Create a new ConversionNotSupportedException.
方法概要
从类继承的方法 org.springframework.beans.TypeMismatchException
getErrorCode, getRequiredType, getValue
从类继承的方法 org.springframework.beans.PropertyAccessException
getPropertyChangeEvent, getPropertyName
从类继承的方法 org.springframework.beans.BeansException
equals, hashCode
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
ConversionNotSupportedException
public ConversionNotSupportedException(PropertyChangeEvent propertyChangeEvent, Class<?> requiredType, Throwable cause)
Create a new ConversionNotSupportedException.- 参数:
propertyChangeEvent
- the PropertyChangeEvent that resulted in the problemrequiredType
- the required target type (ornull
if not known)cause
- the root cause (may benull
)
ConversionNotSupportedException
public ConversionNotSupportedException(Object value, Class<?> requiredType, Throwable cause)
Create a new ConversionNotSupportedException.- 参数:
value
- the offending value that couldn't be converted (may benull
)requiredType
- the required target type (ornull
if not known)cause
- the root cause (may benull
)