public final class CheckedExceptionWrapper
extends java.lang.RuntimeException
Workflow.wrap(Exception) inside a workflow code and Activity.wrap(Throwable) inside an activity code instead.| Modifier and Type | Method and Description |
|---|---|
static java.lang.Throwable |
unwrap(java.lang.Throwable e)
Removes CheckedException wrapper from the whole chain of Exceptions.
|
static java.lang.RuntimeException |
wrap(java.lang.Throwable e)
Returns CheckedExceptionWrapper if e is checked exception.
|
public static java.lang.RuntimeException wrap(java.lang.Throwable e)
try {
return someCall();
} catch (Exception e) {
throw CheckedExceptionWrapper.wrap(e);
}
public static java.lang.Throwable unwrap(java.lang.Throwable e)