public class PrimeExceptionHandler
extends javax.faces.context.ExceptionHandlerWrapper
| Constructor and Description |
|---|
PrimeExceptionHandler(javax.faces.context.ExceptionHandler wrapped) |
| Modifier and Type | Method and 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 interface javax.faces.FacesWrapper<javax.faces.context.ExceptionHandler>getWrapped in class javax.faces.context.ExceptionHandlerWrapperpublic void handle()
throws javax.faces.FacesException
handle in class javax.faces.context.ExceptionHandlerWrapperjavax.faces.FacesExceptionprotected 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.ExceptionHandlerWrapperprotected void handleAjaxException(javax.faces.context.FacesContext context,
Throwable rootCause,
ExceptionInfo info)
throws Exception
Exceptionprotected ExceptionInfo createExceptionInfo(Throwable rootCause) throws IOException
IOExceptionprotected 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
IOExceptionCopyright © 2018. All rights reserved.