@NotThreadSafe public interface Problems
Modifier and Type | Method and Description |
---|---|
void |
recordError(Path path,
String message)
Record an error at the given path in a document.
|
void |
recordError(Path path,
String message,
Throwable exception)
Record an error at the given path in a document.
|
void |
recordSuccess()
Record a successful validation.
|
void |
recordTypeMismatch(Path path,
String message,
JsonSchema.Type actualType,
Object actualValue,
JsonSchema.Type requiredType,
Object convertedValue)
Record a field value was encountered whose type was not the expected type but could be converted to the expected type.
|
void |
recordWarning(Path path,
String message)
Record a warning at the given path in a document.
|
void recordSuccess()
void recordError(Path path, String message)
path
- the path; may not be nullmessage
- the message describing the error; may not be nullvoid recordError(Path path, String message, Throwable exception)
path
- the path; may not be nullmessage
- the message describing the error; may not be nullexception
- the exception that occurred and that is considered the causevoid recordWarning(Path path, String message)
path
- the path; may not be nullmessage
- the message describing the warning; may not be nullvoid recordTypeMismatch(Path path, String message, JsonSchema.Type actualType, Object actualValue, JsonSchema.Type requiredType, Object convertedValue)
path
- the path; may not be nullmessage
- the message describing the warning; may not be nullactualType
- the actual type of the field value; may not be nullactualValue
- the actual field valuerequiredType
- the expected type; may not be nullconvertedValue
- the converted valueCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.