|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.opencms.jsp.util.CmsErrorBean
public class CmsErrorBean
Class to display the error dialog.
| Field Summary | |
|---|---|
static java.lang.String |
ERRORPAGE
Name of the property file containing HTML fragments for setup wizard and error dialog. |
| Constructor Summary | |
|---|---|
CmsErrorBean(CmsObject cms,
java.lang.Throwable throwable)
Constructs a new error bean. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDefaultButtonsHtml()
Returns the html code for the buttons, when the errorpage is included from outside the workplace. |
java.lang.String |
getErrorMessage()
Returns the error message to be displayed. |
java.lang.String |
getMessage(java.lang.Throwable t)
Returns the localized Message, if the argument is a CmsException, or the message otherwise. |
void |
setButtons(java.lang.String buttons)
Sets the buttons. |
void |
setErrorMessage(java.lang.String errorMessage)
Sets the error message which can be displayed if no exception is there. |
void |
setHiddenParams(java.lang.String hiddenParams)
Sets the hiddenParams. |
void |
setParamAction(java.lang.String paramAction)
Sets the action parameter. |
void |
setTitle(java.lang.String title)
Sets the title of the error page. |
java.lang.String |
toHtml()
Returns the html code for a errorpage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ERRORPAGE
| Constructor Detail |
|---|
public CmsErrorBean(CmsObject cms,
java.lang.Throwable throwable)
cms - the current CmsObjectthrowable - the exception that was caught| Method Detail |
|---|
public java.lang.String getDefaultButtonsHtml()
public java.lang.String getErrorMessage()
public java.lang.String getMessage(java.lang.Throwable t)
t - the Throwable to get the message from
public void setButtons(java.lang.String buttons)
buttons - the buttons to setpublic void setErrorMessage(java.lang.String errorMessage)
errorMessage - the error message to setpublic void setHiddenParams(java.lang.String hiddenParams)
hiddenParams - the hiddenParams to setpublic void setParamAction(java.lang.String paramAction)
paramAction - the action parameter to setpublic void setTitle(java.lang.String title)
title - of the error pagepublic java.lang.String toHtml()
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||