Top Description Fields Constructors Methods
org.springframework.beans.factory

public Class BeanDefinitionStoreException

extends FatalBeanException
Class Inheritance
Known Direct Subclasses
org.springframework.beans.factory.parsing.BeanDefinitionParsingException, org.springframework.beans.factory.support.BeanDefinitionOverrideException, org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException
Annotations
@SuppressWarnings:serial
Imports
org.springframework.beans.FatalBeanException, org.springframework.lang.Nullable

Exception thrown when a BeanFactory encounters an invalid bean definition: e.g. in case of incomplete or contradictory bean metadata.
Authors
Rod Johnson, Juergen Hoeller, Rob Harrop

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
BeanDefinitionStoreException(String
the detail message (used as exception message as-is)
msg
)

Create a new BeanDefinitionStoreException.

public
BeanDefinitionStoreException(String
the detail message (used as exception message as-is)
msg
,
Throwable
the root cause (may be null)
cause
)

Create a new BeanDefinitionStoreException.

public
BeanDefinitionStoreException(String
description of the resource that the bean definition came from
resourceDescription
,
String
the detail message (used as exception message as-is)
msg
)

Create a new BeanDefinitionStoreException.

public
BeanDefinitionStoreException(String
description of the resource that the bean definition came from
resourceDescription
,
String
the detail message (used as exception message as-is)
msg
,
Throwable
the root cause (may be null)
cause
)

Create a new BeanDefinitionStoreException.

public
BeanDefinitionStoreException(String
description of the resource that the bean definition came from
resourceDescription
,
String
the name of the bean
beanName
,
String
the detail message (appended to an introductory message that indicates the resource and the name of the bean)
msg
)

Create a new BeanDefinitionStoreException.

public
BeanDefinitionStoreException(String
description of the resource that the bean definition came from
resourceDescription
,
String
the name of the bean
beanName
,
String
the detail message (appended to an introductory message that indicates the resource and the name of the bean)
msg
,
Throwable
the root cause (may be null)
cause
)

Create a new BeanDefinitionStoreException.

Method Summary

Modifier and TypeMethod and Description
public String
getBeanName()

Return the name of the bean, if available.

public String
getResourceDescription()

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

Field Detail

beanNameback to summary
private final String beanName
Annotations
@Nullable
resourceDescriptionback to summary
private final String resourceDescription
Annotations
@Nullable

Constructor Detail

BeanDefinitionStoreExceptionback to summary
public BeanDefinitionStoreException(String msg)

Create a new BeanDefinitionStoreException.

Parameters
msg:String

the detail message (used as exception message as-is)

BeanDefinitionStoreExceptionback to summary
public BeanDefinitionStoreException(String msg, Throwable cause)

Create a new BeanDefinitionStoreException.

Parameters
msg:String

the detail message (used as exception message as-is)

cause:Throwable

the root cause (may be null)

BeanDefinitionStoreExceptionback to summary
public BeanDefinitionStoreException(String resourceDescription, String msg)

Create a new BeanDefinitionStoreException.

Parameters
resourceDescription:String

description of the resource that the bean definition came from

msg:String

the detail message (used as exception message as-is)

BeanDefinitionStoreExceptionback to summary
public BeanDefinitionStoreException(String resourceDescription, String msg, Throwable cause)

Create a new BeanDefinitionStoreException.

Parameters
resourceDescription:String

description of the resource that the bean definition came from

msg:String

the detail message (used as exception message as-is)

cause:Throwable

the root cause (may be null)

BeanDefinitionStoreExceptionback to summary
public BeanDefinitionStoreException(String resourceDescription, String beanName, String msg)

Create a new BeanDefinitionStoreException.

Parameters
resourceDescription:String

description of the resource that the bean definition came from

beanName:String

the name of the bean

msg:String

the detail message (appended to an introductory message that indicates the resource and the name of the bean)

BeanDefinitionStoreExceptionback to summary
public BeanDefinitionStoreException(String resourceDescription, String beanName, String msg, Throwable cause)

Create a new BeanDefinitionStoreException.

Parameters
resourceDescription:String

description of the resource that the bean definition came from

beanName:String

the name of the bean

msg:String

the detail message (appended to an introductory message that indicates the resource and the name of the bean)

cause:Throwable

the root cause (may be null)

Method Detail

getBeanNameback to summary
public String getBeanName()

Return the name of the bean, if available.

Annotations
@Nullable
getResourceDescriptionback to summary
public String getResourceDescription()

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

Annotations
@Nullable