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

com.dimajix.shaded.everit.schema.EarlyFailingFailureReporter Maven / Gradle / Ivy

There is a newer version: 1.2.0-synapse3.3-spark3.3-hadoop3.3
Show newest version
package com.dimajix.shaded.everit.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