Package org.fest.util

Class Throwables

java.lang.Object
org.fest.util.Throwables

public final class Throwables extends Object
Understands utility methods related to Throwables.
  • Constructor Details

    • Throwables

      private Throwables()
  • Method Details

    • appendCurrentThreadStackTraceToThrowable

      public static void appendCurrentThreadStackTraceToThrowable(Throwable t, String methodToStartFrom)
      Appends the stack trace of the current thread to the one in the given Throwable.
      Parameters:
      t - the given Throwable.
      methodToStartFrom - the name of the method used as the starting point of the current thread's stack trace.
    • currentThreadStackTrace

      private static List<StackTraceElement> currentThreadStackTrace(String methodToStartFrom)
    • stackTraceInCurrentThread

      private static List<StackTraceElement> stackTraceInCurrentThread()