Class AjaxExceptionHandlerImpl
- java.lang.Object
-
- jakarta.faces.context.ExceptionHandler
-
- jakarta.faces.context.ExceptionHandlerWrapper
-
- com.sun.faces.context.AjaxExceptionHandlerImpl
-
- All Implemented Interfaces:
FacesListener
,SystemEventListener
,FacesWrapper<ExceptionHandler>
,EventListener
public class AjaxExceptionHandlerImpl extends ExceptionHandlerWrapper
A specialized implementation of
ExceptionHandler
for Faces that handles exceptions by writing error information to the partial response.
-
-
Constructor Summary
Constructors Constructor Description AjaxExceptionHandlerImpl(ExceptionHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptionQueuedEvent
getHandledExceptionQueuedEvent()
The default behavior of this method is to callExceptionHandler.getHandledExceptionQueuedEvent()
on the wrappedExceptionHandler
object.Iterable<ExceptionQueuedEvent>
getHandledExceptionQueuedEvents()
The default behavior of this method is to callExceptionHandler.getHandledExceptionQueuedEvents()
on the wrappedExceptionHandler
object.Iterable<ExceptionQueuedEvent>
getUnhandledExceptionQueuedEvents()
The default behavior of this method is to callExceptionHandler.getUnhandledExceptionQueuedEvents()
on the wrappedExceptionHandler
object.void
handle()
The default behavior of this method is to callExceptionHandler.handle()
on the wrappedExceptionHandler
object.void
processEvent(SystemEvent event)
The default behavior of this method is to callExceptionHandler.processEvent(jakarta.faces.event.SystemEvent)
on the wrappedExceptionHandler
object.-
Methods inherited from class jakarta.faces.context.ExceptionHandlerWrapper
getRootCause, getWrapped, isListenerForSource
-
-
-
-
Constructor Detail
-
AjaxExceptionHandlerImpl
public AjaxExceptionHandlerImpl(ExceptionHandler handler)
-
-
Method Detail
-
getHandledExceptionQueuedEvent
public ExceptionQueuedEvent getHandledExceptionQueuedEvent()
Description copied from class:ExceptionHandlerWrapper
The default behavior of this method is to call
ExceptionHandler.getHandledExceptionQueuedEvent()
on the wrappedExceptionHandler
object.- Overrides:
getHandledExceptionQueuedEvent
in classExceptionHandlerWrapper
- Returns:
- instance of
ExceptionQueuedEvent
. - See Also:
ExceptionHandler.getHandledExceptionQueuedEvent()
-
handle
public void handle() throws FacesException
Description copied from class:ExceptionHandlerWrapper
The default behavior of this method is to call
ExceptionHandler.handle()
on the wrappedExceptionHandler
object.- Overrides:
handle
in classExceptionHandlerWrapper
- Throws:
FacesException
- if and only if a problem occurs while performing the algorithm to handle theException
, not as a means of conveying a handledException
itself.- See Also:
ExceptionHandlerWrapper.handle()
-
processEvent
public void processEvent(SystemEvent event) throws AbortProcessingException
Description copied from class:ExceptionHandlerWrapper
The default behavior of this method is to call
ExceptionHandler.processEvent(jakarta.faces.event.SystemEvent)
on the wrappedExceptionHandler
object.- Specified by:
processEvent
in interfaceSystemEventListener
- Overrides:
processEvent
in classExceptionHandlerWrapper
- Parameters:
event
- theSystemEvent
instance that is being processed.- Throws:
AbortProcessingException
- if lifecycle processing should cease for this request.- See Also:
ExceptionHandlerWrapper.processEvent(jakarta.faces.event.SystemEvent)
-
getUnhandledExceptionQueuedEvents
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents()
Description copied from class:ExceptionHandlerWrapper
The default behavior of this method is to call
ExceptionHandler.getUnhandledExceptionQueuedEvents()
on the wrappedExceptionHandler
object.- Overrides:
getUnhandledExceptionQueuedEvents
in classExceptionHandlerWrapper
- Returns:
- the unhandled set of
ExceptionQueuedEvent
s. - See Also:
ExceptionHandlerWrapper.getUnhandledExceptionQueuedEvents()
-
getHandledExceptionQueuedEvents
public Iterable<ExceptionQueuedEvent> getHandledExceptionQueuedEvents()
Description copied from class:ExceptionHandlerWrapper
The default behavior of this method is to call
ExceptionHandler.getHandledExceptionQueuedEvents()
on the wrappedExceptionHandler
object.- Overrides:
getHandledExceptionQueuedEvents
in classExceptionHandlerWrapper
- Returns:
- an
Iterable
over allExceptionQueuedEvent
s. - See Also:
ExceptionHandlerWrapper.getHandledExceptionQueuedEvents()
-
-