org.apache.myfaces.tomahawk.util
Class ErrorPageWriter

java.lang.Object
  extended by org.apache.myfaces.tomahawk.util.ErrorPageWriter

public class ErrorPageWriter
extends java.lang.Object

This class is the same as javax.faces.webapp._ErrorPageWriter, but is cloned here to allow ErrorRedirectJSFPageHandler to provide an alternative when no navigation rule for a specific exception is found.

Author:
Jacob Hookom (ICLA with ASF filed)

Constructor Summary
ErrorPageWriter()
           
 
Method Summary
static void debugHtml(java.io.Writer writer, javax.faces.context.FacesContext faces)
           
static void debugHtml(java.io.Writer writer, javax.faces.context.FacesContext faces, java.util.List exceptionList)
           
static void debugHtml(java.io.Writer writer, javax.faces.context.FacesContext faces, java.lang.Throwable e)
           
static java.util.ArrayList getErrorId(java.lang.Throwable e)
           
static void handleException(javax.faces.context.FacesContext facesContext, java.lang.Exception ex)
           
static void handleExceptionList(javax.faces.context.FacesContext facesContext, java.util.List exceptionList)
           
static void handleThrowable(javax.faces.context.FacesContext facesContext, java.lang.Throwable ex)
           
static void writeCause(java.io.Writer writer, java.lang.Throwable ex)
           
static void writeComponent(java.io.Writer writer, javax.faces.component.UIComponent c, java.util.List highlightId)
           
static void writeVariables(java.io.Writer writer, javax.faces.context.FacesContext faces)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorPageWriter

public ErrorPageWriter()
Method Detail

getErrorId

public static java.util.ArrayList getErrorId(java.lang.Throwable e)

writeCause

public static void writeCause(java.io.Writer writer,
                              java.lang.Throwable ex)
                       throws java.io.IOException
Throws:
java.io.IOException

debugHtml

public static void debugHtml(java.io.Writer writer,
                             javax.faces.context.FacesContext faces,
                             java.lang.Throwable e)
                      throws java.io.IOException
Throws:
java.io.IOException

debugHtml

public static void debugHtml(java.io.Writer writer,
                             javax.faces.context.FacesContext faces,
                             java.util.List exceptionList)
                      throws java.io.IOException
Throws:
java.io.IOException

debugHtml

public static void debugHtml(java.io.Writer writer,
                             javax.faces.context.FacesContext faces)
                      throws java.io.IOException
Throws:
java.io.IOException

writeVariables

public static void writeVariables(java.io.Writer writer,
                                  javax.faces.context.FacesContext faces)
                           throws java.io.IOException
Throws:
java.io.IOException

writeComponent

public static void writeComponent(java.io.Writer writer,
                                  javax.faces.component.UIComponent c,
                                  java.util.List highlightId)
                           throws java.io.IOException
Throws:
java.io.IOException

handleException

public static void handleException(javax.faces.context.FacesContext facesContext,
                                   java.lang.Exception ex)
                            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 ex)
                            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.