public class ExceptionWrapper extends Object
| Constructor and Description |
|---|
ExceptionWrapper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
throwAsRuntimeException(Exception throwable) |
static <E extends RuntimeException> |
throwException(Exception throwable,
WithException<E> wrapper) |
static <V,E extends Exception> |
wrapAnyException(Callable<V> callable,
WithException<E> wrapper) |
static <V> V |
wrapAsRuntimeException(Callable<V> callable) |
public static <V> V wrapAsRuntimeException(Callable<V> callable) throws RuntimeException
RuntimeExceptionpublic static <V,E extends Exception> V wrapAnyException(Callable<V> callable, WithException<E> wrapper) throws E extends Exception
E extends Exceptionpublic static void throwAsRuntimeException(Exception throwable)
public static <E extends RuntimeException> void throwException(Exception throwable, WithException<E> wrapper) throws E extends RuntimeException
E extends RuntimeExceptionCopyright © 2009–2017 tempus-fugit committers. All rights reserved.