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
An exception indicating that a failure occurred specifically with injection.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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 Details
-
InjectionException
public InjectionException()Constructs a newInjectionExceptioninstance. The message is left blank (null), and no cause is specified. -
InjectionException
Constructs a newInjectionExceptioninstance with an initial message. No cause is specified.- Parameters:
msg- the message
-
InjectionException
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
-
InjectionException
Constructs a newInjectionExceptioninstance with an initial message and cause.- Parameters:
msg- the messagecause- the cause
-