code: private static void parseMaxErrors(String current, Pipeline pipeline)
              throws ParseException {
          try {
              String errorsStr = current.replaceFirst("max_errors: ", "").trim();
              int errors = parseInt(errorsStr);
              pipeline.setMaxErrors(errors);
              LOG.info("+-using {} max_errors", errors);
          } catch (NumberFormatException e) {
              throw new ParseException(
                      "could not parse number of max_errors from " + current, -1);
          }
      }
docs: Parses max # of errors