Package io.smallrye.beanbag
Class InjectionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.smallrye.beanbag.BeanInstantiationException
-
- io.smallrye.beanbag.InjectionException
-
- All Implemented Interfaces:
Serializable
public class InjectionException extends BeanInstantiationException
An exception indicating that a failure occurred specifically with injection.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InjectionException()Constructs a newInjectionExceptioninstance.InjectionException(String msg)Constructs a newInjectionExceptioninstance with an initial message.InjectionException(String msg, Throwable cause)Constructs a newInjectionExceptioninstance with an initial message and cause.InjectionException(Throwable cause)Constructs a newInjectionExceptioninstance 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
-
InjectionException
public InjectionException()
Constructs a newInjectionExceptioninstance. The message is left blank (null), and no cause is specified.
-
InjectionException
public InjectionException(String msg)
Constructs a newInjectionExceptioninstance with an initial message. No cause is specified.- Parameters:
msg- the message
-
InjectionException
public InjectionException(Throwable cause)
Constructs a newInjectionExceptioninstance with an initial cause. If a non-nullcause is specified, its message is used to initialize the message of thisInjectionException; otherwise the message is left blank (null).- Parameters:
cause- the cause
-
-