public class ConstraintViolationException extends ValidationException
| Constructor and Description |
|---|
ConstraintViolationException(Set<? extends ConstraintViolation<?>> constraintViolations)
Creates a constraint violation report.
|
ConstraintViolationException(String message,
Set<? extends ConstraintViolation<?>> constraintViolations)
Creates a constraint violation report.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ConstraintViolation<?>> |
getConstraintViolations()
Returns the set of constraint violations reported during a validation.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ConstraintViolationException(String message, Set<? extends ConstraintViolation<?>> constraintViolations)
message - error messageconstraintViolations - a Set of ConstraintViolations or nullpublic ConstraintViolationException(Set<? extends ConstraintViolation<?>> constraintViolations)
constraintViolations - a Set of ConstraintViolations or nullpublic Set<ConstraintViolation<?>> getConstraintViolations()
Set of ConstraintViolations or nullThis spec is licensed under the EFSL; this spec is based on material that is licensed under the Apache License, version 2.0.