code: protected final void failOnValidationError(final ValidationTask... validationTasks) {
          final List<ValidationException> errors = contOnValidationError(validationTasks);
          if (! Collections.isEmpty(errors)) {
              throw new BadRequestException(Response.status(Response.Status.BAD_REQUEST).entity(errors).build());
          }
      }
docs: Wrapper around {@link #contOnValidationError(ValidationTask[])} but instead of returning
  a list of errors, this method will halt processing of the request by throwing
  a BadRequestException, setting the HTTP status to 400 (BAD REQUEST) and providing
  a full list of validation errors in the body of the response.
  
  Usage:
  <pre>
  List&lt;ValidationException&gt; errors = failOnValidationError(
  new ValidationTask(pattern, input, errorMessage),
  new ValidationTask(pattern, input, errorMessage)
  );
  // If validation fails, this line will not be reached.
  </pre>
  
  @param validationTasks an array of one or more ValidationTasks
  @since 1.0.0