public class

NullValueInNestedPathException

extends InvalidPropertyException
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

Class Overview

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.

Summary

Public Constructors
NullValueInNestedPathException(Class beanClass, String propertyName)
Create a new NullValueInNestedPathException.
NullValueInNestedPathException(Class beanClass, String propertyName, String msg)
Create a new NullValueInNestedPathException.
[Expand]
Inherited Methods
From class org.springframework.beans.InvalidPropertyException
From class org.springframework.beans.BeansException
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public NullValueInNestedPathException (Class beanClass, String propertyName)

Also: SpringBeans

Create a new NullValueInNestedPathException.

Parameters
beanClass the offending bean class
propertyName the offending property

public NullValueInNestedPathException (Class beanClass, String propertyName, String msg)

Also: SpringBeans

Create a new NullValueInNestedPathException.

Parameters
beanClass the offending bean class
propertyName the offending property
msg the detail message