Package jakarta.enterprise.inject
Class IllegalProductException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.enterprise.inject.InjectionException
jakarta.enterprise.inject.IllegalProductException
- All Implemented Interfaces:
Serializable
Indicates that a producer method returned a null value or a producer field contained a null value, and the scope of the
producer method or field was not Dependent
.
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates the exception with no detail message or cause.IllegalProductException
(String message) Creates the exception with given detail message.IllegalProductException
(String message, Throwable cause) Creates the exception with given detail message and cause.IllegalProductException
(Throwable cause) Creates the exception with given 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
-
IllegalProductException
public IllegalProductException()Creates the exception with no detail message or cause. -
IllegalProductException
Creates the exception with given detail message and cause.- Parameters:
message
- the detail messagecause
- the cause
-
IllegalProductException
Creates the exception with given detail message.- Parameters:
message
- the detail message
-
IllegalProductException
Creates the exception with given cause.- Parameters:
cause
- the cause
-