public final class CheckedExceptionToRuntime
extends java.lang.Object
RuntimeException| Modifier and Type | Class and Description |
|---|---|
static interface |
CheckedExceptionToRuntime.Action |
static interface |
CheckedExceptionToRuntime.Func<T> |
| Constructor and Description |
|---|
CheckedExceptionToRuntime() |
| Modifier and Type | Method and Description |
|---|---|
static void |
toRuntime(CheckedExceptionToRuntime.Action function)
Promotes any exceptions thrown to
RuntimeException |
static <T> T |
toRuntime(CheckedExceptionToRuntime.Func<T> function)
Promotes any exceptions thrown to
RuntimeException |
public static <T> T toRuntime(CheckedExceptionToRuntime.Func<T> function)
RuntimeExceptionT - Return typefunction - Function to runpublic static void toRuntime(CheckedExceptionToRuntime.Action function)
RuntimeExceptionfunction - Function to run