Package io.smallrye.beanbag
Class BeanInstantiationException
- 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
public class BeanInstantiationException extends RuntimeException
An exception indicating that a required bean failed to be instantiated.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BeanInstantiationException()Constructs a newBeanInstantiationExceptioninstance.BeanInstantiationException(String msg)Constructs a newBeanInstantiationExceptioninstance with an initial message.BeanInstantiationException(String msg, Throwable cause)Constructs a newBeanInstantiationExceptioninstance with an initial message and cause.BeanInstantiationException(Throwable 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 Detail
-
BeanInstantiationException
public BeanInstantiationException()
Constructs a newBeanInstantiationExceptioninstance. The message is left blank (null), and no cause is specified.
-
BeanInstantiationException
public BeanInstantiationException(String msg)
Constructs a newBeanInstantiationExceptioninstance with an initial message. No cause is specified.- Parameters:
msg- the message
-
BeanInstantiationException
public BeanInstantiationException(Throwable cause)
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
-
-