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 String |
calculateViewId(javax.faces.context.FacesContext context)
Calculates the current viewId - we can't get it from the ViewRoot if it's not available.
|
protected ExceptionInfo |
createExceptionInfo(Throwable rootCause) |
protected AjaxExceptionHandler |
findHandlerComponent(javax.faces.context.FacesContext context,
Throwable throwable)
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) |
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.ExceptionHandlerWrapper
public void handle() throws javax.faces.FacesException
handle
in class javax.faces.context.ExceptionHandlerWrapper
javax.faces.FacesException
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 throwable)
AjaxExceptionHandler
for the given Throwable
.context
- The FacesContext
.throwable
- The occurred Throwable
.UIAjaxExceptionHandler
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 String calculateViewId(javax.faces.context.FacesContext context)
context
- The FacesContext
.protected void handleRedirect(javax.faces.context.FacesContext context, Throwable rootCause, ExceptionInfo info, boolean responseResetted) throws IOException
IOException
Copyright © 2014. All rights reserved.