Package org.apache.myfaces.context
Class ExceptionHandlerImpl
- java.lang.Object
-
- jakarta.faces.context.ExceptionHandler
-
- org.apache.myfaces.context.ExceptionHandlerImpl
-
- All Implemented Interfaces:
FacesListener,SystemEventListener,EventListener
public class ExceptionHandlerImpl extends ExceptionHandler
- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description ExceptionHandlerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptionQueuedEventgetHandledExceptionQueuedEvent()Iterable<ExceptionQueuedEvent>getHandledExceptionQueuedEvents()ThrowablegetRootCause(Throwable throwable)Iterable<ExceptionQueuedEvent>getUnhandledExceptionQueuedEvents()voidhandle()booleanisListenerForSource(Object source)voidprocessEvent(SystemEvent exceptionQueuedEvent)protected booleanshouldSkip(Throwable exception)protected FacesExceptionwrap(Throwable exception)
-
-
-
Method Detail
-
getHandledExceptionQueuedEvent
public ExceptionQueuedEvent getHandledExceptionQueuedEvent()
- Specified by:
getHandledExceptionQueuedEventin classExceptionHandler
-
getHandledExceptionQueuedEvents
public Iterable<ExceptionQueuedEvent> getHandledExceptionQueuedEvents()
- Specified by:
getHandledExceptionQueuedEventsin classExceptionHandler
-
getRootCause
public Throwable getRootCause(Throwable throwable)
- Specified by:
getRootCausein classExceptionHandler
-
getUnhandledExceptionQueuedEvents
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents()
- Specified by:
getUnhandledExceptionQueuedEventsin classExceptionHandler
-
handle
public void handle() throws FacesException- Specified by:
handlein classExceptionHandler- Throws:
FacesException
-
isListenerForSource
public boolean isListenerForSource(Object source)
- Specified by:
isListenerForSourcein interfaceSystemEventListener- Specified by:
isListenerForSourcein classExceptionHandler
-
processEvent
public void processEvent(SystemEvent exceptionQueuedEvent) throws AbortProcessingException
- Specified by:
processEventin interfaceSystemEventListener- Specified by:
processEventin classExceptionHandler- Throws:
AbortProcessingException
-
wrap
protected FacesException wrap(Throwable exception)
-
shouldSkip
protected boolean shouldSkip(Throwable exception)
-
-