Class StackTraceUtil

java.lang.Object
org.newsclub.net.unix.StackTraceUtil

public final class StackTraceUtil extends Object
Internal helper class to dump stack traces when deemed appropriate. NOTE: For junit testing classes, use kohlschutter-test-util's TestStackTraceUtil.
Author:
Christian Kohlschütter
  • Method Details

    • printStackTrace

      public static void printStackTrace(Throwable t)
      Print/Log the stack trace of the given Throwable.
      Parameters:
      t - The throwable to log.
    • printStackTraceSevere

      public static void printStackTraceSevere(Throwable t)
      Print/Log the stack trace of the given Throwable, marking this entry as a "severe condition".
      Parameters:
      t - The throwable to log.