@ParametersAreNonnullByDefault public final class Throwables extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends Throwable> |
chain(T t,
Throwable newRootCause)
This method will clone the exception t and will set a new root cause.
|
static Throwable[] |
getSuppressed(Throwable t) |
static <T extends Throwable> |
suppress(T t,
Throwable suppressed)
Functionality equivalent for java 1.7 Throwable.addSuppressed.
|
public static <T extends Throwable> T chain(T t, Throwable newRootCause)
T
- t
- newRootCause
- @CheckReturnValue public static <T extends Throwable> T suppress(@Nonnull T t, @Nonnull Throwable suppressed)
T
- t
- suppressed
- Copyright © 2014. All rights reserved.