- Type Parameters:
E
- the type of the error
public interface Raise<E>
Port from arrow-kt Raise
Raise
- Author:
- Raul Raja
-
Method Summary
Modifier and TypeMethodDescriptiondefault <A> A
bindstatic <E,
A, B> B fold
(Function<Raise<? super E>, ? extends A> block, Function<Throwable, B> catchBlock, Function<? super E, ? extends B> recoverBlock, Function<A, B> transformBlock) foldstatic <E,
A, B> B foldOrThrow
(Function<Raise<? super E>, ? extends A> block, Function<? super E, ? extends B> recoverBlock, Function<A, B> transformBlock) foldOrThrow<A> A
raise method
-
Method Details
-
raise
raise method- Type Parameters:
A
- a description- Parameters:
error
- error description- Returns:
- a a
-
bind
-
foldOrThrow
-
fold
static <E,A, B foldB> (Function<Raise<? super E>, ? extends A> block, Function<Throwable, B> catchBlock, Function<? super E, ? extends B> recoverBlock, Function<A, B> transformBlock) fold- Type Parameters:
E
- eA
- aB
- b- Parameters:
block
- blockcatchBlock
- catchBlockrecoverBlock
- recoverBlocktransformBlock
- transformBlock- Returns:
- b
-