org.springframework.beans

## 类 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

- 所有已实现的接口:
    Serializable
  直接已知子类:
    NotReadablePropertyException, NotWritablePropertyException, NullValueInNestedPathException

      public class InvalidPropertyException
      extends FatalBeanException

  Exception thrown when referring to an invalid bean property. Carries the offending bean class and property name.
  从以下版本开始:
    1.0.2
  作者:
    Juergen Hoeller
  另请参阅:
    序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `InvalidPropertyException(Class<?> beanClass, String propertyName, String msg)` Create a new InvalidPropertyException.
    `InvalidPropertyException(Class<?> beanClass, String propertyName, String msg, Throwable cause)` Create a new InvalidPropertyException.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Class<?>` | `getBeanClass()` Return the offending bean class.
    `String` | `getPropertyName()` Return the name of the offending property.

    - ### 从类继承的方法 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`

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

    - #### InvalidPropertyException

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

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

    - #### InvalidPropertyException

          public InvalidPropertyException(Class<?> beanClass,
                                          String propertyName,
                                          String msg,
                                          @Nullable
                                          Throwable cause)

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

  - ### 方法详细资料

    - #### getBeanClass

          public Class<?> getBeanClass()

      Return the offending bean class.

    - #### getPropertyName

          public String getPropertyName()

      Return the name of the offending property.