java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.smallrye.beanbag.BeanInstantiationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InjectionException,NoSuchBeanException
An exception indicating that a required bean failed to be instantiated.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newBeanInstantiationExceptioninstance.Constructs a newBeanInstantiationExceptioninstance with an initial message.BeanInstantiationException(String msg, Throwable cause) Constructs a newBeanInstantiationExceptioninstance with an initial message and cause.Constructs a newBeanInstantiationExceptioninstance with an initial cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BeanInstantiationException
public BeanInstantiationException()Constructs a newBeanInstantiationExceptioninstance. The message is left blank (null), and no cause is specified. -
BeanInstantiationException
Constructs a newBeanInstantiationExceptioninstance with an initial message. No cause is specified.- Parameters:
msg- the message
-
BeanInstantiationException
Constructs a newBeanInstantiationExceptioninstance with an initial cause. If a non-nullcause is specified, its message is used to initialize the message of thisBeanInstantiationException; otherwise the message is left blank (null).- Parameters:
cause- the cause
-
BeanInstantiationException
Constructs a newBeanInstantiationExceptioninstance with an initial message and cause.- Parameters:
msg- the messagecause- the cause
-