java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.smallrye.beanbag.BeanInstantiationException
io.smallrye.beanbag.NoSuchBeanException
- All Implemented Interfaces:
Serializable
An exception which indicates that a required bean is not present or resolvable in the scope.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newNoSuchBeanExceptioninstance.Constructs a newNoSuchBeanExceptioninstance with an initial message.NoSuchBeanException(String msg, Throwable cause) Constructs a newNoSuchBeanExceptioninstance with an initial message and cause.NoSuchBeanException(Throwable cause) Constructs a newNoSuchBeanExceptioninstance 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
-
NoSuchBeanException
public NoSuchBeanException()Constructs a newNoSuchBeanExceptioninstance. The message is left blank (null), and no cause is specified. -
NoSuchBeanException
Constructs a newNoSuchBeanExceptioninstance with an initial message. No cause is specified.- Parameters:
msg- the message
-
NoSuchBeanException
Constructs a newNoSuchBeanExceptioninstance with an initial cause. If a non-nullcause is specified, its message is used to initialize the message of thisNoSuchBeanException; otherwise the message is left blank (null).- Parameters:
cause- the cause
-
NoSuchBeanException
Constructs a newNoSuchBeanExceptioninstance with an initial message and cause.- Parameters:
msg- the messagecause- the cause
-