Class ConstraintViolationException

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<ConstraintViolation<?>> getConstraintViolations​()
      Set of constraint violations reported during a validation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
    • Constructor Detail

      • ConstraintViolationException

        public ConstraintViolationException​(java.lang.String message,
                                            java.util.Set<? extends ConstraintViolation<?>> constraintViolations)
        Creates a constraint violation report.
        Parameters:
        message - error message
        constraintViolations - Set of ConstraintViolation
      • ConstraintViolationException

        public ConstraintViolationException​(java.util.Set<? extends ConstraintViolation<?>> constraintViolations)
        Creates a constraint violation report.
        Parameters:
        constraintViolations - Set of ConstraintViolation
    • Method Detail

      • getConstraintViolations

        public java.util.Set<ConstraintViolation<?>> getConstraintViolations​()
        Set of constraint violations reported during a validation.
        Returns:
        Set of ConstraintViolation