Class ValidationException.Violation

java.lang.Object
io.avaje.http.api.ValidationException.Violation
All Implemented Interfaces:
Serializable
Enclosing class:
ValidationException

public static class ValidationException.Violation extends Object implements Serializable
Error details including the field, error message and path
See Also:
  • Field Details

    • path

      protected String path
    • field

      protected String field
    • message

      protected String message
  • Constructor Details

    • Violation

      public Violation(String path, String field, String message)
      Create with path, field and message
    • Violation

      public Violation()
      Default constructor just to help Jackson if it is used.
  • Method Details

    • getPath

      public String getPath()
      Return the path of this error message.
    • getField

      public String getField()
      Return the field for this error message.
    • getMessage

      public String getMessage()
      Return the error message.