Class NoSuchBeanException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.bobocode.bring.core.exception.NoSuchBeanException
All Implemented Interfaces:
Serializable

public class NoSuchBeanException extends RuntimeException
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 Details

  • Constructor Details

    • NoSuchBeanException

      public NoSuchBeanException(Class<T> clazz)
      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

      public NoSuchBeanException(String message)
      Constructs a new NoSuchBeanException with a custom detail message.
      Parameters:
      message - The custom message explaining the exception