Class 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
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 Details
-
Method Details
-
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:
- See Also:
ExceptionHandler.getHandledExceptionQueuedEvent()
-
handle
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
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
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
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()
-