Class NoUniqueBeanException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.bobocode.bring.core.exception.NoUniqueBeanException
- All Implemented Interfaces:
Serializable
Exception thrown to indicate that no unique bean is available or multiple beans match the expected type
within a Bring Dependency Injection framework.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNoUniqueBeanException
(Class<T> clazz) Constructs a new NoUniqueBeanException with a message indicating that no unique bean of the specified type is available.NoUniqueBeanException
(Class<T> clazz, List<String> implementations) Constructs a new NoUniqueBeanException with a message indicating that no qualifying bean of a certain type is available.NoUniqueBeanException
(String beanName) Constructs a new NoUniqueBeanException with a message indicating that a bean with the given name already exists. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoUniqueBeanException
Constructs a new NoUniqueBeanException with a message indicating that no unique bean of the specified type is available.- Type Parameters:
T
- The class type- Parameters:
clazz
- The class type for which no unique bean is found
-
NoUniqueBeanException
Constructs a new NoUniqueBeanException with a message indicating that a bean with the given name already exists.- Parameters:
beanName
- The name of the bean that already exists
-
NoUniqueBeanException
Constructs a new NoUniqueBeanException with a message indicating that no qualifying bean of a certain type is available.- Type Parameters:
T
- The class type- Parameters:
clazz
- The class type for which no qualifying bean is foundimplementations
- The list of implementations found for the specified type
-