
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 org.everit.json.schema Show documentation
Show all versions of org.everit.json.schema Show documentation
This is a fork of the implementation of the JSON Schema Core Draft v4 specification built with the org.json API which also supports internationalization
The newest version!
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 - 2025 Weber Informatics LLC | Privacy Policy