Package javax.validation
Class ConstraintViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.validation.ValidationException
javax.validation.ConstraintViolationException
- All Implemented Interfaces:
Serializable
Reports the result of constraint violations.
- See Also:
-
Constructor Summary
ConstructorDescriptionConstraintViolationException
(String message, Set<? extends ConstraintViolation<?>> constraintViolations) Creates a constraint violation report.ConstraintViolationException
(Set<? extends ConstraintViolation<?>> constraintViolations) Creates a constraint violation report. -
Method Summary
Modifier and TypeMethodDescriptionSet of constraint violations reported during a validation.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConstraintViolationException
public ConstraintViolationException(String message, Set<? extends ConstraintViolation<?>> constraintViolations) Creates a constraint violation report.- Parameters:
message
- error messageconstraintViolations
-Set
ofConstraintViolation
-
ConstraintViolationException
Creates a constraint violation report.- Parameters:
constraintViolations
-Set
ofConstraintViolation
-
-
Method Details
-
getConstraintViolations
Set of constraint violations reported during a validation.- Returns:
Set
ofConstraintViolation
-