public class NotWritablePropertyException extends InvalidPropertyException
Constructor and Description |
---|
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,
String[] possibleMatches)
Create a new NotWritablePropertyException.
|
NotWritablePropertyException(Class<?> beanClass,
String propertyName,
String msg,
Throwable cause)
Create a new NotWritablePropertyException.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getPossibleMatches()
Return suggestions for actual bean property names that closely match
the invalid property name, if any.
|
getBeanClass, getPropertyName
contains, getMessage, getMostSpecificCause, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public NotWritablePropertyException(Class<?> beanClass, String propertyName)
beanClass
- the offending bean classpropertyName
- the offending property namepublic NotWritablePropertyException(Class<?> beanClass, String propertyName, String msg)
beanClass
- the offending bean classpropertyName
- the offending property namemsg
- the detail messagepublic NotWritablePropertyException(Class<?> beanClass, String propertyName, String msg, Throwable cause)
beanClass
- the offending bean classpropertyName
- the offending property namemsg
- the detail messagecause
- the root causepublic NotWritablePropertyException(Class<?> beanClass, String propertyName, String msg, 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