FailableCallable

@FunctionalInterface public abstract interface org.apache.commons.lang3.function.FailableCallable<R, E extends Throwable>[source]

A functional interface like java.util.concurrent.Callable that declares a Throwable.

Parameters:
  • <R> – Return type.

  • <E> – The kind of thrown exception or error.

Since:

3.11

Methods

call()

Calls the callable.

public abstract R call() throws E[source]

Calls the callable.

Returns:

The value returned from the callable

Throws:

E – Thrown if the callable fails.