Class BeanInstantiationException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InjectionException, NoSuchBeanException

public class BeanInstantiationException extends RuntimeException
An exception indicating that a required bean failed to be instantiated.
See Also:
  • Constructor Details

    • BeanInstantiationException

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

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

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

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