org.springframework.beans
public class: NullValueInNestedPathException [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.NullValueInNestedPathException
All Implemented Interfaces:
Serializable
Exception thrown when navigation of a valid nested property
path encounters a NullPointerException.
For example, navigating "spouse.age" could fail because the
spouse property of the target object has a null value.
| Constructor: |
public NullValueInNestedPathException(Class beanClass,
String propertyName) {
super(beanClass, propertyName, "Value of nested property '" + propertyName + "' is null");
}
Create a new NullValueInNestedPathException. Parameters:
beanClass - the offending bean class
propertyName - the offending property
|
public NullValueInNestedPathException(Class beanClass,
String propertyName,
String msg) {
super(beanClass, propertyName, msg);
}
Create a new NullValueInNestedPathException. Parameters:
beanClass - the offending bean class
propertyName - the offending property
msg - the detail message
|
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |