Interface FailureDisplayFormat


@PublicAPI(usage=INHERITANCE) public interface FailureDisplayFormat
Allows to customize violation messages and rule text of ArchRules.
  • Method Details

    • formatFailure

      String formatFailure(HasDescription rule, FailureMessages failureMessages, Priority priority)
      Formats the failure of an ArchRule, i.e. constructs the text to display for this failing rule, given the rule itself, its detailing failure message and the rule Priority.
      Parameters:
      rule - The rule that failed
      failureMessages - All the failure details
      priority - The priority of the rule
      Returns:
      A text to display for this failing rule