org.apache.myfaces.tomahawk.util
Class ErrorRedirectJSFPageHandler
java.lang.Object
org.apache.myfaces.tomahawk.util.ErrorRedirectJSFPageHandler
public class ErrorRedirectJSFPageHandler
- extends java.lang.Object
This handler redirect to a jsf page when an error occurs.
This class is set as a config-parameter org.apache.myfaces.ERROR_HANDLER
available on myfaces core jsf. (This does not work with RI)
The idea is extends myfaces error handling feature, making possible to redirect
to a jsf page when an error occur, using navigation rules.
If this handler is not able to handle the error, and alternate error handler
could be set in the config-parameter org.apache.myfaces.ERROR_REDIRECT_ALTERNATE_HANDLER
The info of the error in the jsf page can be found using:
- #{exceptionContext.cause} : Cause retrieved from the exception
- #{exceptionContext.stackTrace} : Stack trace of the exception
- #{exceptionContext.exception} : Exception handled by this page
- #{exceptionContext.tree} : Print the component tree of the page that cause the error
- #{exceptionContext.vars} : Enviroment variables from the request
- Version:
- $Revision: 689684 $ $Date: 2008-08-27 19:50:09 -0500 (Wed, 27 Aug 2008) $
- Author:
- Leonardo Uribe (latest modification by $Author: lu4242 $)
Method Summary |
static void |
handleException(javax.faces.context.FacesContext facesContext,
java.lang.Exception e)
|
static void |
handleExceptionList(javax.faces.context.FacesContext facesContext,
java.util.List exceptionList)
|
static void |
handleThrowable(javax.faces.context.FacesContext facesContext,
java.lang.Throwable e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorRedirectJSFPageHandler
public ErrorRedirectJSFPageHandler()
handleException
public static void handleException(javax.faces.context.FacesContext facesContext,
java.lang.Exception e)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
handleThrowable
public static void handleThrowable(javax.faces.context.FacesContext facesContext,
java.lang.Throwable e)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
handleExceptionList
public static void handleExceptionList(javax.faces.context.FacesContext facesContext,
java.util.List exceptionList)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.