org.zalando.fauxpas.ThrowingBiConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of faux-pas Show documentation
Show all versions of faux-pas Show documentation
Error handling in Functional Programming
The newest version!
package org.zalando.fauxpas;
import lombok.SneakyThrows;
import org.apiguardian.api.API;
import java.util.function.BiConsumer;
import static org.apiguardian.api.API.Status.STABLE;
@API(status = STABLE)
@FunctionalInterface
public interface ThrowingBiConsumer extends BiConsumer {
void tryAccept(T t, U u) throws X;
@Override
@SneakyThrows
default void accept(final T t, final U u) {
tryAccept(t, u);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy