public final class MoreThrowables
extends java.lang.Object
Throwable
instances.Modifier and Type | Method and Description |
---|---|
static void |
addSuppressed(java.lang.Throwable throwable,
java.lang.Iterable<? extends java.lang.Throwable> suppressions) |
static void |
addSuppressed(java.lang.Throwable throwable,
com.google.common.base.Optional<? extends java.lang.Throwable> suppressed) |
static <T extends java.lang.Throwable> |
initializeCause(T throwable,
com.google.common.base.Optional<? extends java.lang.Throwable> cause) |
static <T extends java.lang.Throwable> |
initializeCause(T throwable,
java.lang.Throwable cause) |
static <T extends java.lang.Throwable> |
initializeSuppressor(T suppressor,
java.lang.Iterable<? extends java.lang.Throwable> suppressions) |
static <T extends java.lang.Throwable> |
initializeSuppressor(T suppressor,
java.lang.Throwable suppressed) |
public static <T extends java.lang.Throwable> T initializeCause(T throwable, @Nullable java.lang.Throwable cause)
public static <T extends java.lang.Throwable> T initializeCause(T throwable, com.google.common.base.Optional<? extends java.lang.Throwable> cause)
public static <T extends java.lang.Throwable> T initializeSuppressor(T suppressor, java.lang.Throwable suppressed)
public static <T extends java.lang.Throwable> T initializeSuppressor(T suppressor, java.lang.Iterable<? extends java.lang.Throwable> suppressions)
public static void addSuppressed(java.lang.Throwable throwable, com.google.common.base.Optional<? extends java.lang.Throwable> suppressed)
public static void addSuppressed(java.lang.Throwable throwable, java.lang.Iterable<? extends java.lang.Throwable> suppressions)