Uses of Interface
com.github.collinalpert.java2db.utilities.ThrowableRunnable
| Package | Description |
|---|---|
| com.github.collinalpert.java2db.utilities |
-
Uses of ThrowableRunnable in com.github.collinalpert.java2db.utilities
Methods in com.github.collinalpert.java2db.utilities with parameters of type ThrowableRunnable Modifier and Type Method Description static java.lang.RunnableUtilities. runnableHandling(ThrowableRunnable<java.sql.SQLException> runnable, java.util.function.Consumer<java.sql.SQLException> exceptionHandling)Handles anSQLExceptionthat gets thrown inside aRunnable.static <E extends java.lang.Throwable>
voidUtilities. tryAction(ThrowableRunnable<E> runnable)Tries to perform a certain action while considering a checked exception that could occur.