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 |
![]() |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
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.