Package io.kestra.core.utils
Class Rethrow
java.lang.Object
io.kestra.core.utils.Rethrow
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceRethrow.BiConsumerChecked<K,V, E extends Exception> static interfacestatic interfaceRethrow.CallableChecked<R,E extends Exception> static interfaceRethrow.ConsumerChecked<T,E extends Exception> static interfaceRethrow.FunctionChecked<T,R, E extends Exception> static interfaceRethrow.PredicateChecked<T,E extends Exception> static interfaceRethrow.RunnableChecked<E extends Exception>static interfaceRethrow.SupplierChecked<T,E extends Exception> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V, E extends Exception>
BiConsumer<K,V> throwBiConsumer(Rethrow.BiConsumerChecked<K, V, E> consumer) static <A,B, R, E extends Exception>
BiFunction<A,B, R> throwBiFunction(Rethrow.BiFunctionChecked<A, B, R, E> function) throwCallable(Rethrow.CallableChecked<R, E> runnable) throwConsumer(Rethrow.ConsumerChecked<T, E> consumer) throwFunction(Rethrow.FunctionChecked<T, R, E> function) throwPredicate(Rethrow.PredicateChecked<T, E> consumer) throwRunnable(Rethrow.RunnableChecked<E> runnable) throwSupplier(Rethrow.SupplierChecked<T, E> supplier)
-
Constructor Details
-
Rethrow
public Rethrow()
-
-
Method Details
-
throwConsumer
public static <T,E extends Exception> Consumer<T> throwConsumer(Rethrow.ConsumerChecked<T, E> consumer) throws E- Throws:
E extends Exception
-
throwBiConsumer
public static <K,V, BiConsumer<K,E extends Exception> V> throwBiConsumer(Rethrow.BiConsumerChecked<K, V, throws EE> consumer) - Throws:
E extends Exception
-
throwSupplier
public static <T,E extends Exception> Supplier<T> throwSupplier(Rethrow.SupplierChecked<T, E> supplier) throws E- Throws:
E extends Exception
-
throwPredicate
public static <T,E extends Exception> Predicate<T> throwPredicate(Rethrow.PredicateChecked<T, E> consumer) throws E- Throws:
E extends Exception
-
throwFunction
public static <T,R, Function<T,E extends Exception> R> throwFunction(Rethrow.FunctionChecked<T, R, throws EE> function) - Throws:
E extends Exception
-
throwBiFunction
public static <A,B, BiFunction<A,R, E extends Exception> B, throwBiFunctionR> (Rethrow.BiFunctionChecked<A, B, throws ER, E> function) - Throws:
E extends Exception
-
throwRunnable
public static <E extends Exception> Runnable throwRunnable(Rethrow.RunnableChecked<E> runnable) throws E - Throws:
E extends Exception
-
throwCallable
public static <R,E extends Exception> Callable<R> throwCallable(Rethrow.CallableChecked<R, E> runnable) throws E- Throws:
E extends Exception
-