| 
 | ModeShape Distribution 3.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@NotThreadSafe public interface Problems
An interface for recording problems.
| Method Summary | |
|---|---|
|  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. | 
| Method Detail | 
|---|
void recordSuccess()
void recordError(Path path,
                 String message)
path - the path; may not be nullmessage - the message describing the error; may not be null
void 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 cause
void recordWarning(Path path,
                   String message)
path - the path; may not be nullmessage - the message describing the warning; may not be null
void 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 value| 
 | ModeShape Distribution 3.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||