| java.lang.Object | ||||||
| ↳ | java.lang.Throwable | |||||
| ↳ | java.lang.Exception | |||||
| ↳ | java.lang.RuntimeException | |||||
| ↳ | org.springframework.core.NestedRuntimeException | |||||
| ↳ | org.springframework.beans.BeansException | |||||
| ↳ | org.springframework.beans.factory.NoSuchBeanDefinitionException | |||||
Exception thrown when a BeanFactory is asked for a bean instance name for which it cannot find a definition.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a new NoSuchBeanDefinitionException.
| |||||||||||
Create a new NoSuchBeanDefinitionException.
| |||||||||||
Create a new NoSuchBeanDefinitionException.
| |||||||||||
Create a new NoSuchBeanDefinitionException.
| |||||||||||
Create a new NoSuchBeanDefinitionException.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return the name of the missing bean,
if it was a lookup by name that failed.
| |||||||||||
Return the required type of bean,
if it was a lookup by type that failed.
| |||||||||||
|
[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 NoSuchBeanDefinitionException.
| name | the name of the missing bean |
|---|
Create a new NoSuchBeanDefinitionException.
| name | the name of the missing bean |
|---|---|
| message | detailed message describing the problem |
Create a new NoSuchBeanDefinitionException.
| type | required type of bean |
|---|
Create a new NoSuchBeanDefinitionException.
| type | required type of bean |
|---|---|
| message | detailed message describing the problem |
Create a new NoSuchBeanDefinitionException.
| type | required type of bean |
|---|---|
| dependencyDescription | a description of the originating dependency |
| message | detailed message describing the problem |
Return the name of the missing bean, if it was a lookup by name that failed.
Return the required type of bean, if it was a lookup by type that failed.