public class ConstraintViolationException extends ValidationException
Constructor and Description |
---|
ConstraintViolationException(java.util.Set<? extends ConstraintViolation<?>> constraintViolations)
Creates a constraint violation report.
|
ConstraintViolationException(java.lang.String message,
java.util.Set<? extends ConstraintViolation<?>> constraintViolations)
Creates a constraint violation report.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<ConstraintViolation<?>> |
getConstraintViolations()
Returns the set of constraint violations reported during a validation.
|
public ConstraintViolationException(java.lang.String message, java.util.Set<? extends ConstraintViolation<?>> constraintViolations)
message
- error messageconstraintViolations
- a Set
of ConstraintViolation
s or nullpublic ConstraintViolationException(java.util.Set<? extends ConstraintViolation<?>> constraintViolations)
constraintViolations
- a Set
of ConstraintViolation
s or nullpublic java.util.Set<ConstraintViolation<?>> getConstraintViolations()
Set
of ConstraintViolation
s or null