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

sdmxdl.ErrorListener Maven / Gradle / Ivy

package sdmxdl;

import lombok.NonNull;

import java.io.IOException;
import java.util.function.BiConsumer;

@FunctionalInterface
public interface ErrorListener {

    void accept(@NonNull S source, @NonNull String marker, @NonNull CharSequence message, @NonNull IOException error);

    default @NonNull BiConsumer asBiConsumer(@NonNull S source, @NonNull String marker) {
        return (message, error) -> accept(source, marker, message, error);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy