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);
}
}