public final class Rethrow extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
asUnchecked(Throwable t)
Checks whether given throwable is unchecked and if not, it will be wrapped in RuntimeException
|
static void |
asUnchecked(Throwable t,
Class<? extends RuntimeException> checkedExceptionWrapper)
Checks whether given throwable is unchecked and if not, it will be wrapped as unchecked exception of given type
|
static Throwable |
getOriginalCause(Throwable e)
Retrieves original cause from a stack of exceptions bound together with
Throwable.getCause() references. |
public static void asUnchecked(Throwable t)
public static void asUnchecked(Throwable t, Class<? extends RuntimeException> checkedExceptionWrapper)
public static Throwable getOriginalCause(Throwable e)
Throwable.getCause() references.Copyright © 2019 JBoss by Red Hat. All rights reserved.