Utilities to simplify work with Exceptional information
Utility class that simplifies working with exceptions
A function with an expected result of a given type that always throws the passed exception
Method always throws the passed exception
Rethrow if throwable is instance of InterruptedException or ignore in any other case
Getting a significant cause from a Runtime Exception
Textual representation of Exception message text
Utility class that makes it easier to work with hiding thrown exceptions
Transform Callable to Supplier with sneaky throw
public static <V> Supplier<V> supplier(@NonNull Callable<V> call);
Transform Functional to Function with sneaky throw
public static <P,R> Function<P,R> function(@NonNull Functional<P,R> functional);
Transform BiFunctional to BiFunction with sneaky throw
public static <P, Q, R> BiFunction<P,Q,R> bifunction(@NonNull BiFunctional<P, Q, R> functional);
Transform Processable to Runnable with sneaky throw
public static Runnable runnable(@NonNull Processable processor);
Transform Consumable to Consumer with sneaky throw
public static <P> Consumer<P> consumer(@NonNull Consumable<P> consumable);
Transform BiConsumable to BiConsumer with sneaky throw
public static <P, Q> BiConsumer<P, Q> biconsumer(@NonNull BiConsumable<P, Q> consumable);
Copyright © 2017-2024 Andrey D. Shindarev. All rights reserved.