private static void ensureNoErrors(List<String> errors) {
    if (errors != null) {
      throw new ValidationException("JobParameters is invalid", errors);
    }
  }
Throws a RuntimeException if the provided RetryStrategy is invalid.

@throws ValidationException
jobdispatcher/src/main/java/com/firebase/jobdispatcher/ValidationEnforcer.java