org.springframework.beans

## 类 BeansException

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

- 所有已实现的接口:
    Serializable
  直接已知子类:
    BeanNotOfRequiredTypeException, FatalBeanException, NoSuchBeanDefinitionException, PropertyAccessException, PropertyBatchUpdateException

      public abstract class BeansException
      extends org.springframework.core.NestedRuntimeException

  Abstract superclass for all exceptions thrown in the beans package and subpackages.

  Note that this is a runtime (unchecked) exception. Beans exceptions are usually fatal; there is no reason for them to be checked.

  作者:
    Rod Johnson, Juergen Hoeller
  另请参阅:
    序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `BeansException(String msg)` Create a new BeansException with the specified message.
    `BeansException(String msg, Throwable cause)` Create a new BeansException with the specified message and root cause.

  - ### 方法概要

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

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

    - #### BeansException

          public BeansException(String msg)

      Create a new BeansException with the specified message.
      参数:
        `msg` - the detail message

    - #### BeansException

          public BeansException(@Nullable
                                String msg,
                                @Nullable
                                Throwable cause)

      Create a new BeansException with the specified message and root cause.
      参数:
        `msg` - the detail message
        `cause` - the root cause