Top Description Constructors Methods
org.springframework.beans

public Class NullValueInNestedPathException

extends InvalidPropertyException
Class Inheritance
Annotations
@SuppressWarnings:serial

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.

Authors
Rod Johnson, Juergen Hoeller

Constructor Summary

AccessConstructor and Description
public
NullValueInNestedPathException(Class<?>
the offending bean class
beanClass
,
String
the offending property
propertyName
)

Create a new NullValueInNestedPathException.

public
NullValueInNestedPathException(Class<?>
the offending bean class
beanClass
,
String
the offending property
propertyName
,
String
the detail message
msg
)

Create a new NullValueInNestedPathException.

public
NullValueInNestedPathException(Class<?>
the offending bean class
beanClass
,
String
the offending property
propertyName
,
String
the detail message
msg
,
Throwable
the root cause
cause
)

Create a new NullValueInNestedPathException.

Method Summary

Inherited from org.springframework.beans.InvalidPropertyException:
getBeanClassgetPropertyName

Constructor Detail

NullValueInNestedPathExceptionback to summary
public NullValueInNestedPathException(Class<?> beanClass, String propertyName)

Create a new NullValueInNestedPathException.

Parameters
beanClass:Class<?>

the offending bean class

propertyName:String

the offending property

NullValueInNestedPathExceptionback to summary
public NullValueInNestedPathException(Class<?> beanClass, String propertyName, String msg)

Create a new NullValueInNestedPathException.

Parameters
beanClass:Class<?>

the offending bean class

propertyName:String

the offending property

msg:String

the detail message

NullValueInNestedPathExceptionback to summary
public NullValueInNestedPathException(Class<?> beanClass, String propertyName, String msg, Throwable cause)

Create a new NullValueInNestedPathException.

Parameters
beanClass:Class<?>

the offending bean class

propertyName:String

the offending property

msg:String

the detail message

cause:Throwable

the root cause

Since
4.3.2