spock.util
public abstract class Exceptions extends Object
Constructor and Description |
---|
Exceptions() |
Modifier and Type | Method and Description |
---|---|
static List<Throwable> |
getCauseChain(Throwable exception)
Returns a list of all causes of the specified exception.
|
static Throwable |
getRootCause(Throwable exception)
Returns the innermost cause of the specified exception.
|
public static Throwable getRootCause(Throwable exception)
exception
- an exceptionpublic static List<Throwable> getCauseChain(Throwable exception)
exception
- an exception