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:
java.io.Serializable
public class BeanInstantiationException extends BeanCreationException
Thrown when no such beans exists.- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BeanInstantiationException(BeanResolutionContext resolutionContext, java.lang.String message)
BeanInstantiationException(BeanResolutionContext resolutionContext, java.lang.Throwable cause)
BeanInstantiationException(BeanType<T> beanDefinition, java.lang.String message)
BeanInstantiationException(BeanType<T> beanDefinition, java.lang.Throwable cause)
BeanInstantiationException(java.lang.String message)
BeanInstantiationException(java.lang.String message, java.lang.Throwable cause)
-
Method Summary
-
Methods inherited from class io.micronaut.context.exceptions.BeanCreationException
getRootBeanType
-
-
-
-
Constructor Detail
-
BeanInstantiationException
public BeanInstantiationException(java.lang.String message, java.lang.Throwable cause)
- Parameters:
message
- The messagecause
- The throwable
-
BeanInstantiationException
public BeanInstantiationException(java.lang.String message)
- Parameters:
message
- The message
-
BeanInstantiationException
public BeanInstantiationException(BeanResolutionContext resolutionContext, java.lang.Throwable cause)
- Parameters:
resolutionContext
- The resolution contextcause
- The throwable
-
BeanInstantiationException
public BeanInstantiationException(BeanResolutionContext resolutionContext, java.lang.String message)
- Parameters:
resolutionContext
- The resolution contextmessage
- The message
-
BeanInstantiationException
public BeanInstantiationException(BeanType<T> beanDefinition, java.lang.Throwable cause)
- Type Parameters:
T
- The bean type- Parameters:
beanDefinition
- The bean definitioncause
- The throwable
-
BeanInstantiationException
public BeanInstantiationException(BeanType<T> beanDefinition, java.lang.String message)
- Type Parameters:
T
- The bean type- Parameters:
beanDefinition
- The bean definitionmessage
- The message
-
-