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 RunnableUtilities. runnableHandling(ThrowableRunnable<SQLException> runnable, Consumer<SQLException> exceptionHandling)Handles anSQLExceptionthat gets thrown inside aRunnable.static <E extends Throwable>
voidUtilities. tryAction(ThrowableRunnable<E> runnable)Tries to perform a certain action while considering a checked exception that could occur.