java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.avaje.validation.ConstraintViolationException
- All Implemented Interfaces:
Serializable
Exception holding a set of constraint violations.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstraintViolationException
(String message, Set<ConstraintViolation> violations, List<Class<?>> groups) Create with the given constraint violations -
Method Summary
Modifier and TypeMethodDescriptiongroups()
Return the groups used for validations.Return the constraint violations.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<ConstraintViolation> violations, List<Class<?>> groups) Create with the given constraint violations
-
-
Method Details
-
violations
Return the constraint violations. -
groups
Return the groups used for validations.
-