类 NotReadablePropertyException
- 所有已实现的接口:
Serializable
public class NotReadablePropertyException extends InvalidPropertyException
Exception thrown on an attempt to get the value of a property that isn't readable, because there's no getter method.- 从以下版本开始:
- 1.0.2
- 作者:
- Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 NotReadablePropertyException(Class<?> beanClass, String propertyName)
Create a new NotReadablePropertyException.NotReadablePropertyException(Class<?> beanClass, String propertyName, String msg)
Create a new NotReadablePropertyException.NotReadablePropertyException(Class<?> beanClass, String propertyName, String msg, Throwable cause)
Create a new NotReadablePropertyException.
方法概要
从类继承的方法 org.springframework.beans.InvalidPropertyException
getBeanClass, getPropertyName
从类继承的方法 org.springframework.beans.BeansException
equals, hashCode
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
NotReadablePropertyException
public NotReadablePropertyException(Class<?> beanClass, String propertyName)
Create a new NotReadablePropertyException.- 参数:
beanClass
- the offending bean classpropertyName
- the offending property
NotReadablePropertyException
public NotReadablePropertyException(Class<?> beanClass, String propertyName, String msg)
Create a new NotReadablePropertyException.- 参数:
beanClass
- the offending bean classpropertyName
- the offending propertymsg
- the detail message
NotReadablePropertyException
public NotReadablePropertyException(Class<?> beanClass, String propertyName, String msg, Throwable cause)
Create a new NotReadablePropertyException.- 参数:
beanClass
- the offending bean classpropertyName
- the offending propertymsg
- the detail messagecause
- the root cause- 从以下版本开始:
- 4.0.9