com.interface21.beans
Class NullValueInNestedPathException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.interface21.core.NestedRuntimeException
                          |
                          +--com.interface21.beans.BeansException
                                |
                                +--com.interface21.beans.FatalBeanException
                                      |
                                      +--com.interface21.beans.NullValueInNestedPathException
All Implemented Interfaces:
HasRootCause, java.io.Serializable

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
See Also:
Serialized Form

Constructor Summary
NullValueInNestedPathException(java.lang.Class clazz, java.lang.String propertyName)
          Constructor for NullValueInNestedPathException.
 
Method Summary
 java.lang.Class getBeanClass()
           
 java.lang.String getPropertyName()
           
 
Methods inherited from class com.interface21.core.NestedRuntimeException
getMessage, getRootCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullValueInNestedPathException

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

getPropertyName

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

getBeanClass

public java.lang.Class getBeanClass()


Rod Johnson and Spring contributors 2001-2003.