Interface ValidationError

  • All Superinterfaces:
    ParamError

    public interface ValidationError
    extends ParamError

    Represents a single validation error detected for a parameter. A validation error always corresponds to exactly one ConstraintViolation.

    Since:
    1.0
    Author:
    Christian Kaltepoth, Ivar Grimstad
    • Method Detail

      • getViolation

        jakarta.validation.ConstraintViolation<?> getViolation()
        The underlying ConstraintViolation detected for the parameter.
        Returns:
        The violation detected for the parameter