| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Error | |
| public static RuntimeException | |
| public static Exception | |
| public static void | visitUnboxedExceptionsRecursively(Throwable
the exception to visit t, Consumer<Exception> the callback to apply to every subsequently visited exception visitor)Unboxes the specified throwable and its suppressed throwables recursively. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ExceptionBox | back to summary |
|---|---|
| private ExceptionBox(Exception ex) | |
| reachedUnreachable | back to summary |
|---|---|
| public static Error reachedUnreachable() | |
| toUnchecked | back to summary |
|---|---|
| public static RuntimeException toUnchecked(Exception ex) | |
| unbox | back to summary |
|---|---|
| public static Exception unbox(Throwable t) | |
| visitUnboxedExceptionsRecursively | back to summary |
|---|---|
| public static void visitUnboxedExceptionsRecursively(Throwable t, Consumer<Exception> visitor) Unboxes the specified throwable and its suppressed throwables recursively.
Calls Throwables will be traversed in the "cause before consequence" order. E.g.: say exception "A" suppresses exceptions "B" and "C", and "B" suppresses "D". The traverse order will be "D", "B", "C", "A".
If the method encounters cyclic suppressed throwables, it will fall into an
infinite recursion loop, eventually causing a
If the specified throwable or any of its nested suppressed throwables are of
type | |