Class ThrowableSelectors
java.lang.Object
net.logstash.logback.composite.loggingevent.ThrowableSelectors
Utilities to obtain
Throwables
from IThrowableProxies
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IThrowableProxy
rootCause
(IThrowableProxy throwable) Returns the innermost cause ofthrowable
.
-
Constructor Details
-
ThrowableSelectors
public ThrowableSelectors()
-
-
Method Details
-
rootCause
Returns the innermost cause ofthrowable
.- Parameters:
throwable
- the throwable for which to find the root cause- Returns:
- the innermost cause, which may be
throwable
itself if there is no cause, ornull
if there is a loop in the causal chain. - Throws:
NullPointerException
- ifthrowable
isnull
-