Package com.vaadin.server
Interface ErrorMessage
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AbstractErrorMessage,CompositeErrorMessage,SystemError,UserError
public interface ErrorMessage extends java.io.SerializableInterface for rendering error messages to terminal. All the visible errors shown to user must implement this interface.- Since:
- 3.0
- Author:
- Vaadin Ltd.
-
-
Field Summary
Fields Modifier and Type Field Description static com.vaadin.shared.ui.ErrorLevelCRITICALDeprecated.As of 7.0, useErrorLevel.CRITICALinsteadstatic com.vaadin.shared.ui.ErrorLevelERRORDeprecated.As of 7.0, useErrorLevel.ERRORinsteadstatic com.vaadin.shared.ui.ErrorLevelINFORMATIONDeprecated.As of 7.0, useErrorLevel.INFOinsteadstatic com.vaadin.shared.ui.ErrorLevelSYSTEMERRORDeprecated.As of 7.0, useErrorLevel.SYSTEMinsteadstatic com.vaadin.shared.ui.ErrorLevelWARNINGDeprecated.As of 7.0, useErrorLevel.WARNINGinstead
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.vaadin.shared.ui.ErrorLevelgetErrorLevel()Gets the errors level.java.lang.StringgetFormattedHtmlMessage()Returns the HTML formatted message to show in as the error message on the client.
-
-
-
Field Detail
-
SYSTEMERROR
@Deprecated static final com.vaadin.shared.ui.ErrorLevel SYSTEMERROR
Deprecated.As of 7.0, useErrorLevel.SYSTEMinstead
-
CRITICAL
@Deprecated static final com.vaadin.shared.ui.ErrorLevel CRITICAL
Deprecated.As of 7.0, useErrorLevel.CRITICALinstead
-
ERROR
@Deprecated static final com.vaadin.shared.ui.ErrorLevel ERROR
Deprecated.As of 7.0, useErrorLevel.ERRORinstead
-
WARNING
@Deprecated static final com.vaadin.shared.ui.ErrorLevel WARNING
Deprecated.As of 7.0, useErrorLevel.WARNINGinstead
-
INFORMATION
@Deprecated static final com.vaadin.shared.ui.ErrorLevel INFORMATION
Deprecated.As of 7.0, useErrorLevel.INFOinstead
-
-
Method Detail
-
getErrorLevel
com.vaadin.shared.ui.ErrorLevel getErrorLevel()
Gets the errors level.- Returns:
- the level of error as an integer.
-
getFormattedHtmlMessage
java.lang.String getFormattedHtmlMessage()
Returns the HTML formatted message to show in as the error message on the client. This method should perform any necessary escaping to avoid XSS attacks. TODO this API may still change to use a separate data transfer object- Returns:
- HTML formatted string for the error message
- Since:
- 7.0
-
-