public void validateDelete() { java.util.List<utils.ValidationException> exceptions = new java.util.LinkedList<utils.ValidationException>(); if (exceptions.size() > 0) { throw new utils.MultipleValidationExceptions(exceptions); } }
public void validateSave() { webdsl.generated.domain.ValidationExceptionMultiple mex = this.validateSave_(); java.util.List<webdsl.generated.domain.ValidationException> ex = mex.getExceptions(); java.util.List<utils.ValidationException> exceptions = new java.util.LinkedList<utils.ValidationException>(); for (webdsl.generated.domain.ValidationException v : ex) { exceptions.add(new utils.ValidationException(null, v.getMessage())); } if (exceptions.size() > 0) { throw new utils.MultipleValidationExceptions(exceptions); } }