Package io.micronaut.context.exceptions
Class NoSuchBeanException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.context.exceptions.BeanContextException
io.micronaut.context.exceptions.NoSuchBeanException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NonUniqueBeanException
Thrown when no such beans exists.
- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionNoSuchBeanException
(@NonNull Argument<?> beanType) NoSuchBeanException
(@NonNull Argument<T> beanType, @Nullable Qualifier<T> qualifier) NoSuchBeanException
(@NonNull Argument<T> beanType, @Nullable Qualifier<T> qualifier, String message) NoSuchBeanException
(@NonNull Class<?> beanType) NoSuchBeanException
(@NonNull Class<T> beanType, @Nullable Qualifier<T> qualifier) protected
NoSuchBeanException
(String message) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoSuchBeanException
- Parameters:
beanType
- The bean type
-
NoSuchBeanException
- Parameters:
beanType
- The bean type
-
NoSuchBeanException
public NoSuchBeanException(@NonNull @NonNull Class<T> beanType, @Nullable @Nullable Qualifier<T> qualifier) - Type Parameters:
T
- The type- Parameters:
beanType
- The bean typequalifier
- The qualifier
-
NoSuchBeanException
public NoSuchBeanException(@NonNull @NonNull Argument<T> beanType, @Nullable @Nullable Qualifier<T> qualifier) - Type Parameters:
T
- The type- Parameters:
beanType
- The bean typequalifier
- The qualifier
-
NoSuchBeanException
public NoSuchBeanException(@NonNull @NonNull Argument<T> beanType, @Nullable @Nullable Qualifier<T> qualifier, String message) - Type Parameters:
T
- The type- Parameters:
beanType
- The bean typequalifier
- The qualifiermessage
- The message- Since:
- 4.0.0
-
NoSuchBeanException
- Parameters:
message
- The message
-