Class UnsatisfiedDependencyException
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
org.springframework.beans.factory.UnsatisfiedDependencyException
- All Implemented Interfaces:
- Serializable
Exception thrown when a bean depends on other beans or simple properties
 that were not specified in the bean factory definition, although
 dependency checking was enabled.
- Since:
- 03.09.2003
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionUnsatisfiedDependencyException(@Nullable String resourceDescription, @Nullable String beanName, @Nullable InjectionPoint injectionPoint, @Nullable String msg) Create a new UnsatisfiedDependencyException.UnsatisfiedDependencyException(@Nullable String resourceDescription, @Nullable String beanName, @Nullable InjectionPoint injectionPoint, BeansException ex) Create a new UnsatisfiedDependencyException.UnsatisfiedDependencyException(@Nullable String resourceDescription, @Nullable String beanName, String propertyName, @Nullable String msg) Create a new UnsatisfiedDependencyException.UnsatisfiedDependencyException(@Nullable String resourceDescription, @Nullable String beanName, String propertyName, BeansException ex) Create a new UnsatisfiedDependencyException.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the injection point (field or method/constructor parameter), if known.Methods inherited from class org.springframework.beans.factory.BeanCreationExceptionaddRelatedCause, contains, getBeanName, getRelatedCauses, getResourceDescription, printStackTrace, printStackTrace, toStringMethods inherited from class org.springframework.core.NestedRuntimeExceptiongetMostSpecificCause, getRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace
- 
Constructor Details- 
UnsatisfiedDependencyExceptionpublic UnsatisfiedDependencyException(@Nullable String resourceDescription, @Nullable String beanName, String propertyName, @Nullable String msg) Create a new UnsatisfiedDependencyException.- Parameters:
- resourceDescription- description of the resource that the bean definition came from
- beanName- the name of the bean requested
- propertyName- the name of the bean property that couldn't be satisfied
- msg- the detail message
 
- 
UnsatisfiedDependencyExceptionpublic UnsatisfiedDependencyException(@Nullable String resourceDescription, @Nullable String beanName, String propertyName, BeansException ex) Create a new UnsatisfiedDependencyException.- Parameters:
- resourceDescription- description of the resource that the bean definition came from
- beanName- the name of the bean requested
- propertyName- the name of the bean property that couldn't be satisfied
- ex- the bean creation exception that indicated the unsatisfied dependency
 
- 
UnsatisfiedDependencyExceptionpublic UnsatisfiedDependencyException(@Nullable String resourceDescription, @Nullable String beanName, @Nullable InjectionPoint injectionPoint, @Nullable String msg) Create a new UnsatisfiedDependencyException.- Parameters:
- resourceDescription- description of the resource that the bean definition came from
- beanName- the name of the bean requested
- injectionPoint- the injection point (field or method/constructor parameter)
- msg- the detail message
- Since:
- 4.3
 
- 
UnsatisfiedDependencyExceptionpublic UnsatisfiedDependencyException(@Nullable String resourceDescription, @Nullable String beanName, @Nullable InjectionPoint injectionPoint, BeansException ex) Create a new UnsatisfiedDependencyException.- Parameters:
- resourceDescription- description of the resource that the bean definition came from
- beanName- the name of the bean requested
- injectionPoint- the injection point (field or method/constructor parameter)
- ex- the bean creation exception that indicated the unsatisfied dependency
- Since:
- 4.3
 
 
- 
- 
Method Details- 
getInjectionPointReturn the injection point (field or method/constructor parameter), if known.- Since:
- 4.3
 
 
-