| 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.BeanCreationException | ||||||
Known Direct Subclasses
|
Exception thrown when a BeanFactory encounters an error when attempting to create a bean from a bean definition.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a new BeanCreationException.
| |||||||||||
Create a new BeanCreationException.
| |||||||||||
Create a new BeanCreationException.
| |||||||||||
Create a new BeanCreationException.
| |||||||||||
Create a new BeanCreationException.
| |||||||||||
Create a new BeanCreationException.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Add a related cause to this bean creation exception,
not being a direct cause of the failure but having occured
earlier in the creation of the same bean instance.
| |||||||||||
Check whether this exception contains an exception of the given type:
either it is of the given class itself or it contains a nested cause
of the given type.
| |||||||||||
Return the name of the bean requested, if any.
| |||||||||||
Return the related causes, if any.
| |||||||||||
Return the description of the resource that the bean
definition came from, if any.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.beans.BeansException
| |||||||||||
From class
org.springframework.core.NestedRuntimeException
| |||||||||||
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
| |||||||||||
Create a new BeanCreationException.
| msg | the detail message |
|---|
Create a new BeanCreationException.
| msg | the detail message |
|---|---|
| cause | the root cause |
Create a new BeanCreationException.
| beanName | the name of the bean requested |
|---|---|
| msg | the detail message |
Create a new BeanCreationException.
| beanName | the name of the bean requested |
|---|---|
| msg | the detail message |
| cause | the root cause |
Create a new BeanCreationException.
| resourceDescription | description of the resource that the bean definition came from |
|---|---|
| beanName | the name of the bean requested |
| msg | the detail message |
Create a new BeanCreationException.
| resourceDescription | description of the resource that the bean definition came from |
|---|---|
| beanName | the name of the bean requested |
| msg | the detail message |
| cause | the root cause |
Add a related cause to this bean creation exception, not being a direct cause of the failure but having occured earlier in the creation of the same bean instance.
| ex | the related cause to add |
|---|
Check whether this exception contains an exception of the given type: either it is of the given class itself or it contains a nested cause of the given type.
| exClass | the exception type to look for |
|---|
Return the related causes, if any.
null if none
Return the description of the resource that the bean definition came from, if any.