Class ExceptionQueuedEvent
- java.lang.Object
-
- java.util.EventObject
-
- jakarta.faces.event.SystemEvent
-
- jakarta.faces.event.ExceptionQueuedEvent
-
- All Implemented Interfaces:
Serializable
public class ExceptionQueuedEvent extends SystemEvent
The system event facility will create an instance of this class whenever
Application.publishEvent(jakarta.faces.context.FacesContext, java.lang.Class<? extends jakarta.faces.event.SystemEvent>, java.lang.Object)
is called withExceptionQueuedEvent.class
assystemEventClass
argument. In this case, an instance ofExceptionQueuedEventContext
must be passed as thesource
argument. The specification forpublishEvent()
, requires the instantiation of thesystemEventClass
argument, passing thesource
argument to the constructor.- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ExceptionQueuedEvent(FacesContext facesContext, ExceptionQueuedEventContext eventContext)
Instantiate a newExceptionQueuedEvent
that indicates the argumentExceptionQueuedEventContext
occurred.ExceptionQueuedEvent(ExceptionQueuedEventContext eventContext)
Instantiate a newExceptionQueuedEvent
that indicates the argumentExceptionQueuedEventContext
occurred.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptionQueuedEventContext
getContext()
Return theExceptionQueuedEventContext
for this event instance.-
Methods inherited from class jakarta.faces.event.SystemEvent
getFacesContext, isAppropriateListener, processListener
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
ExceptionQueuedEvent
public ExceptionQueuedEvent(ExceptionQueuedEventContext eventContext)
Instantiate a new
ExceptionQueuedEvent
that indicates the argumentExceptionQueuedEventContext
occurred.- Parameters:
eventContext
- theExceptionQueuedEventContext
that contextualizes thisExceptionQueuedEvent
.- Since:
- 2.0
-
ExceptionQueuedEvent
public ExceptionQueuedEvent(FacesContext facesContext, ExceptionQueuedEventContext eventContext)
Instantiate a new
ExceptionQueuedEvent
that indicates the argumentExceptionQueuedEventContext
occurred.- Parameters:
facesContext
- the Faces context.eventContext
- theExceptionQueuedEventContext
that contextualizes thisExceptionQueuedEvent
.- Since:
- 2.0
-
-
Method Detail
-
getContext
public ExceptionQueuedEventContext getContext()
Return the
ExceptionQueuedEventContext
for this event instance.- Returns:
- the context
- Since:
- 2.0
-
-