org.springframework.beans

## 类 NullValueInNestedPathException

- 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

- 所有已实现的接口:
    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.core.NestedRuntimeException

      `contains, getMessage, getMostSpecificCause, getRootCause`

    - ### 从类继承的方法 java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### NullValueInNestedPathException

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

      Create a new NullValueInNestedPathException.
      参数:
        `beanClass` - the offending bean class
        `propertyName` - the offending property

    - #### NullValueInNestedPathException

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

      Create a new NullValueInNestedPathException.
      参数:
        `beanClass` - the offending bean class
        `propertyName` - the offending property
        `msg` - the detail message

    - #### NullValueInNestedPathException

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

      Create a new NullValueInNestedPathException.
      参数:
        `beanClass` - the offending bean class
        `propertyName` - the offending property
        `msg` - the detail message
        `cause` - the root cause
      从以下版本开始:
        4.3.2