Package javax.faces.context
Class ExceptionHandlerWrapper
- java.lang.Object
-
- javax.faces.context.ExceptionHandler
-
- javax.faces.context.ExceptionHandlerWrapper
-
- All Implemented Interfaces:
EventListener
,FacesListener
,SystemEventListener
,FacesWrapper<ExceptionHandler>
public abstract class ExceptionHandlerWrapper extends ExceptionHandler implements FacesWrapper<ExceptionHandler>
- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description ExceptionHandlerWrapper()
Deprecated.ExceptionHandlerWrapper(ExceptionHandler delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptionQueuedEvent
getHandledExceptionQueuedEvent()
Iterable<ExceptionQueuedEvent>
getHandledExceptionQueuedEvents()
Throwable
getRootCause(Throwable t)
Iterable<ExceptionQueuedEvent>
getUnhandledExceptionQueuedEvents()
ExceptionHandler
getWrapped()
A class that implements this interface uses this method to return an instance of the class being wrapped.void
handle()
boolean
isListenerForSource(Object source)
void
processEvent(SystemEvent exceptionQueuedEvent)
-
-
-
Constructor Detail
-
ExceptionHandlerWrapper
@Deprecated public ExceptionHandlerWrapper()
Deprecated.
-
ExceptionHandlerWrapper
public ExceptionHandlerWrapper(ExceptionHandler delegate)
-
-
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 t)
- Specified by:
getRootCause
in classExceptionHandler
-
getUnhandledExceptionQueuedEvents
public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents()
- Specified by:
getUnhandledExceptionQueuedEvents
in classExceptionHandler
-
getWrapped
public ExceptionHandler getWrapped()
Description copied from interface:FacesWrapper
A class that implements this interface uses this method to return an instance of the class being wrapped.- Specified by:
getWrapped
in interfaceFacesWrapper<ExceptionHandler>
- Returns:
- the instance of the class being wrapped
-
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
-
-