org.everit.json.schema.EarlyFailingFailureReporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of everit-json-schema Show documentation
Show all versions of everit-json-schema Show documentation
Implementation of the JSON Schema Core Draft v4 specification built with the org.json API
package org.everit.json.schema;
class EarlyFailingFailureReporter extends ValidationFailureReporter {
public EarlyFailingFailureReporter(Schema schema) {
super(schema);
}
@Override public void failure(ValidationException exc) {
throw exc;
}
@Override public void validationFinished() {
}
@Override ValidationException inContextOfSchema(Schema schema, Runnable task) {
try {
return super.inContextOfSchema(schema, task);
} catch (ValidationException e) {
return e;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy