@Immutable public class Throwables extends Object
Throwables.| Modifier | Constructor and Description |
|---|---|
private |
Throwables() |
public static boolean contains(Throwable thiz, Throwable that)
thiz - the throwable to search for that throwable.that - the throwable to look up.true if and only if thiz is identical to
that or has been (recursively) caused by it.public static <T extends Throwable> T wrap(T t)
T - the compile time type of the throwable to return.t - the throwable to wrap in a new instance of the same class.t
with its cause initialized to
t.IllegalArgumentException - If the class of the throwable t
does not have a public constructor with a single string
parameter or the cause of the new instance cannot get
initialized to t.Copyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.