Top Description Fields Constructors Methods
org.springframework.beans

public Class NotWritablePropertyException

extends InvalidPropertyException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.lang.Nullable

Exception thrown on an attempt to set the value of a property that is not writable (typically because there is no setter method).
Authors
Rod Johnson, Alef Arendsen, Arjen Poutsma

Field Summary

Modifier and TypeField and Description
private final String[]

Constructor Summary

AccessConstructor and Description
public
NotWritablePropertyException(Class<?>
the offending bean class
beanClass
,
String
the offending property name
propertyName
)

Create a new NotWritablePropertyException.

public
NotWritablePropertyException(Class<?>
the offending bean class
beanClass
,
String
the offending property name
propertyName
,
String
the detail message
msg
)

Create a new NotWritablePropertyException.

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

Create a new NotWritablePropertyException.

public
NotWritablePropertyException(Class<?>
the offending bean class
beanClass
,
String
the offending property name
propertyName
,
String
the detail message
msg
,
String[]
suggestions for actual bean property names that closely match the invalid property name
possibleMatches
)

Create a new NotWritablePropertyException.

Method Summary

Modifier and TypeMethod and Description
public String[]
getPossibleMatches()

Return suggestions for actual bean property names that closely match the invalid property name, if any.

Inherited from org.springframework.beans.InvalidPropertyException:
getBeanClassgetPropertyName

Field Detail

possibleMatchesback to summary
private final String[] possibleMatches
Annotations
@Nullable

Constructor Detail

NotWritablePropertyExceptionback to summary
public NotWritablePropertyException(Class<?> beanClass, String propertyName)

Create a new NotWritablePropertyException.

Parameters
beanClass:Class<?>

the offending bean class

propertyName:String

the offending property name

NotWritablePropertyExceptionback to summary
public NotWritablePropertyException(Class<?> beanClass, String propertyName, String msg)

Create a new NotWritablePropertyException.

Parameters
beanClass:Class<?>

the offending bean class

propertyName:String

the offending property name

msg:String

the detail message

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

Create a new NotWritablePropertyException.

Parameters
beanClass:Class<?>

the offending bean class

propertyName:String

the offending property name

msg:String

the detail message

cause:Throwable

the root cause

NotWritablePropertyExceptionback to summary
public NotWritablePropertyException(Class<?> beanClass, String propertyName, String msg, String[] possibleMatches)

Create a new NotWritablePropertyException.

Parameters
beanClass:Class<?>

the offending bean class

propertyName:String

the offending property name

msg:String

the detail message

possibleMatches:String[]

suggestions for actual bean property names that closely match the invalid property name

Method Detail

getPossibleMatchesback to summary
public String[] getPossibleMatches()

Return suggestions for actual bean property names that closely match the invalid property name, if any.

Annotations
@Nullable