Class ThrowableSelectors

java.lang.Object
net.logstash.logback.composite.loggingevent.ThrowableSelectors

public class ThrowableSelectors extends Object
Utilities to obtain Throwables from IThrowableProxies.
  • Constructor Details

    • ThrowableSelectors

      public ThrowableSelectors()
  • Method Details

    • rootCause

      public static IThrowableProxy rootCause(IThrowableProxy throwable)
      Returns the innermost cause of throwable.
      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, or null if there is a loop in the causal chain.
      Throws:
      NullPointerException - if throwable is null