public class NotWritablePropertyException extends InvalidPropertyException
Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
possibleMatches |
Constructor and Description |
---|
NotWritablePropertyException(java.lang.Class<?> beanClass,
java.lang.String propertyName)
Create a new NotWritablePropertyException.
|
NotWritablePropertyException(java.lang.Class<?> beanClass,
java.lang.String propertyName,
java.lang.String msg)
Create a new NotWritablePropertyException.
|
NotWritablePropertyException(java.lang.Class<?> beanClass,
java.lang.String propertyName,
java.lang.String msg,
java.lang.String[] possibleMatches)
Create a new NotWritablePropertyException.
|
NotWritablePropertyException(java.lang.Class<?> beanClass,
java.lang.String propertyName,
java.lang.String msg,
java.lang.Throwable cause)
Create a new NotWritablePropertyException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getPossibleMatches()
Return suggestions for actual bean property names that closely match
the invalid property name, if any.
|
getBeanClass, getPropertyName
equals, hashCode
contains, getMessage, getMostSpecificCause, getRootCause
public NotWritablePropertyException(java.lang.Class<?> beanClass, java.lang.String propertyName)
beanClass
- the offending bean classpropertyName
- the offending property namepublic NotWritablePropertyException(java.lang.Class<?> beanClass, java.lang.String propertyName, java.lang.String msg)
beanClass
- the offending bean classpropertyName
- the offending property namemsg
- the detail messagepublic NotWritablePropertyException(java.lang.Class<?> beanClass, java.lang.String propertyName, java.lang.String msg, java.lang.Throwable cause)
beanClass
- the offending bean classpropertyName
- the offending property namemsg
- the detail messagecause
- the root causepublic NotWritablePropertyException(java.lang.Class<?> beanClass, java.lang.String propertyName, java.lang.String msg, java.lang.String[] possibleMatches)
beanClass
- the offending bean classpropertyName
- the offending property namemsg
- the detail messagepossibleMatches
- suggestions for actual bean property names
that closely match the invalid property name