com.jpattern.orm.validator.OrmJSR303ValidatorException Maven / Gradle / Ivy
package com.jpattern.orm.validator;
import java.util.Collections;
import java.util.Set;
import javax.validation.ConstraintViolation;
import com.jpattern.orm.exception.validator.OrmValidatorException;
/**
*
* @author ufo
*
*/
public class OrmJSR303ValidatorException extends OrmValidatorException {
private static final long serialVersionUID = 1L;
private final Set> constraintViolations;
public OrmJSR303ValidatorException(final String message, final Set> constraintViolations) {
super(message);
this.constraintViolations = Collections.unmodifiableSet(constraintViolations);
}
public Set> getConstraintViolations() {
return this.constraintViolations;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy