org.springframework.beans.factory

## 类 BeanInitializationException

- 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.factory.BeanInitializationException

- 所有已实现的接口:
    Serializable

      public class BeanInitializationException
      extends FatalBeanException

  Exception that a bean implementation is suggested to throw if its own factory-aware initialization code fails. BeansExceptions thrown by bean factory methods themselves should simply be propagated as-is.

  Note that `afterPropertiesSet()` or a custom "init-method" can throw any exception.

  从以下版本开始:
    13.11.2003
  作者:
    Juergen Hoeller
  另请参阅:
    `BeanFactoryAware.setBeanFactory(org.springframework.beans.factory.BeanFactory)`, `InitializingBean.afterPropertiesSet()`, 序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `BeanInitializationException(String msg)` Create a new BeanInitializationException with the specified message.
    `BeanInitializationException(String msg, Throwable cause)` Create a new BeanInitializationException 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`

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

    - #### BeanInitializationException

          public BeanInitializationException(String msg)

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

    - #### BeanInitializationException

          public BeanInitializationException(String msg,
                                             Throwable cause)

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