Class AbstractErrorMessage

    • Constructor Detail

      • AbstractErrorMessage

        protected AbstractErrorMessage​(java.lang.String message)
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
      • setMessage

        protected void setMessage​(java.lang.String message)
      • getErrorLevel

        public com.vaadin.shared.ui.ErrorLevel getErrorLevel()
        Description copied from interface: ErrorMessage
        Gets the errors level.
        Specified by:
        getErrorLevel in interface ErrorMessage
        Returns:
        the level of error as an integer.
      • setErrorLevel

        public void setErrorLevel​(com.vaadin.shared.ui.ErrorLevel level)
      • getCauses

        protected java.util.List<ErrorMessage> getCauses()
      • getFormattedHtmlMessage

        public java.lang.String getFormattedHtmlMessage()
        Description copied from interface: ErrorMessage
        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
        Specified by:
        getFormattedHtmlMessage in interface ErrorMessage
        Returns:
        HTML formatted string for the error message
      • getErrorMessageForException

        public static ErrorMessage getErrorMessageForException​(java.lang.Throwable t)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object