public class ExceptionUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ExceptionUtil.CheckedBiConsumer<T,U> |
static interface |
ExceptionUtil.CheckedBiFunction<T,U,R> |
static interface |
ExceptionUtil.CheckedFunction<T,R> |
static interface |
ExceptionUtil.CheckedRunnable |
static interface |
ExceptionUtil.CheckedSupplier<T> |
| Constructor and Description |
|---|
ExceptionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
recursiveFind(Throwable th,
Class<T> expectedClz) |
static void |
rethrowSQLException(ExceptionUtil.CheckedRunnable checked) |
static <T> T |
rethrowSQLException(ExceptionUtil.CheckedSupplier<T> checked) |
static RuntimeException |
unchecked(Exception checked) |
static <T,U,R> BiFunction<T,U,R> |
unchecked(ExceptionUtil.CheckedBiFunction<T,U,R> checked) |
static <T,R> Function<T,R> |
unchecked(ExceptionUtil.CheckedFunction<T,R> checked) |
static <T> Supplier<T> |
unchecked(ExceptionUtil.CheckedSupplier<T> checked) |
public static RuntimeException unchecked(Exception checked)
public static <T,R> Function<T,R> unchecked(ExceptionUtil.CheckedFunction<T,R> checked)
public static <T,U,R> BiFunction<T,U,R> unchecked(ExceptionUtil.CheckedBiFunction<T,U,R> checked)
public static <T> Supplier<T> unchecked(ExceptionUtil.CheckedSupplier<T> checked)
public static void rethrowSQLException(ExceptionUtil.CheckedRunnable checked) throws ClickHouseSQLException
ClickHouseSQLExceptionpublic static <T> T rethrowSQLException(ExceptionUtil.CheckedSupplier<T> checked) throws ClickHouseSQLException
ClickHouseSQLExceptionCopyright © 2021. All rights reserved.