Kactoos

kactoos-jvm / nnl.rocks.kactoos.func / CheckedFunc / <init>

<init>

CheckedFunc(origin: KFunc<X, Y>, func: KFunc<Exception, E>)

Func that throws exception of specified type.

Parameters

X - Type of input

Y - Type of output

E - Exception’s type

origin - Original func

func - Function that wraps exceptions.

Since 0.4