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()
Set of constraint violations reported during a validation.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ConstraintViolationException(String message, Set<? extends ConstraintViolation<?>> constraintViolations)
message
- error messageconstraintViolations
- Set
of ConstraintViolation
public ConstraintViolationException(Set<? extends ConstraintViolation<?>> constraintViolations)
constraintViolations
- Set
of ConstraintViolation
public Set<ConstraintViolation<?>> getConstraintViolations()
Set
of ConstraintViolation
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.