org.springframework.beans
Class NullValueInNestedPathException
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.NullValueInNestedPathException
- public class NullValueInNestedPathException
- extends FatalBeanException
Exception thrown when navigation of a valid nested property
path encounters a null pointer exception. For example,
navigating spouse.age fails because the spouse property of the
target object has a null value.
- Author:
- Rod Johnson
| Methods inherited from class java.lang.Throwable |
printStackTrace, getStackTrace, setStackTrace, getLocalizedMessage, toString, fillInStackTrace, initCause |
| Methods inherited from class java.lang.Object |
hashCode, notify, notifyAll, wait, wait, wait, getClass, equals |
NullValueInNestedPathException
public NullValueInNestedPathException(Class clazz, String propertyName)
- Constructor for NullValueInNestedPathException.
- Parameters:
- clazz
- propertyName
getBeanClass
public Class getBeanClass()
getPropertyName
public String getPropertyName()
- Returns: the name of the offending property
to Class java.lang.String
to Class java.lang.Class