The default implementation of ExceptionHandler for JSF 2.0.
As an implementation note, if changes going forward are required here,
review the ExceptionHandler implementation within
javax.faces.webapp.PreJsf2ExceptionHandlerFactory. The code
is, in most cases, quite similar.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private ExceptionQueuedEvent | |
| private LinkedList | |
| public static final Level | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final Logger | |
| private LinkedList |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ExceptionQueuedEvent | getHandledExceptionQueuedEvent()
Implements abstract javax. Return the first
|
| public Iterable | getHandledExceptionQueuedEvents()
Implements abstract javax. The default implementation must
return an |
| private String | |
| public Throwable | getRootCause(Throwable
passed-in wrapped t)Throwable.Implements abstract javax. Unwrap the argument |
| public Iterable | getUnhandledExceptionQueuedEvents()
Implements abstract javax. Return an |
| public void | handle()
Implements abstract javax. Take action to handle the
|
| public boolean | isListenerForSource(Object
the source that is inquiring about the
appropriateness of sending an event to this listener instance. source)Implements abstract javax. Implements javax. This method must return |
| private boolean | |
| private void | |
| public void | processEvent(SystemEvent
the event)SystemEvent instance that
is being processed.Implements abstract javax. Implements javax. When called, the listener can assume that any guarantees given
in the javadoc for the specific |
| private boolean | Returns: true if c is FacesException.class or
ELException.classThrowable implementation class
|
| private void |
| errorPagePresent | back to summary |
|---|---|
| private boolean errorPagePresent | |
| handled | back to summary |
|---|---|
| private ExceptionQueuedEvent handled | |
| handledExceptions | back to summary |
|---|---|
| private LinkedList<ExceptionQueuedEvent> handledExceptions | |
| INCIDENT_ERROR | back to summary |
|---|---|
| public static final Level INCIDENT_ERROR | |
| LOG_AFTER_KEY | back to summary |
|---|---|
| private static final String LOG_AFTER_KEY | |
| LOG_BEFORE_KEY | back to summary |
|---|---|
| private static final String LOG_BEFORE_KEY | |
| LOG_KEY | back to summary |
|---|---|
| private static final String LOG_KEY | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| unhandledExceptions | back to summary |
|---|---|
| private LinkedList<ExceptionQueuedEvent> unhandledExceptions | |
| ExceptionHandlerImpl | back to summary |
|---|---|
| public ExceptionHandlerImpl() | |
| ExceptionHandlerImpl | back to summary |
|---|---|
| public ExceptionHandlerImpl(boolean errorPagePresent) | |
| getHandledExceptionQueuedEvent | back to summary |
|---|---|
| public ExceptionQueuedEvent getHandledExceptionQueuedEvent() Implements abstract javax. Doc from javax. Return the first
| |
| getHandledExceptionQueuedEvents | back to summary |
|---|---|
| public Iterable Implements abstract javax. Doc from javax. The default implementation must
return an
| |
| getLoggingKey | back to summary |
|---|---|
| private String getLoggingKey(boolean beforePhase, boolean afterPhase) | |
| getRootCause | back to summary |
|---|---|
| public Throwable getRootCause(Throwable t) Implements abstract javax. Doc from javax. Unwrap the argument
| |
| getUnhandledExceptionQueuedEvents | back to summary |
|---|---|
| public Iterable Implements abstract javax. Doc from javax. Return an
| |
| handle | back to summary |
|---|---|
| public void handle() throws FacesException Implements abstract javax. Doc from javax. Take action to handle the
| |
| isListenerForSource | back to summary |
|---|---|
| public boolean isListenerForSource(Object source) Implements abstract javax. Implements javax. Doc from javax. This method must return
| |
| isRethrown | back to summary |
|---|---|
| private boolean isRethrown(Throwable t) | |
| log | back to summary |
|---|---|
| private void log(ExceptionQueuedEventContext exceptionContext) | |
| processEvent | back to summary |
|---|---|
| public void processEvent(SystemEvent event) throws AbortProcessingException Implements abstract javax. Implements javax. Doc from javax. When called, the listener can assume that any guarantees given
in the javadoc for the specific
| |
| shouldUnwrap | back to summary |
|---|---|
| private boolean shouldUnwrap(Class<? extends Throwable> c) | |
| throwIt | back to summary |
|---|---|
| private void throwIt(FacesContext ctx, FacesException fe) | |