On this page

Functions.FailableConsumer

@Deprecated @FunctionalInterface public abstract static interface org.apache.commons.lang3.Functions.FailableConsumer<O, T extends Throwable>[source]

A functional interface like Consumer that declares a Throwable.

TODO for 4.0: Move to org.apache.commons.lang3.function.

Parameters:
  • <O> – Consumed type 1.

  • <T> – Thrown exception.

Methods

accept(Object)

Accepts the consumer.

public abstract void accept(O object) throws T[source]

Accepts the consumer.

Parameters:

object – The parameter for the consumable to accept

Throws:

T – Thrown when the consumer fails.