Class ConstraintViolationException

All Implemented Interfaces:
Serializable

public class ConstraintViolationException extends ValidationException
Reports the result of constraint violations.
See Also:
  • Constructor Details

    • ConstraintViolationException

      public ConstraintViolationException(String message, Set<? extends ConstraintViolation<?>> constraintViolations)
      Creates a constraint violation report.
      Parameters:
      message - error message
      constraintViolations - a Set of ConstraintViolations or null
    • ConstraintViolationException

      public ConstraintViolationException(Set<? extends ConstraintViolation<?>> constraintViolations)
      Creates a constraint violation report.
      Parameters:
      constraintViolations - a Set of ConstraintViolations or null
  • Method Details

    • getConstraintViolations

      public Set<ConstraintViolation<?>> getConstraintViolations()
      Returns the set of constraint violations reported during a validation.
      Returns:
      the Set of ConstraintViolations or null