Class StacktraceUtils

java.lang.Object
com.renomad.minum.utils.StacktraceUtils

public final class StacktraceUtils extends Object
Helper functions for manipulating stack traces.
  • Method Details

    • stackTraceToString

      public static String stackTraceToString(Throwable ex)
      grabs the stacktrace out of a Throwable as a string
    • stackTraceToString

      public static String stackTraceToString(StackTraceElement[] elements)
      Converts an array of StackTraceElement to a single string, joining them with a semicolon as delimiter. This way our stacktrace becomes a single line.