On this page

Functions.FailableCallable

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

Deprecated: Use FailableCallable.

A functional interface like Callable that declares a Throwable.

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

Type parameters:
  • <R> – Return type.

  • <T> – Thrown exception.

Methods

R

call()

Calls the callable.

R call() throws T[source]

Calls the callable.

Returns:

The value returned from the callable

Throws:

T – Thrown if the callable fails.