Package io.micronaut.context.exceptions
Class DependencyInjectionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.context.exceptions.BeanContextException
io.micronaut.context.exceptions.BeanCreationException
io.micronaut.context.exceptions.DependencyInjectionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CircularDependencyException
Represents a runtime failure to perform dependency injection.
- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionDependencyInjectionException
(BeanResolutionContext resolutionContext, ArgumentConversionContext argumentConversionContext, String property) Builds an error message for attempted argument conversion on an argument.DependencyInjectionException
(BeanResolutionContext resolutionContext, Argument argument, String message) protected
DependencyInjectionException
(BeanResolutionContext resolutionContext, Argument argument, String message, boolean circular) DependencyInjectionException
(BeanResolutionContext resolutionContext, Argument argument, Throwable cause) DependencyInjectionException
(BeanResolutionContext resolutionContext, BeanDefinition declaringBean, String methodName, ArgumentConversionContext conversionContext, String property) Builds an error message for attempted argument conversion on a method.DependencyInjectionException
(BeanResolutionContext resolutionContext, BeanDefinition declaringType, String methodName, Argument argument, String message) protected
DependencyInjectionException
(BeanResolutionContext resolutionContext, BeanDefinition declaringType, String methodName, Argument argument, String message, boolean circular) DependencyInjectionException
(BeanResolutionContext resolutionContext, BeanDefinition declaringType, String methodName, Argument argument, Throwable cause) DependencyInjectionException
(BeanResolutionContext resolutionContext, BeanDefinition declaringBean, String fieldName, String message) protected
DependencyInjectionException
(BeanResolutionContext resolutionContext, BeanDefinition declaringType, String fieldName, String message, boolean circular) DependencyInjectionException
(BeanResolutionContext resolutionContext, BeanDefinition declaringBean, String fieldName, String message, Throwable cause) DependencyInjectionException
(BeanResolutionContext resolutionContext, BeanDefinition declaringBean, String fieldName, Throwable cause) DependencyInjectionException
(BeanResolutionContext resolutionContext, FieldInjectionPoint fieldInjectionPoint, String message) protected
DependencyInjectionException
(BeanResolutionContext resolutionContext, FieldInjectionPoint fieldInjectionPoint, String message, boolean circular) DependencyInjectionException
(BeanResolutionContext resolutionContext, FieldInjectionPoint fieldInjectionPoint, String message, Throwable cause) DependencyInjectionException
(BeanResolutionContext resolutionContext, FieldInjectionPoint fieldInjectionPoint, Throwable cause) DependencyInjectionException
(BeanResolutionContext resolutionContext, MethodInjectionPoint methodInjectionPoint, ArgumentConversionContext conversionContext, String property) Builds an error message for attempted argument conversion on a method.DependencyInjectionException
(BeanResolutionContext resolutionContext, MethodInjectionPoint methodInjectionPoint, Argument argument, String message) protected
DependencyInjectionException
(BeanResolutionContext resolutionContext, MethodInjectionPoint methodInjectionPoint, Argument argument, String message, boolean circular) DependencyInjectionException
(BeanResolutionContext resolutionContext, MethodInjectionPoint methodInjectionPoint, Argument argument, Throwable cause) DependencyInjectionException
(BeanResolutionContext resolutionContext, String message) DependencyInjectionException
(BeanResolutionContext resolutionContext, String message, Throwable cause) DependencyInjectionException
(BeanResolutionContext resolutionContext, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic DependencyInjectionException
missingProperty
(BeanResolutionContext resolutionContext, ArgumentConversionContext conversionContext, String property) Builds an error message for attempted argument conversion on a method.Methods inherited from class io.micronaut.context.exceptions.BeanCreationException
getRootBeanType
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DependencyInjectionException
- Parameters:
resolutionContext
- The resolution contextcause
- The throwable
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, Argument argument, Throwable cause) - Parameters:
resolutionContext
- The resolution contextargument
- The argumentcause
- The throwable
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, String message, Throwable cause) - Parameters:
resolutionContext
- The resolution contextmessage
- The messagecause
- The throwable
-
DependencyInjectionException
- Parameters:
resolutionContext
- The resolution contextmessage
- The message
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, Argument argument, String message) - Parameters:
resolutionContext
- The resolution contextargument
- The argumentmessage
- The message
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, FieldInjectionPoint fieldInjectionPoint, Throwable cause) - Parameters:
resolutionContext
- The resolution contextfieldInjectionPoint
- The field injection pointcause
- The throwable
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringBean, String fieldName, Throwable cause) - Parameters:
resolutionContext
- The resolution contextdeclaringBean
- The declaring typefieldName
- The field namecause
- The throwable
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, FieldInjectionPoint fieldInjectionPoint, String message) - Parameters:
resolutionContext
- The resolution contextfieldInjectionPoint
- The field injection pointmessage
- The message
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringBean, String fieldName, String message) - Parameters:
resolutionContext
- The resolution contextdeclaringBean
- The declaring beanfieldName
- The field namemessage
- The message
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, FieldInjectionPoint fieldInjectionPoint, String message, Throwable cause) - Parameters:
resolutionContext
- The resolution contextfieldInjectionPoint
- The field injection pointmessage
- The messagecause
- The throwable
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringBean, String fieldName, String message, Throwable cause) - Parameters:
resolutionContext
- The resolution contextdeclaringBean
- The declaring beanfieldName
- The field namemessage
- The messagecause
- The throwable
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, MethodInjectionPoint methodInjectionPoint, Argument argument, Throwable cause) - Parameters:
resolutionContext
- The resolution contextmethodInjectionPoint
- The method injection pointargument
- The argumentcause
- The throwable
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringType, String methodName, Argument argument, Throwable cause) - Parameters:
resolutionContext
- The resolution contextdeclaringType
- The declaring typemethodName
- The method nameargument
- The argumentcause
- The throwable
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, MethodInjectionPoint methodInjectionPoint, Argument argument, String message) - Parameters:
resolutionContext
- The resolution contextmethodInjectionPoint
- The method injection pointargument
- The argumentmessage
- The message
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringType, String methodName, Argument argument, String message) - Parameters:
resolutionContext
- The resolution contextdeclaringType
- The declaring typemethodName
- The method nameargument
- The argumentmessage
- The message
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, ArgumentConversionContext argumentConversionContext, String property) Builds an error message for attempted argument conversion on an argument.- Parameters:
resolutionContext
- The resolution contextargumentConversionContext
- The argument conversion contextproperty
- The property being resolved
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, MethodInjectionPoint methodInjectionPoint, ArgumentConversionContext conversionContext, String property) Builds an error message for attempted argument conversion on a method.- Parameters:
resolutionContext
- The resolution contextmethodInjectionPoint
- The method injection pointconversionContext
- The conversion contextproperty
- The property being resolved
-
DependencyInjectionException
public DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringBean, String methodName, ArgumentConversionContext conversionContext, String property) Builds an error message for attempted argument conversion on a method.- Parameters:
resolutionContext
- The resolution contextdeclaringBean
- The declaring beanmethodName
- The method nameconversionContext
- The conversion contextproperty
- The property being resolved
-
DependencyInjectionException
protected DependencyInjectionException(BeanResolutionContext resolutionContext, MethodInjectionPoint methodInjectionPoint, Argument argument, String message, boolean circular) - Parameters:
resolutionContext
- The resolution contextmethodInjectionPoint
- The method injection pointargument
- The argumentmessage
- The messagecircular
- Is the path circular
-
DependencyInjectionException
protected DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringType, String methodName, Argument argument, String message, boolean circular) - Parameters:
resolutionContext
- The resolution contextdeclaringType
- The method declaring typemethodName
- The method nameargument
- The argumentmessage
- The messagecircular
- Is the path circular
-
DependencyInjectionException
protected DependencyInjectionException(BeanResolutionContext resolutionContext, FieldInjectionPoint fieldInjectionPoint, String message, boolean circular) - Parameters:
resolutionContext
- The resolution contextfieldInjectionPoint
- The field injection pointmessage
- The messagecircular
- Is the path circular
-
DependencyInjectionException
protected DependencyInjectionException(BeanResolutionContext resolutionContext, BeanDefinition declaringType, String fieldName, String message, boolean circular) - Parameters:
resolutionContext
- The resolution contextdeclaringType
- The field declaringTypefieldName
- The field namemessage
- The messagecircular
- Is the path circular
-
DependencyInjectionException
protected DependencyInjectionException(BeanResolutionContext resolutionContext, Argument argument, String message, boolean circular) - Parameters:
resolutionContext
- The resolution contextargument
- The argumentmessage
- The messagecircular
- Is the path circular
-
-
Method Details
-
missingProperty
public static DependencyInjectionException missingProperty(BeanResolutionContext resolutionContext, ArgumentConversionContext conversionContext, String property) Builds an error message for attempted argument conversion on a method.- Parameters:
resolutionContext
- The resolution contextconversionContext
- The conversion contextproperty
- The property being resolved- Returns:
- new instance of
DependencyInjectionException
-