Kactoos

kactoos-jvm / nnl.rocks.kactoos.scalar / FallbackFrom / <init>

<init>

FallbackFrom(exp: Class<out Throwable>, func: KFunc<Throwable, T>)FallbackFrom(exceptions: Iterable<Class<out Throwable>>, func: KFunc<Throwable, T>)

Fallback from exception.

There is no thread-safety guarantee.

Parameters

T - Type of result

exceptions - The list of exceptions supported by this instance.

func - Function that converts exceptions to the required type.

Since 0.4