Package org.apache.myfaces.context
Class MyFacesExceptionHandlerWrapperImpl
- java.lang.Object
-
- jakarta.faces.context.ExceptionHandler
-
- jakarta.faces.context.ExceptionHandlerWrapper
-
- org.apache.myfaces.context.MyFacesExceptionHandlerWrapperImpl
-
- All Implemented Interfaces:
FacesListener
,SystemEventListener
,FacesWrapper<ExceptionHandler>
,EventListener
public class MyFacesExceptionHandlerWrapperImpl extends ExceptionHandlerWrapper
Extended MyFaces-specific ExceptionHandler implementation.- Author:
- Leonardo Uribe
-
-
Constructor Summary
Constructors Constructor Description MyFacesExceptionHandlerWrapperImpl(ExceptionHandler delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptionQueuedEvent
getHandledExceptionQueuedEvent()
Iterable<ExceptionQueuedEvent>
getHandledExceptionQueuedEvents()
protected Throwable
getRethrownException(Throwable exception)
Iterable<ExceptionQueuedEvent>
getUnhandledExceptionQueuedEvents()
ExceptionHandler
getWrapped()
void
handle()
protected void
init()
protected void
init(FacesContext facesContext)
protected void
init(SystemEvent exceptionQueuedEvent)
protected boolean
isErrorPagePresent()
protected boolean
isUseMyFacesErrorHandling()
void
processEvent(SystemEvent exceptionQueuedEvent)
protected boolean
shouldSkip(Throwable exception)
protected FacesException
wrap(Throwable exception)
-
Methods inherited from class jakarta.faces.context.ExceptionHandlerWrapper
getRootCause, isListenerForSource
-
-
-
-
Constructor Detail
-
MyFacesExceptionHandlerWrapperImpl
public MyFacesExceptionHandlerWrapperImpl(ExceptionHandler delegate)
-
-
Method Detail
-
init
protected void init()
-
init
protected void init(FacesContext facesContext)
-
init
protected void init(SystemEvent exceptionQueuedEvent)
-
isUseMyFacesErrorHandling
protected boolean isUseMyFacesErrorHandling()
-
isErrorPagePresent
protected boolean isErrorPagePresent()
-
getHandledExceptionQueuedEvent
public ExceptionQueuedEvent getHandledExceptionQueuedEvent()
- Overrides:
getHandledExceptionQueuedEvent
in classExceptionHandlerWrapper
-
getHandledExceptionQueuedEvents
public Iterable<ExceptionQueuedEvent> getHandledExceptionQueuedEvents()
- Overrides:
getHandledExceptionQueuedEvents
in classExceptionHandlerWrapper
-
getUnhandledExceptionQueuedEvents
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents()
- Overrides:
getUnhandledExceptionQueuedEvents
in classExceptionHandlerWrapper
-
handle
public void handle() throws FacesException
- Overrides:
handle
in classExceptionHandlerWrapper
- Throws:
FacesException
-
processEvent
public void processEvent(SystemEvent exceptionQueuedEvent) throws AbortProcessingException
- Specified by:
processEvent
in interfaceSystemEventListener
- Overrides:
processEvent
in classExceptionHandlerWrapper
- Throws:
AbortProcessingException
-
wrap
protected FacesException wrap(Throwable exception)
-
shouldSkip
protected boolean shouldSkip(Throwable exception)
-
getWrapped
public ExceptionHandler getWrapped()
- Specified by:
getWrapped
in interfaceFacesWrapper<ExceptionHandler>
- Overrides:
getWrapped
in classExceptionHandlerWrapper
-
-