public class AjaxExceptionHandlerImpl
extends javax.faces.context.ExceptionHandlerWrapper
A specialized implementation of ExceptionHandler
for JSF 2.0 that
handles exceptions by writing error information to the
partial response.
Modifier and Type | Field and Description |
---|---|
private javax.faces.context.ExceptionHandler |
exceptionHandler |
private javax.faces.event.ExceptionQueuedEvent |
handled |
private java.util.LinkedList<javax.faces.event.ExceptionQueuedEvent> |
handledExceptions |
private static java.lang.String |
LOG_AFTER_KEY |
private static java.lang.String |
LOG_BEFORE_KEY |
private static java.lang.String |
LOG_KEY |
private static java.util.logging.Logger |
LOGGER |
private java.util.LinkedList<javax.faces.event.ExceptionQueuedEvent> |
unhandledExceptions |
Constructor and Description |
---|
AjaxExceptionHandlerImpl(javax.faces.context.ExceptionHandler handler) |
Modifier and Type | Method and Description |
---|---|
javax.faces.event.ExceptionQueuedEvent |
getHandledExceptionQueuedEvent() |
java.lang.Iterable<javax.faces.event.ExceptionQueuedEvent> |
getHandledExceptionQueuedEvents() |
private java.lang.String |
getLoggingKey(boolean beforePhase,
boolean afterPhase) |
java.lang.Iterable<javax.faces.event.ExceptionQueuedEvent> |
getUnhandledExceptionQueuedEvents() |
javax.faces.context.ExceptionHandler |
getWrapped() |
void |
handle() |
private void |
handlePartialResponseError(javax.faces.context.FacesContext context,
java.lang.Throwable t) |
private boolean |
isRethrown(java.lang.Throwable t) |
private void |
log(javax.faces.event.ExceptionQueuedEventContext exceptionContext) |
void |
processEvent(javax.faces.event.SystemEvent event) |
private static final java.util.logging.Logger LOGGER
private static final java.lang.String LOG_BEFORE_KEY
private static final java.lang.String LOG_AFTER_KEY
private static final java.lang.String LOG_KEY
private java.util.LinkedList<javax.faces.event.ExceptionQueuedEvent> unhandledExceptions
private java.util.LinkedList<javax.faces.event.ExceptionQueuedEvent> handledExceptions
private javax.faces.event.ExceptionQueuedEvent handled
private javax.faces.context.ExceptionHandler exceptionHandler
public AjaxExceptionHandlerImpl(javax.faces.context.ExceptionHandler handler)
public javax.faces.context.ExceptionHandler getWrapped()
getWrapped
in interface javax.faces.FacesWrapper<javax.faces.context.ExceptionHandler>
getWrapped
in class javax.faces.context.ExceptionHandlerWrapper
public javax.faces.event.ExceptionQueuedEvent getHandledExceptionQueuedEvent()
getHandledExceptionQueuedEvent
in class javax.faces.context.ExceptionHandlerWrapper
ExceptionHandler.getHandledExceptionQueuedEvent()
public void handle() throws javax.faces.FacesException
handle
in class javax.faces.context.ExceptionHandlerWrapper
javax.faces.FacesException
ExceptionHandlerWrapper.handle()
public void processEvent(javax.faces.event.SystemEvent event) throws javax.faces.event.AbortProcessingException
processEvent
in interface javax.faces.event.SystemEventListener
processEvent
in class javax.faces.context.ExceptionHandlerWrapper
javax.faces.event.AbortProcessingException
ExceptionHandlerWrapper.processEvent(javax.faces.event.SystemEvent)
public java.lang.Iterable<javax.faces.event.ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents()
getUnhandledExceptionQueuedEvents
in class javax.faces.context.ExceptionHandlerWrapper
ExceptionHandlerWrapper.getUnhandledExceptionQueuedEvents()
public java.lang.Iterable<javax.faces.event.ExceptionQueuedEvent> getHandledExceptionQueuedEvents()
getHandledExceptionQueuedEvents
in class javax.faces.context.ExceptionHandlerWrapper
ExceptionHandlerWrapper.getHandledExceptionQueuedEvents()
private void handlePartialResponseError(javax.faces.context.FacesContext context, java.lang.Throwable t)
private boolean isRethrown(java.lang.Throwable t)
private void log(javax.faces.event.ExceptionQueuedEventContext exceptionContext)
private java.lang.String getLoggingKey(boolean beforePhase, boolean afterPhase)
Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.