类 NullValueInNestedPathException
- 所有已实现的接口:
Serializable
public class NullValueInNestedPathException extends InvalidPropertyException
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.
- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 NullValueInNestedPathException(Class<?> beanClass, String propertyName)
Create a new NullValueInNestedPathException.NullValueInNestedPathException(Class<?> beanClass, String propertyName, String msg)
Create a new NullValueInNestedPathException.NullValueInNestedPathException(Class<?> beanClass, String propertyName, String msg, Throwable cause)
Create a new NullValueInNestedPathException.
方法概要
从类继承的方法 org.springframework.beans.InvalidPropertyException
getBeanClass, getPropertyName
从类继承的方法 org.springframework.beans.BeansException
equals, hashCode
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
NullValueInNestedPathException
public NullValueInNestedPathException(Class<?> beanClass, String propertyName)
Create a new NullValueInNestedPathException.- 参数:
beanClass
- the offending bean classpropertyName
- the offending property
NullValueInNestedPathException
public NullValueInNestedPathException(Class<?> beanClass, String propertyName, String msg)
Create a new NullValueInNestedPathException.- 参数:
beanClass
- the offending bean classpropertyName
- the offending propertymsg
- the detail message
NullValueInNestedPathException
public NullValueInNestedPathException(Class<?> beanClass, String propertyName, String msg, Throwable cause)
Create a new NullValueInNestedPathException.- 参数:
beanClass
- the offending bean classpropertyName
- the offending propertymsg
- the detail messagecause
- the root cause- 从以下版本开始:
- 4.3.2