| Modifier and Type | Method and Description |
|---|---|
static <T extends Throwable> |
addSuppressed(T primary,
Throwable suppressed)
Helper to access
Throwable.addSuppressed(Throwable) easily in code that is checked against the Java 1.6
signatures. |
static <T extends Throwable,T1 extends T,T2 extends T> |
chain(T1 e1,
T2 e2)
Allows building a chain of exceptions.
|
@IgnoreJRERequirement @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static <T extends Throwable> T addSuppressed(T primary, Throwable suppressed)
Throwable.addSuppressed(Throwable) easily in code that is checked against the Java 1.6
signatures.@CheckForNull public static <T extends Throwable,T1 extends T,T2 extends T> T chain(@CheckForNull T1 e1, @CheckForNull T2 e2)
T - The widened return type.T1 - The type of first exception.T2 - The type of second exception.e1 - The first exception (or null).e2 - The second exception (or null).Copyright © 2004–2018. All rights reserved.