public class

NotWritablePropertyException

extends 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
                 ↳ org.springframework.beans.NotWritablePropertyException

Class Overview

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

Summary

Public Constructors
NotWritablePropertyException(Class beanClass, String propertyName)
Create a new NotWritablePropertyException.
NotWritablePropertyException(Class beanClass, String propertyName, String msg)
Create a new NotWritablePropertyException.
NotWritablePropertyException(Class beanClass, String propertyName, String msg, Throwable cause)
Create a new NotWritablePropertyException.
NotWritablePropertyException(Class beanClass, String propertyName, String msg, String[] possibleMatches)
Create a new NotWritablePropertyException.
Public Methods
String[] getPossibleMatches()
Return suggestions for actual bean property names that closely match the invalid property name, if any.
[Expand]
Inherited Methods
From class org.springframework.beans.InvalidPropertyException
From class org.springframework.beans.BeansException
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public NotWritablePropertyException (Class beanClass, String propertyName)

Also: SpringBeans

Create a new NotWritablePropertyException.

Parameters
beanClass the offending bean class
propertyName the offending property name

public NotWritablePropertyException (Class beanClass, String propertyName, String msg)

Also: SpringBeans

Create a new NotWritablePropertyException.

Parameters
beanClass the offending bean class
propertyName the offending property name
msg the detail message

public NotWritablePropertyException (Class beanClass, String propertyName, String msg, Throwable cause)

Also: SpringBeans

Create a new NotWritablePropertyException.

Parameters
beanClass the offending bean class
propertyName the offending property name
msg the detail message
cause the root cause

public NotWritablePropertyException (Class beanClass, String propertyName, String msg, String[] possibleMatches)

Also: SpringBeans

Create a new NotWritablePropertyException.

Parameters
beanClass the offending bean class
propertyName the offending property name
msg the detail message
possibleMatches suggestions for actual bean property names that closely match the invalid property name

Public Methods

public String[] getPossibleMatches ()

Also: SpringBeans

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