code: public static <T, U> BiConsumer<T, U> biConsumer(CheckedBiConsumer<T, U> consumer, Consumer<Throwable> handler) {
          return (t, u) -> {
              try {
                  consumer.accept(t, u);
              }
              catch (Throwable e) {
                  handler.accept(e);
  
                  throw new IllegalStateException("Exception handler must throw a RuntimeException", e);
              }
          };
      }
docs: Wrap a {@link CheckedBiConsumer} in a {@link BiConsumer} with a custom handler for checked exceptions.
  <p>
  Example:
  <code><pre>
  map.forEach(Unchecked.biConsumer(
  (k, v) -> {
  if (k == null || v == null)
  throw new Exception("No nulls allowed in map");
  },
  e -> {
  throw new IllegalStateException(e);
  }
  ));
  </pre></code>