Kactoos

kactoos-jvm / nnl.rocks.kactoos.func / CheckedFunc

CheckedFunc

class CheckedFunc<X : Any, Y : Any, E> : Func<X, Y>

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

Constructors

Name Summary
<init> CheckedFunc(origin: KFunc<X, Y>, func: KFunc<Exception, E>)
Func that throws exception of specified type.

Functions

Name Summary
apply fun apply(input: X): Y
Apply it.