code: @Cmd
  	public void onError(final Closure<Void> closure) {
  		int errorCount = errors.size();
  		if (errorCount > 0) {
  			log.info(errorCount + " error" + (errorCount == 1 ? "" : "s") + " in list --> executing block");
  			closure.call();
  			log.info("Finished OnError block");
  		} else {
  			log.info("No errors in list --> skipping block");
  		}
  	}
docs: Executes the specified closure if at least one exception had previously been recorded in the
  currently executing script.
  
  @param closure
  the {@link Closure} representing a Groovy block