corda / net.corda.core / com.google.common.util.concurrent.SettableFuture

Extensions for com.google.common.util.concurrent.SettableFuture

catch fun <T> SettableFuture<T>.catch(block: () -> T): Unit

Executes the given block and sets the future to either the result, or any exception that was thrown.