org.springframework.beans.factory

## 类 BeanDefinitionStoreException

- 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.BeanDefinitionStoreException

- 所有已实现的接口:
    Serializable
  直接已知子类:
    BeanDefinitionParsingException, XmlBeanDefinitionStoreException

      public class BeanDefinitionStoreException
      extends FatalBeanException

  Exception thrown when a BeanFactory encounters an invalid bean definition: e.g. in case of incomplete or contradictory bean metadata.
  作者:
    Rod Johnson, Juergen Hoeller, Rob Harrop
  另请参阅:
    序列化表格

- - ### 构造器概要

    构造器
    构造器和说明
    `BeanDefinitionStoreException(String msg)` Create a new BeanDefinitionStoreException.
    `BeanDefinitionStoreException(String resourceDescription, String msg)` Create a new BeanDefinitionStoreException.
    `BeanDefinitionStoreException(String resourceDescription, String beanName, String msg)` Create a new BeanDefinitionStoreException.
    `BeanDefinitionStoreException(String resourceDescription, String beanName, String msg, Throwable cause)` Create a new BeanDefinitionStoreException.
    `BeanDefinitionStoreException(String resourceDescription, String msg, Throwable cause)` Create a new BeanDefinitionStoreException.
    `BeanDefinitionStoreException(String msg, Throwable cause)` Create a new BeanDefinitionStoreException.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getBeanName()` Return the name of the bean, if available.
    `String` | `getResourceDescription()` Return the description of the resource that the bean definition came from, if available.

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

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

    - #### BeanDefinitionStoreException

          public BeanDefinitionStoreException(String msg)

      Create a new BeanDefinitionStoreException.
      参数:
        `msg` - the detail message (used as exception message as-is)

    - #### BeanDefinitionStoreException

          public BeanDefinitionStoreException(String msg,
                                              @Nullable
                                              Throwable cause)

      Create a new BeanDefinitionStoreException.
      参数:
        `msg` - the detail message (used as exception message as-is)
        `cause` - the root cause (may be `null`)

    - #### BeanDefinitionStoreException

          public BeanDefinitionStoreException(@Nullable
                                              String resourceDescription,
                                              String msg)

      Create a new BeanDefinitionStoreException.
      参数:
        `resourceDescription` - description of the resource that the bean definition came from
        `msg` - the detail message (used as exception message as-is)

    - #### BeanDefinitionStoreException

          public BeanDefinitionStoreException(@Nullable
                                              String resourceDescription,
                                              String msg,
                                              @Nullable
                                              Throwable cause)

      Create a new BeanDefinitionStoreException.
      参数:
        `resourceDescription` - description of the resource that the bean definition came from
        `msg` - the detail message (used as exception message as-is)
        `cause` - the root cause (may be `null`)

    - #### BeanDefinitionStoreException

          public BeanDefinitionStoreException(@Nullable
                                              String resourceDescription,
                                              String beanName,
                                              String msg)

      Create a new BeanDefinitionStoreException.
      参数:
        `resourceDescription` - description of the resource that the bean definition came from
        `beanName` - the name of the bean
        `msg` - the detail message (appended to an introductory message that indicates the resource and the name of the bean)

    - #### BeanDefinitionStoreException

          public BeanDefinitionStoreException(@Nullable
                                              String resourceDescription,
                                              String beanName,
                                              String msg,
                                              @Nullable
                                              Throwable cause)

      Create a new BeanDefinitionStoreException.
      参数:
        `resourceDescription` - description of the resource that the bean definition came from
        `beanName` - the name of the bean
        `msg` - the detail message (appended to an introductory message that indicates the resource and the name of the bean)
        `cause` - the root cause (may be `null`)

  - ### 方法详细资料

    - #### getResourceDescription

          @Nullable
          public String getResourceDescription()

      Return the description of the resource that the bean definition came from, if available.

    - #### getBeanName

          @Nullable
          public String getBeanName()

      Return the name of the bean, if available.