public final class Wrap extends Object
SQLException so that
it throws UncheckedSqlException instead.| Modifier and Type | Method and Description |
|---|---|
static void |
execute(SqlAction action)
Executes a possibly throwing code, wrapping any
SQLException into
a UncheckedSqlException. |
static <T> T |
get(SqlSupplier<T> supplier)
Executes a possibly throwing code and returns the result, wrapping any
SQLException into a UncheckedSqlException. |
public static void execute(SqlAction action) throws UncheckedSqlException
SQLException into
a UncheckedSqlException.action - the action to executeUncheckedSqlException - if an SQLException was thrownpublic static <T> T get(SqlSupplier<T> supplier) throws UncheckedSqlException
SQLException into a UncheckedSqlException.T - the type of the object returnedsupplier - the action to executeUncheckedSqlException - if an SQLException was thrownCopyright © 2019. All rights reserved.