java.lang.Object
io.avaje.http.api.ValidationException.Violation
- Enclosing class:
ValidationException
Error details including the field, error message and path
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetField()
Return the field for this error message.Return the error message.getPath()
Return the path of this error message.void
Set the field for this error.void
setMessage
(String message) Set the error message.void
Set the path for this error.
-
Field Details
-
path
-
field
-
message
-
-
Constructor Details
-
Violation
Create with path, field and message -
Violation
public Violation()Default constructor just to help Jackson if it is used.
-
-
Method Details
-
getPath
Return the path of this error message. -
getField
Return the field for this error message. -
getMessage
Return the error message. -
setPath
Set the path for this error. -
setField
Set the field for this error. -
setMessage
Set the error message.
-