spring-framework / org.springframework.beans / NotWritablePropertyException

NotWritablePropertyException

open class NotWritablePropertyException : InvalidPropertyException

Exception thrown on an attempt to set the value of a property that is not writable (typically because there is no setter method).

Author
Rod Johnson

Author
Alef Arendsen

Author
Arjen Poutsma

Constructors

<init>

NotWritablePropertyException(beanClass: Class<*>, propertyName: String)
NotWritablePropertyException(beanClass: Class<*>, propertyName: String, msg: String)
NotWritablePropertyException(beanClass: Class<*>, propertyName: String, msg: String, cause: Throwable)
NotWritablePropertyException(beanClass: Class<*>, propertyName: String, msg: String, possibleMatches: Array<String>)

Create a new NotWritablePropertyException.

Functions

getPossibleMatches

open fun getPossibleMatches(): Array<String>

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