All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.everit.json.schema.EarlyFailingFailureReporter Maven / Gradle / Ivy

Go to download

Implementation of the JSON Schema Core Draft v4 specification built with the org.json API

There is a newer version: 1.14.4
Show 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 - 2024 Weber Informatics LLC | Privacy Policy