org.springframework.beans
public class: InvalidPropertyException [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
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NotWritablePropertyException, NullValueInNestedPathException, NotReadablePropertyException
Exception thrown when referring to an invalid bean property.
Carries the offending bean class and property name.
- author:
Juergen - Hoeller
- since:
1.0.2 -
| Constructor: |
public InvalidPropertyException(Class beanClass,
String propertyName,
String msg) {
this(beanClass, propertyName, msg, null);
}
Create a new InvalidPropertyException. Parameters:
beanClass - the offending bean class
propertyName - the offending property
msg - the detail message
|
public InvalidPropertyException(Class beanClass,
String propertyName,
String msg,
Throwable cause) {
super("Invalid property '" + propertyName + "' of bean class [" + beanClass.getName() + "]: " + msg, cause);
this.beanClass = beanClass;
this.propertyName = propertyName;
}
Create a new InvalidPropertyException. Parameters:
beanClass - the offending bean class
propertyName - the offending property
msg - the detail message
cause - the root cause
|
| Methods from org.springframework.beans.BeansException: |
|---|
|
equals, hashCode |
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Method from org.springframework.beans.InvalidPropertyException Detail: |
public Class getBeanClass() {
return beanClass;
}
Return the offending bean class. |
public String getPropertyName() {
return propertyName;
}
Return the name of the offending property. |