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.classassystemEventClassargument. In this case, an instance ofExceptionQueuedEventContextmust be passed as thesourceargument. The specification forpublishEvent(), requires the instantiation of thesystemEventClassargument, passing thesourceargument 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 newExceptionQueuedEventthat indicates the argumentExceptionQueuedEventContextoccurred.ExceptionQueuedEvent(ExceptionQueuedEventContext eventContext)Instantiate a newExceptionQueuedEventthat indicates the argumentExceptionQueuedEventContextoccurred.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptionQueuedEventContextgetContext()Return theExceptionQueuedEventContextfor 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
ExceptionQueuedEventthat indicates the argumentExceptionQueuedEventContextoccurred.- Parameters:
eventContext- theExceptionQueuedEventContextthat contextualizes thisExceptionQueuedEvent.- Since:
- 2.0
-
ExceptionQueuedEvent
public ExceptionQueuedEvent(FacesContext facesContext, ExceptionQueuedEventContext eventContext)
Instantiate a new
ExceptionQueuedEventthat indicates the argumentExceptionQueuedEventContextoccurred.- Parameters:
facesContext- the Faces context.eventContext- theExceptionQueuedEventContextthat contextualizes thisExceptionQueuedEvent.- Since:
- 2.0
-
-
Method Detail
-
getContext
public ExceptionQueuedEventContext getContext()
Return the
ExceptionQueuedEventContextfor this event instance.- Returns:
- the context
- Since:
- 2.0
-
-