Module jakarta.mvc

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
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.validation.ConstraintViolation<?>
    The underlying ConstraintViolation detected for the parameter.

    Methods inherited from interface jakarta.mvc.binding.ParamError

    getMessage, getParamName
  • Method Details

    • getViolation

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