Kactoos

kactoos-jvm / nnl.rocks.kactoos.scalar / CheckedScalar

CheckedScalar

class CheckedScalar<T : Any, E> : Scalar<T>

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

Constructors

Name Summary
<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.

Functions

Name Summary
invoke fun invoke(): T
Get value of this Scalar