Kactoos

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

CheckedProc

class CheckedProc<X : Any, E> : Proc<X>

Proc that throws exception of specified type.

Parameters

X - Type of input

E - Exception’s type

origin - Original proc

func - Function that wraps exceptions.

Since 0.4

Constructors

Name Summary
<init> CheckedProc(origin: KProc<X>, func: KFunc<Exception, E>)
Proc that throws exception of specified type.

Functions

Name Summary
exec fun exec(input: X): Unit
Execute it.