Class DomainInvariantViolationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
uk.co.jasonmarston.kiunzi.utility.validator.DomainInvariantViolationException
All Implemented Interfaces:
Serializable

public class DomainInvariantViolationException extends RuntimeException
Exception thrown when one or more Bean Validation constraints are violated on a domain object during invariant checking.

Each violated constraint is captured as a DomainInvariantViolationException.Violation record and made available via the violations field. The exception message is a comma-separated summary of all violations in the form "property message".

See Also:
  • Constructor Details

    • DomainInvariantViolationException

      public DomainInvariantViolationException(Set<? extends jakarta.validation.ConstraintViolation<?>> violations)
      Constructs a DomainInvariantViolationException from the given set of constraint violations.
      Parameters:
      violations - the non-empty set of constraint violations; must not be null