Interface IJsonValidationError
-
- All Superinterfaces:
Serializable
public interface IJsonValidationError extends Serializable
A single JSON validation error, containing a location and a message. Used byIJsonValidationResult.errors().- Since:
- 8.5.0
- See Also:
IJsonValidationResult
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcolumn()The column where the validation error occurred, if applicable.intline()The line where the validation error occurred, if applicable.Stringlocation()The location where the validation error occurred.Stringmessage()A message describing the validation error.
-
-
-
Method Detail
-
column
int column()
The column where the validation error occurred, if applicable. The first column is 1.- Returns:
- The column, or -1 if unknown.
-
line
int line()
The line where the validation error occurred, if applicable. The first line is 1.- Returns:
- The line, or -1 if unknown.
-
location
String location()
The location where the validation error occurred. Could be e.g. a JSON path or some other descriptor.- Returns:
- The location.
-
message
String message()
A message describing the validation error.- Returns:
- The message.
-
-