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