public final class ErrorPageWriter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ErrorPageWriter.ErrorPageBean
This bean aims to generate the error page html for inclusion on a facelet error page via
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEBUG_INFO_KEY
Extended debug info is stored under this key in the request
map for every UIInput component when in Development mode.
|
static String |
ERROR_HANDLING_PARAMETER
Indicate if myfaces is responsible to handle errors.
|
static String |
ERROR_PAGE_BEAN_KEY
The key which is used to store the ErrorPageBean in the view map of a facelet error page.
|
static String |
VIEW_KEY |
| Constructor and Description |
|---|
ErrorPageWriter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
debugHtml(Writer writer,
FacesContext faces)
Generates the HTML debug page for the current view
and writes it to the given writer.
|
static void |
debugHtml(Writer writer,
FacesContext faces,
Throwable e)
Generates the HTML error page for the given Throwable
and writes it to the given writer.
|
static void |
handle(FacesContext facesContext,
Collection<UIComponent> components,
Throwable... exs) |
static void |
handleThrowable(FacesContext facesContext,
Throwable ex)
Deprecated.
Use MyFacesExceptionHandlerWrapperImpl and handle() method
|
public static final String ERROR_PAGE_BEAN_KEY
public static final String VIEW_KEY
public static final String DEBUG_INFO_KEY
@JSFWebConfigParam(defaultValue="false, on Development Project stage: true",
expectedValues="true,false",
since="1.2.4")
public static final String ERROR_HANDLING_PARAMETER
public static void debugHtml(Writer writer, FacesContext faces, Throwable e) throws IOException
writer - faces - e - IOExceptionpublic static void debugHtml(Writer writer, FacesContext faces) throws IOException
writer - faces - IOExceptionpublic static void handle(FacesContext facesContext, Collection<UIComponent> components, Throwable... exs) throws FacesException
FacesException@Deprecated public static void handleThrowable(FacesContext facesContext, Throwable ex) throws FacesException
facesContext - ex - FacesExceptionCopyright © 2016 The Apache Software Foundation. All Rights Reserved.