Package io.micronaut.context.exceptions
Class BeanInstantiationException
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.BeanInstantiationException
- All Implemented Interfaces:
Serializable
Thrown when no such beans exists.
- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
-
Constructor Summary
ConstructorDescriptionBeanInstantiationException
(BeanResolutionContext resolutionContext, String message) BeanInstantiationException
(BeanResolutionContext resolutionContext, Throwable cause) BeanInstantiationException
(BeanType<T> beanDefinition, String message) BeanInstantiationException
(BeanType<T> beanDefinition, Throwable cause) BeanInstantiationException
(String message) BeanInstantiationException
(String message, Throwable cause) -
Method Summary
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
-
BeanInstantiationException
- Parameters:
message
- The messagecause
- The throwable
-
BeanInstantiationException
- Parameters:
message
- The message
-
BeanInstantiationException
- Parameters:
resolutionContext
- The resolution contextcause
- The throwable
-
BeanInstantiationException
- Parameters:
resolutionContext
- The resolution contextmessage
- The message
-
BeanInstantiationException
- Type Parameters:
T
- The bean type- Parameters:
beanDefinition
- The bean definitioncause
- The throwable
-
BeanInstantiationException
- Type Parameters:
T
- The bean type- Parameters:
beanDefinition
- The bean definitionmessage
- The message
-