Package io.micronaut.context.exceptions
Class BeanCreationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.context.exceptions.BeanContextException
io.micronaut.context.exceptions.BeanCreationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BeanInstantiationException
,DependencyInjectionException
A base class for exceptions that occurred during bean creation.
- Since:
- 2.0.2
- Author:
- James Kleeh
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
BeanCreationException
(BeanResolutionContext resolutionContext, String message) protected
BeanCreationException
(BeanResolutionContext resolutionContext, String message, Throwable cause) protected
BeanCreationException
(BeanType<T> beanDefinition, String message) protected
BeanCreationException
(BeanType<T> beanDefinition, String message, Throwable cause) protected
BeanCreationException
(String message) protected
BeanCreationException
(String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BeanCreationException
- Parameters:
message
- The messagecause
- The throwable
-
BeanCreationException
- Parameters:
message
- The message
-
BeanCreationException
- Parameters:
resolutionContext
- The resolution contextmessage
- The message
-
BeanCreationException
protected BeanCreationException(BeanResolutionContext resolutionContext, String message, Throwable cause) - Parameters:
resolutionContext
- The resolution contextmessage
- The messagecause
- The throwable
-
BeanCreationException
- Type Parameters:
T
- The bean type- Parameters:
beanDefinition
- The bean definitionmessage
- The messagecause
- The throwable
-
BeanCreationException
- Type Parameters:
T
- The bean type- Parameters:
beanDefinition
- The bean definitionmessage
- The message
-
-
Method Details
-
getRootBeanType
- Returns:
- The reference to the root bean.
-