Uses of Interface
com.github.collinalpert.java2db.utilities.ThrowableSupplier
| Package | Description |
|---|---|
| com.github.collinalpert.java2db.utilities |
-
Uses of ThrowableSupplier in com.github.collinalpert.java2db.utilities
Methods in com.github.collinalpert.java2db.utilities with parameters of type ThrowableSupplier Modifier and Type Method Description static <V> java.util.function.Supplier<V>Utilities. supplierHandling(ThrowableSupplier<V,java.sql.SQLException> supplier, java.util.function.Consumer<java.sql.SQLException> exceptionHandling)Handles anSQLExceptionthat gets thrown inside aSupplier.static <T, E extends java.lang.Throwable>
TUtilities. tryGetValue(ThrowableSupplier<T,E> supplier)Tries to execute a supplier and retrieve its value while considering a checked exception that could occur.