kactoos-jvm / nnl.rocks.kactoos.scalar / 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.
T
- Type of result.
E
- Type of exception.
origin
- Original scalar.
func
- Function that wraps exception.
Since 0.4
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. |
Name | Summary |
---|---|
invoke | fun invoke(): T Get value of this Scalar |