@FunctionalInterface public interface Code
Modifier and Type | Method and Description |
---|---|
void |
run()
Execute the code block without trapping exceptions.
|
static <T> T |
sneakyThrow(Throwable e)
Use type erasure to throw checked exceptions without declaring them,
bypassing compiler checks.
|
static <E extends Throwable,T> |
sneakyThrow0(Throwable t)
Use type erasure to throw checked exceptions without declaring them,
bypassing compiler checks.
|
static <T> T |
unchecked(Callable<T> callable)
Execute the callable without trapping checked exceptions.
|
static <T> T |
unchecked(Callable<T> callable,
Code _finally)
Execute the callable without trapping checked exceptions.
|
static void |
unchecked(Code code)
Execute the code block without trapping checked exceptions.
|
static void |
unchecked(Code code,
Code _finally)
Execute the code block without trapping checked exceptions.
|
static <T> T |
wrapThrow(Callable<T> callable)
Execute the callable wrapping checked exceptions inside a
RuntimeException.
|
static <T> T |
wrapThrow(Callable<T> callable,
Code _finally)
Execute the callable wrapping checked exceptions inside a
RuntimeException.
|
static void |
wrapThrow(Code code)
Execute the code block wrapping checked exceptions inside a
RuntimeException.
|
static void |
wrapThrow(Code code,
Code _finally)
Execute the code block wrapping checked exceptions inside a
RuntimeException.
|
void run() throws Exception
Exception
static <T> T wrapThrow(Callable<T> callable)
static void wrapThrow(Code code)
static <T> T wrapThrow(Callable<T> callable, Code _finally)
static void wrapThrow(Code code, Code _finally)
static <T> T unchecked(Callable<T> callable)
static void unchecked(Code code)
static <T> T unchecked(Callable<T> callable, Code _finally)
static void unchecked(Code code, Code _finally)
static <T> T sneakyThrow(Throwable e)
Copyright © 2015–2016 SYSTAP, LLC DBA Blazegraph. All rights reserved.