Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » beans » [javadoc | source]
org.springframework.beans
public class: NotWritablePropertyException [javadoc | source]
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

All Implemented Interfaces:
    Serializable

Exception thrown on an attempt to set the value of a property that isn't writable, because there's no setter method. In some situations alternatives are presented.
Constructor:
 public NotWritablePropertyException(Class beanClass,
    String propertyName) 
    Create a new NotWritablePropertyException.
    Parameters:
    beanClass - the offending bean class
    propertyName - the offending property name
 public NotWritablePropertyException(Class beanClass,
    String propertyName,
    String msg) 
    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) 
    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) 
    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
Method from org.springframework.beans.NotWritablePropertyException Summary:
getPossibleMatches
Methods from org.springframework.beans.InvalidPropertyException:
getBeanClass,   getPropertyName
Methods from org.springframework.beans.BeansException:
equals,   hashCode
Methods from org.springframework.core.NestedRuntimeException:
contains,   getMessage,   getMostSpecificCause,   getRootCause
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.beans.NotWritablePropertyException Detail:
 public String[] getPossibleMatches() 
    Return suggestions for actual bean property names that closely match the invalid property name, if any.