public class NullValueInNestedPathException extends InvalidPropertyException
For example, navigating "spouse.age" could fail because the spouse property of the target object has a null value.
Constructor and Description |
---|
NullValueInNestedPathException(java.lang.Class<?> beanClass,
java.lang.String propertyName)
Create a new NullValueInNestedPathException.
|
NullValueInNestedPathException(java.lang.Class<?> beanClass,
java.lang.String propertyName,
java.lang.String msg)
Create a new NullValueInNestedPathException.
|
NullValueInNestedPathException(java.lang.Class<?> beanClass,
java.lang.String propertyName,
java.lang.String msg,
java.lang.Throwable cause)
Create a new NullValueInNestedPathException.
|
getBeanClass, getPropertyName
contains, getMessage, getMostSpecificCause, getRootCause
public NullValueInNestedPathException(java.lang.Class<?> beanClass, java.lang.String propertyName)
beanClass
- the offending bean classpropertyName
- the offending propertypublic NullValueInNestedPathException(java.lang.Class<?> beanClass, java.lang.String propertyName, java.lang.String msg)
beanClass
- the offending bean classpropertyName
- the offending propertymsg
- the detail messagepublic NullValueInNestedPathException(java.lang.Class<?> beanClass, java.lang.String propertyName, java.lang.String msg, java.lang.Throwable cause)
beanClass
- the offending bean classpropertyName
- the offending propertymsg
- the detail messagecause
- the root cause