org.springframework.beans

## 类 MethodInvocationException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.springframework.core.NestedRuntimeException
        - - org.springframework.beans.BeansException
          - - org.springframework.beans.PropertyAccessException
            - - org.springframework.beans.MethodInvocationException

- 所有已实现的接口:
    Serializable

      public class MethodInvocationException
      extends PropertyAccessException

  Thrown when a bean property getter or setter method throws an exception, analogous to an InvocationTargetException.
  作者:
    Rod Johnson
  另请参阅:
    序列化表格

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static String` | `ERROR_CODE` Error code that a method invocation error will be registered with.

  - ### 构造器概要

    构造器
    构造器和说明
    `MethodInvocationException(PropertyChangeEvent propertyChangeEvent, Throwable cause)` Create a new MethodInvocationException.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getErrorCode()` Return a corresponding error code for this type of exception.

    - ### 从类继承的方法 org.springframework.beans.PropertyAccessException

      `getPropertyChangeEvent, getPropertyName, getValue`

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

- - ### 字段详细资料

    - #### ERROR_CODE

          public static final String ERROR_CODE

      Error code that a method invocation error will be registered with.
      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### MethodInvocationException

          public MethodInvocationException(PropertyChangeEvent propertyChangeEvent,
                                           Throwable cause)

      Create a new MethodInvocationException.
      参数:
        `propertyChangeEvent` - PropertyChangeEvent that resulted in an exception
        `cause` - the Throwable raised by the invoked method

  - ### 方法详细资料

    - #### getErrorCode

          public String getErrorCode()

      从类复制的说明: `PropertyAccessException`
      Return a corresponding error code for this type of exception.
      指定者:
        `getErrorCode` 在类中 `PropertyAccessException`