Package org.apache.myfaces.context
Class MyFacesExceptionHandlerWrapperImpl
- java.lang.Object
-
- javax.faces.context.ExceptionHandler
-
- javax.faces.context.ExceptionHandlerWrapper
-
- org.apache.myfaces.context.MyFacesExceptionHandlerWrapperImpl
-
- All Implemented Interfaces:
EventListener,FacesListener,SystemEventListener,FacesWrapper<ExceptionHandler>
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 ExceptionQueuedEventgetHandledExceptionQueuedEvent()Iterable<ExceptionQueuedEvent>getHandledExceptionQueuedEvents()protected ThrowablegetRethrownException(Throwable exception)Iterable<ExceptionQueuedEvent>getUnhandledExceptionQueuedEvents()ExceptionHandlergetWrapped()voidhandle()protected voidinit()protected voidinit(FacesContext facesContext)protected voidinit(SystemEvent exceptionQueuedEvent)protected booleanisErrorPagePresent()protected booleanisUseMyFacesErrorHandling()voidprocessEvent(SystemEvent exceptionQueuedEvent)protected booleanshouldSkip(Throwable exception)protected FacesExceptionwrap(Throwable exception)-
Methods inherited from class javax.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:
getHandledExceptionQueuedEventin classExceptionHandlerWrapper
-
getHandledExceptionQueuedEvents
public Iterable<ExceptionQueuedEvent> getHandledExceptionQueuedEvents()
- Overrides:
getHandledExceptionQueuedEventsin classExceptionHandlerWrapper
-
getUnhandledExceptionQueuedEvents
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents()
- Overrides:
getUnhandledExceptionQueuedEventsin classExceptionHandlerWrapper
-
handle
public void handle() throws FacesException- Overrides:
handlein classExceptionHandlerWrapper- Throws:
FacesException
-
processEvent
public void processEvent(SystemEvent exceptionQueuedEvent) throws AbortProcessingException
- Specified by:
processEventin interfaceSystemEventListener- Overrides:
processEventin classExceptionHandlerWrapper- Throws:
AbortProcessingException
-
wrap
protected FacesException wrap(Throwable exception)
-
shouldSkip
protected boolean shouldSkip(Throwable exception)
-
getWrapped
public ExceptionHandler getWrapped()
- Specified by:
getWrappedin interfaceFacesWrapper<ExceptionHandler>- Overrides:
getWrappedin classExceptionHandlerWrapper
-
-