Package jakarta.enterprise.event
Class ObserverException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.enterprise.event.ObserverException
- All Implemented Interfaces:
Serializable
Indicates that a checked exception was thrown by an observer method during event notification.
- Author:
- Pete Muir, Gavin King
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates the exception with no detail message or cause.ObserverException
(String message) Creates the exception with given detail message.ObserverException
(String message, Throwable cause) Creates the exception with given detail message and cause.ObserverException
(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
-
ObserverException
public ObserverException()Creates the exception with no detail message or cause. -
ObserverException
Creates the exception with given detail message.- Parameters:
message
- the detail message
-
ObserverException
Creates the exception with given cause.- Parameters:
cause
- the cause
-
ObserverException
Creates the exception with given detail message and cause.- Parameters:
message
- the detail messagecause
- the cause
-