Class ConfluenceStackTraceRenderer

java.lang.Object
com.atlassian.confluence.impl.logging.ConfluenceStackTraceRenderer

public final class ConfluenceStackTraceRenderer extends Object
Since:
7.14
  • Method Details

    • renderStackTrace

      public static CharSequence renderStackTrace(Throwable t)
      Renders a Throwable as a CharSequence, using a Confluence-specific algorithm.
    • getNonCauseUnderlying

      public static @Nullable Throwable getNonCauseUnderlying(Throwable t)
      Find the first underlying exception of t which you *can't* get by simply calling getCause() n times.
      Returns:
      the underlying exception, or null if there isn't one.