Class ConstraintViolation

java.lang.Object
io.avaje.validation.ConstraintViolation

public class ConstraintViolation extends Object
Describes a constraint violation. This object exposes the constraint violation context as well as the message describing the violation.
  • Constructor Details

    • ConstraintViolation

      public ConstraintViolation(String path, String propertyName, String message)
      Create the ConstraintViolation with the given path, property and message.
  • Method Details

    • path

      public String path()
      Return the path for this constraint violation
    • propertyName

      public String propertyName()
      Return the property name for this constraint violation
    • message

      public String message()
      Return the interpolated error message for this constraint violation
    • toString

      public String toString()
      Overrides:
      toString in class Object