Save This Page
Home » spring-framework-2.5.4 » org.springframework » beans » [javadoc | source]
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) 
    Create a new NullValueInNestedPathException.
    Parameters:
    beanClass - the offending bean class
    propertyName - the offending property
 public NullValueInNestedPathException(Class beanClass,
    String propertyName,
    String msg) 
    Create a new NullValueInNestedPathException.
    Parameters:
    beanClass - the offending bean class
    propertyName - the offending property
    msg - the detail message
Methods from org.springframework.beans.InvalidPropertyException:
getBeanClass,   getPropertyName
Methods from org.springframework.core.NestedRuntimeException:
contains,   getMessage,   getMostSpecificCause,   getRootCause
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait