Class ValidationResult.SimpleValidationResult

    • Method Detail

      • getErrorMessage

        public java.lang.String getErrorMessage()
        Description copied from interface: ValidationResult
        Returns the result message.

        Throws an IllegalStateException if the result represents success.

        Specified by:
        getErrorMessage in interface ValidationResult
        Returns:
        the error message
      • getErrorLevel

        public java.util.Optional<com.vaadin.shared.ui.ErrorLevel> getErrorLevel()
        Description copied from interface: ValidationResult
        Returns optional error level for this validation result. Error level is not present for successful validation results.

        Note: By default ErrorLevel.INFO and ErrorLevel.WARNING are not considered to be blocking the validation and conversion chain.

        Specified by:
        getErrorLevel in interface ValidationResult
        Returns:
        optional error level; error level is present for validation results that have not passed validation
        See Also:
        ValidationResult.isError()