java.lang.Object | ||||||
↳ | java.lang.Throwable | |||||
↳ | java.lang.Exception | |||||
↳ | java.lang.RuntimeException | |||||
↳ | org.springframework.core.NestedRuntimeException | |||||
↳ | org.springframework.beans.BeansException | |||||
↳ | org.springframework.beans.factory.BeanNotOfRequiredTypeException |
Known Direct Subclasses |
Thrown when a bean doesn't match the expected type.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new BeanNotOfRequiredTypeException.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the actual type of the instance found.
| |||||||||||
Return the name of the instance that was of the wrong type.
| |||||||||||
Return the expected type for the bean.
|
[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 BeanNotOfRequiredTypeException.
beanName | the name of the bean requested |
---|---|
requiredType | the required type |
actualType | the actual type returned, which did not match the expected type |
Return the name of the instance that was of the wrong type.