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
RuntimeException
public static <V,E extends Exception> V wrapAnyException(Callable<V> callable, WithException<E> wrapper) throws E extends Exception
E extends Exception
public static void throwAsRuntimeException(Exception throwable)
public static <E extends RuntimeException> void throwException(Exception throwable, WithException<E> wrapper) throws E extends RuntimeException
E extends RuntimeException
Copyright © 2009–2017 tempus-fugit committers. All rights reserved.