use of com.recurly.v3.exception.ValidationException in project front50 by spinnaker.
the class ApplicationService method validate.
private void validate(Application application) {
ApplicationValidationErrors errors = new ApplicationValidationErrors(application);
validators.forEach(v -> v.validate(application, errors));
if (errors.hasErrors()) {
throw new ValidationException(errors);
}
}
Aggregations