Kactoos

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

<init>

CheckedScalar(origin: KScalar<T>, func: KFunc<Exception, E>)

Scalar that wraps an original checked exception thrown by the origin using the given wrapping function.

There is no thread-safety guarantee.

Parameters

T - Type of result.

E - Type of exception.

origin - Original scalar.

func - Function that wraps exception.

Since 0.4