Class NoSuchBeanException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.bobocode.bring.core.exception.NoSuchBeanException
- All Implemented Interfaces:
Serializable
Exception thrown to indicate that a requested bean does not exist within a Bring Dependency Injection framework.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNoSuchBeanException
(Class<T> clazz) Constructs a new NoSuchBeanException with a message indicating the absence of a bean of the specified type.NoSuchBeanException
(String message) Constructs a new NoSuchBeanException with a custom detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
MESSAGE
- See Also:
-
-
Constructor Details
-
NoSuchBeanException
Constructs a new NoSuchBeanException with a message indicating the absence of a bean of the specified type.- Type Parameters:
T
- The class type- Parameters:
clazz
- The class type for which the bean is not found
-
NoSuchBeanException
Constructs a new NoSuchBeanException with a custom detail message.- Parameters:
message
- The custom message explaining the exception
-