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:
java.io.Serializable
public class IllegalProductException extends InjectionException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IllegalProductException()
Creates the exception with no detail message or cause.IllegalProductException(java.lang.String message)
Creates the exception with given detail message.IllegalProductException(java.lang.String message, java.lang.Throwable cause)
Creates the exception with given detail message and cause.IllegalProductException(java.lang.Throwable cause)
Creates the exception with given cause.
-
-
-
Constructor Detail
-
IllegalProductException
public IllegalProductException()
Creates the exception with no detail message or cause.
-
IllegalProductException
public IllegalProductException(java.lang.String message, java.lang.Throwable cause)
Creates the exception with given detail message and cause.- Parameters:
message
- the detail messagecause
- the cause
-
IllegalProductException
public IllegalProductException(java.lang.String message)
Creates the exception with given detail message.- Parameters:
message
- the detail message
-
IllegalProductException
public IllegalProductException(java.lang.Throwable cause)
Creates the exception with given cause.- Parameters:
cause
- the cause
-
-