kactoos-jvm / nnl.rocks.kactoos.func / CheckedFunc
class CheckedFunc<X : Any, Y : Any, E> : Func<X, Y>
Func that throws exception of specified type.
X - Type of input
Y - Type of output
E - Exception’s type
origin - Original func
func - Function that wraps exceptions.
Since 0.4
| Name | Summary |
|---|---|
| <init> | CheckedFunc(origin: KFunc<X, Y>, func: KFunc<Exception, E>)Func that throws exception of specified type. |
| Name | Summary |
|---|---|
| apply | fun apply(input: X): YApply it. |