public class ThrowableSelectors extends Object
Throwables
from IThrowableProxies
.Constructor and Description |
---|
ThrowableSelectors() |
Modifier and Type | Method and Description |
---|---|
static IThrowableProxy |
rootCause(IThrowableProxy throwable)
Returns the innermost cause of
throwable . |
public static IThrowableProxy rootCause(IThrowableProxy throwable)
throwable
.throwable
- the throwable for which to find the root causethrowable
itself if there
is no cause, or null
if there is a loop in the causal chain.NullPointerException
- if throwable
is null
Copyright © 2013–2022. All rights reserved.