Top Description Fields Constructors Methods
org.springframework.beans

public Class InvalidPropertyException

extends FatalBeanException
Class Inheritance
Known Direct Subclasses
org.springframework.beans.NotWritablePropertyException, org.springframework.beans.NullValueInNestedPathException, org.springframework.beans.NotReadablePropertyException
Annotations
@SuppressWarnings:serial
Imports
org.springframework.lang.Nullable

Exception thrown when referring to an invalid bean property. Carries the offending bean class and property name.
Author
Juergen Hoeller
Since
1.0.2

Field Summary

Modifier and TypeField and Description
private final Class<?>
private final String

Constructor Summary

AccessConstructor and Description
public
InvalidPropertyException(Class<?>
the offending bean class
beanClass
,
String
the offending property
propertyName
,
String
the detail message
msg
)

Create a new InvalidPropertyException.

public
InvalidPropertyException(Class<?>
the offending bean class
beanClass
,
String
the offending property
propertyName
,
String
the detail message
msg
,
Throwable
the root cause
cause
)

Create a new InvalidPropertyException.

Method Summary

Modifier and TypeMethod and Description
public Class<?>
getBeanClass()

Return the offending bean class.

public String
getPropertyName()

Return the name of the offending property.

Field Detail

beanClassback to summary
private final Class<?> beanClass
propertyNameback to summary
private final String propertyName

Constructor Detail

InvalidPropertyExceptionback to summary
public InvalidPropertyException(Class<?> beanClass, String propertyName, String msg)

Create a new InvalidPropertyException.

Parameters
beanClass:Class<?>

the offending bean class

propertyName:String

the offending property

msg:String

the detail message

InvalidPropertyExceptionback to summary
public InvalidPropertyException(Class<?> beanClass, String propertyName, String msg, Throwable cause)

Create a new InvalidPropertyException.

Parameters
beanClass:Class<?>

the offending bean class

propertyName:String

the offending property

msg:String

the detail message

cause:Throwable

the root cause

Method Detail

getBeanClassback to summary
public Class<?> getBeanClass()

Return the offending bean class.

getPropertyNameback to summary
public String getPropertyName()

Return the name of the offending property.