code: def format_failure(failure):
      
      return "Line {}, Column {} - #{}: {} - Category: {}, Severity: {}".format(
          failure.getLine(),
          failure.getColumn(),
          failure.getErrorId(),
          failure.getMessage(),
          failure.getCategoryAsString(),
          failure.getSeverity()
      )
docs: Format how an error or warning should be displayed.