public class PrimeExceptionHandler
extends javax.faces.context.ExceptionHandlerWrapper
Constructor | Description |
---|---|
PrimeExceptionHandler(javax.faces.context.ExceptionHandler wrapped) |
Modifier and Type | Method | Description |
---|---|---|
protected Throwable |
buildView(javax.faces.context.FacesContext context,
Throwable throwable,
Throwable rootCause) |
Builds the view if not already available.
|
protected ExceptionInfo |
createExceptionInfo(Throwable rootCause) |
|
protected String |
evaluateErrorPage(Map<String,String> errorPages,
Throwable rootCause) |
|
protected AjaxExceptionHandler |
findHandlerComponent(javax.faces.context.FacesContext context,
Throwable rootCause) |
Finds the proper
AjaxExceptionHandler for the given Throwable . |
Throwable |
getRootCause(Throwable throwable) |
|
javax.faces.context.ExceptionHandler |
getWrapped() |
|
void |
handle() |
|
protected void |
handleAjaxException(javax.faces.context.FacesContext context,
Throwable rootCause,
ExceptionInfo info) |
|
protected void |
handleRedirect(javax.faces.context.FacesContext context,
Throwable rootCause,
ExceptionInfo info,
boolean responseResetted) |
|
protected boolean |
isLogException(javax.faces.context.FacesContext context,
Throwable rootCause) |
|
protected void |
logException(Throwable rootCause) |
public PrimeExceptionHandler(javax.faces.context.ExceptionHandler wrapped)
public javax.faces.context.ExceptionHandler getWrapped()
getWrapped
in class javax.faces.context.ExceptionHandlerWrapper
public void handle() throws javax.faces.FacesException
handle
in class javax.faces.context.ExceptionHandlerWrapper
javax.faces.FacesException
protected void logException(Throwable rootCause)
protected boolean isLogException(javax.faces.context.FacesContext context, Throwable rootCause)
public Throwable getRootCause(Throwable throwable)
getRootCause
in class javax.faces.context.ExceptionHandlerWrapper
protected void handleAjaxException(javax.faces.context.FacesContext context, Throwable rootCause, ExceptionInfo info) throws Exception
Exception
protected ExceptionInfo createExceptionInfo(Throwable rootCause) throws IOException
IOException
protected AjaxExceptionHandler findHandlerComponent(javax.faces.context.FacesContext context, Throwable rootCause)
AjaxExceptionHandler
for the given Throwable
.context
- The FacesContext
.rootCause
- The occurred Throwable
.AjaxExceptionHandler
or null
.protected Throwable buildView(javax.faces.context.FacesContext context, Throwable throwable, Throwable rootCause) throws IOException
context
- The FacesContext
.throwable
- The occurred Throwable
.rootCause
- The root cause.Throwable
.IOException
- If building the view fails.protected void handleRedirect(javax.faces.context.FacesContext context, Throwable rootCause, ExceptionInfo info, boolean responseResetted) throws IOException
IOException
Copyright © 2018. All rights reserved.