Package org.apache.myfaces.context
Class AjaxExceptionHandlerImpl
- java.lang.Object
-
- jakarta.faces.context.ExceptionHandler
-
- org.apache.myfaces.context.AjaxExceptionHandlerImpl
-
- All Implemented Interfaces:
FacesListener
,SystemEventListener
,EventListener
public class AjaxExceptionHandlerImpl extends ExceptionHandler
Specialized Ajax Handler, according to Faces 2.0 rev A section 13.3.7.
-
-
Constructor Summary
Constructors Constructor Description AjaxExceptionHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptionQueuedEvent
getHandledExceptionQueuedEvent()
Iterable<ExceptionQueuedEvent>
getHandledExceptionQueuedEvents()
protected Throwable
getRethrownException(Throwable exception)
Throwable
getRootCause(Throwable throwable)
Iterable<ExceptionQueuedEvent>
getUnhandledExceptionQueuedEvents()
void
handle()
boolean
isListenerForSource(Object source)
void
processEvent(SystemEvent exceptionQueuedEvent)
protected boolean
shouldSkip(Throwable exception)
protected FacesException
wrap(Throwable exception)
-
-
-
Method Detail
-
getHandledExceptionQueuedEvent
public ExceptionQueuedEvent getHandledExceptionQueuedEvent()
- Specified by:
getHandledExceptionQueuedEvent
in classExceptionHandler
-
getHandledExceptionQueuedEvents
public Iterable<ExceptionQueuedEvent> getHandledExceptionQueuedEvents()
- Specified by:
getHandledExceptionQueuedEvents
in classExceptionHandler
-
getRootCause
public Throwable getRootCause(Throwable throwable)
- Specified by:
getRootCause
in classExceptionHandler
-
getUnhandledExceptionQueuedEvents
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents()
- Specified by:
getUnhandledExceptionQueuedEvents
in classExceptionHandler
-
handle
public void handle() throws FacesException
- Specified by:
handle
in classExceptionHandler
- Throws:
FacesException
-
isListenerForSource
public boolean isListenerForSource(Object source)
- Specified by:
isListenerForSource
in interfaceSystemEventListener
- Specified by:
isListenerForSource
in classExceptionHandler
-
processEvent
public void processEvent(SystemEvent exceptionQueuedEvent) throws AbortProcessingException
- Specified by:
processEvent
in interfaceSystemEventListener
- Specified by:
processEvent
in classExceptionHandler
- Throws:
AbortProcessingException
-
wrap
protected FacesException wrap(Throwable exception)
-
shouldSkip
protected boolean shouldSkip(Throwable exception)
-
-