Class ConstraintViolationExceptionUtil

java.lang.Object
io.micronaut.validation.ConstraintViolationExceptionUtil

public final class ConstraintViolationExceptionUtil extends Object
Utility class for ConstraintViolationException.
Since:
4.9.0
  • Method Details

    • createConstraintViolationException

      public static jakarta.validation.ConstraintViolationException createConstraintViolationException(boolean prependPropertyPath, Set<? extends jakarta.validation.ConstraintViolation<?>> constraintViolations)
      Method to create ConstraintViolationException with custom message.
      Parameters:
      prependPropertyPath - prependPropertyPath configuration flag
      constraintViolations - constraint violations
      Returns:
      ConstraintViolationException