Package com.vaadin.featurepack.server
Interface ErrorMessage
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractErrorMessage,CompositeErrorMessage,SystemError,UserError
Interface for rendering error messages to terminal. All the visible errors
shown to user must implement this interface.
- Author:
- Vaadin Ltd.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ErrorLevelstatic final ErrorLevelstatic final ErrorLevelstatic final ErrorLevelstatic final ErrorLevel -
Method Summary
Modifier and TypeMethodDescriptionGets the errors level.Returns the HTML formatted message to show in as the error message on the client.
-
Field Details
-
SYSTEMERROR
-
CRITICAL
-
ERROR
-
WARNING
-
INFORMATION
-
-
Method Details
-
getErrorLevel
ErrorLevel getErrorLevel()Gets the errors level.- Returns:
- the level of error as an integer.
-
getFormattedHtmlMessage
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.- Returns:
- HTML formatted string for the error message
-