public class CmsErrorBean
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
ERRORPAGE
Name of the property file containing HTML fragments for setup wizard and error dialog.
|
构造器和说明 |
---|
CmsErrorBean(CmsObject cms,
java.lang.Throwable throwable)
Constructs a new error bean.
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
public static final java.lang.String ERRORPAGE
public CmsErrorBean(CmsObject cms, java.lang.Throwable throwable)
cms
- the current CmsObjectthrowable
- the exception that was caughtpublic 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 frompublic 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()