Class NoSuchBeanException

All Implemented Interfaces:
Serializable

public final class NoSuchBeanException extends BeanInstantiationException
An exception which indicates that a required bean is not present or resolvable in the scope.
See Also:
  • Constructor Details

    • NoSuchBeanException

      public NoSuchBeanException()
      Constructs a new NoSuchBeanException instance. The message is left blank (null), and no cause is specified.
    • NoSuchBeanException

      public NoSuchBeanException(String msg)
      Constructs a new NoSuchBeanException instance with an initial message. No cause is specified.
      Parameters:
      msg - the message
    • NoSuchBeanException

      public NoSuchBeanException(Throwable cause)
      Constructs a new NoSuchBeanException instance with an initial cause. If a non-null cause is specified, its message is used to initialize the message of this NoSuchBeanException; otherwise the message is left blank (null).
      Parameters:
      cause - the cause
    • NoSuchBeanException

      public NoSuchBeanException(String msg, Throwable cause)
      Constructs a new NoSuchBeanException instance with an initial message and cause.
      Parameters:
      msg - the message
      cause - the cause