类 InvalidPropertyException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.beans.BeansException
- org.springframework.beans.FatalBeanException
- org.springframework.beans.InvalidPropertyException
- 所有已实现的接口:
Serializable
public class InvalidPropertyException extends FatalBeanException
Exception thrown when referring to an invalid bean property. Carries the offending bean class and property name.- 从以下版本开始:
- 1.0.2
- 作者:
- Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 InvalidPropertyException(Class<?> beanClass, String propertyName, String msg)
Create a new InvalidPropertyException.InvalidPropertyException(Class<?> beanClass, String propertyName, String msg, Throwable cause)
Create a new InvalidPropertyException.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Class<?>
getBeanClass()
Return the offending bean class.String
getPropertyName()
Return the name of the offending property.从类继承的方法 org.springframework.beans.BeansException
equals, hashCode
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
InvalidPropertyException
public InvalidPropertyException(Class<?> beanClass, String propertyName, String msg)
Create a new InvalidPropertyException.- 参数:
beanClass
- the offending bean classpropertyName
- the offending propertymsg
- the detail message
InvalidPropertyException
public InvalidPropertyException(Class<?> beanClass, String propertyName, String msg, Throwable cause)
Create a new InvalidPropertyException.- 参数:
beanClass
- the offending bean classpropertyName
- the offending propertymsg
- the detail messagecause
- the root cause
方法详细资料
getBeanClass
public Class<?> getBeanClass()
Return the offending bean class.
getPropertyName
public String getPropertyName()
Return the name of the offending property.