Interface ErrorMessage

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractErrorMessage, CompositeErrorMessage, SystemError, UserError

public interface ErrorMessage extends Serializable
Interface for rendering error messages to terminal. All the visible errors shown to user must implement this interface.
Author:
Vaadin Ltd.
  • Field Details

  • 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