Class ThrowableSelectors
java.lang.Object
net.logstash.logback.composite.loggingevent.ThrowableSelectors
Utilities to obtain
Throwables from IThrowableProxies.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IThrowableProxyrootCause(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
throwableitself if there is no cause, ornullif there is a loop in the causal chain. - Throws:
NullPointerException- ifthrowableisnull
-