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

Constructor Summary
NullValueInNestedPathException(Class clazz, String propertyName)
          Constructor for NullValueInNestedPathException.

Method Summary
 ClassgetBeanClass()
           
 StringgetPropertyName()
           

Methods inherited from class org.springframework.core.NestedRuntimeException
getCause, getMessage, printStackTrace, printStackTrace

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

Constructor Detail

NullValueInNestedPathException

public NullValueInNestedPathException(Class clazz, String propertyName)
Constructor for NullValueInNestedPathException.
Parameters:
clazz
propertyName
Method Detail

getBeanClass

public Class getBeanClass()

getPropertyName

public String getPropertyName()
Returns: the name of the offending property

Association Links

to Class java.lang.String

to Class java.lang.Class