public class Try
extends java.lang.Object
Constructor and Description |
---|
Try() |
Modifier and Type | Method and Description |
---|---|
static <A,E extends java.lang.Exception> |
f(Try0<A,E> t)
Promotes the TryCatch0 to a Validation that returns an Exception on the failure side and its result on the success side.
|
static <A,B,E extends java.lang.Exception> |
f(Try1<A,B,E> t)
Promotes the TryCatch1 to a Validation that returns an Exception on the failure side and its result on the success side.
|
static <A,B,C,E extends java.lang.Exception> |
f(Try2<A,B,C,E> t)
Promotes the TryCatch2 to a Validation that returns an Exception on the failure side and its result on the success side.
|
static <A,B,C,D,E extends java.lang.Exception> |
f(Try3<A,B,C,D,E> t)
Promotes the TryCatch3 to a Validation that returns an Exception on the failure side and its result on the success side.
|
static <A,B,C,D,E,Z extends java.lang.Exception> |
f(Try4<A,B,C,D,E,Z> t)
Promotes the TryCatch4 to a Validation that returns an Exception on the failure side and its result on the success side.
|
static <A,B,C,D,E,F,Z extends java.lang.Exception> |
f(Try5<A,B,C,D,E,F,Z> t)
Promotes the TryCatch5 to a Validation that returns an Exception on the failure side and its result on the success side.
|
static <A,B,C,D,E,F,G,Z extends java.lang.Exception> |
f(Try6<A,B,C,D,E,F,G,Z> t)
Promotes the TryCatch6 to a Validation that returns an Exception on the failure side and its result on the success side.
|
static <A,B,C,D,E,F,G,H,Z extends java.lang.Exception> |
f(Try7<A,B,C,D,E,F,G,H,Z> t)
Promotes the TryCatch7 to a Validation that returns an Exception on the failure side and its result on the success side.
|
static <A,B,C,D,E,F,G,H,I,Z extends java.lang.Exception> |
f(Try8<A,B,C,D,E,F,G,H,I,Z> t)
Promotes the TryCatch8 to a Validation that returns an Exception on the failure side and its result on the success side.
|
static <A> IO<A> |
io(Try0<A,? extends java.io.IOException> t) |
public static <A,E extends java.lang.Exception> P1<Validation<E,A>> f(Try0<A,E> t)
t
- A TryCatch0 to promotepublic static <A,B,E extends java.lang.Exception> F<A,Validation<E,B>> f(Try1<A,B,E> t)
t
- A TryCatch1 to promotepublic static <A,B,C,E extends java.lang.Exception> F2<A,B,Validation<E,C>> f(Try2<A,B,C,E> t)
t
- A TryCatch2 to promotepublic static <A,B,C,D,E extends java.lang.Exception> F3<A,B,C,Validation<E,D>> f(Try3<A,B,C,D,E> t)
t
- A TryCatch3 to promotepublic static <A,B,C,D,E,Z extends java.lang.Exception> F4<A,B,C,D,Validation<Z,E>> f(Try4<A,B,C,D,E,Z> t)
t
- A TryCatch4 to promotepublic static <A,B,C,D,E,F,Z extends java.lang.Exception> F5<A,B,C,D,E,Validation<Z,F>> f(Try5<A,B,C,D,E,F,Z> t)
t
- A TryCatch5 to promotepublic static <A,B,C,D,E,F,G,Z extends java.lang.Exception> F6<A,B,C,D,E,F,Validation<Z,G>> f(Try6<A,B,C,D,E,F,G,Z> t)
t
- A TryCatch6 to promotepublic static <A,B,C,D,E,F,G,H,Z extends java.lang.Exception> F7<A,B,C,D,E,F,G,Validation<Z,H>> f(Try7<A,B,C,D,E,F,G,H,Z> t)
t
- A TryCatch7 to promotepublic static <A,B,C,D,E,F,G,H,I,Z extends java.lang.Exception> F8<A,B,C,D,E,F,G,H,Validation<Z,I>> f(Try8<A,B,C,D,E,F,G,H,I,Z> t)
t
- A TryCatch8 to promote