Package com.suncode.pwfl.util
Class Exceptions
java.lang.Object
com.suncode.pwfl.util.Exceptions
Utility class to handle exceptions.
- Author:
- Cezary Kozar
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Throwable>
voidrethrow
(Exceptions.Action action, Function<Throwable, E> mapper) static boolean
safe
(Exceptions.Action action) static <T> T
static <T> T
static <T> T
sneakyThrows
(Callable<T> supplier)
-
Constructor Details
-
Exceptions
public Exceptions()
-
-
Method Details
-
sneakyThrows
-
safe
-
rethrow
public static <E extends Throwable> void rethrow(Exceptions.Action action, Function<Throwable, E> mapper) throws E- Throws:
E extends Throwable
-
silent
-
safe
-