org.fest.util
Class Throwables

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

public final class Throwables
extends Object

Understands utility methods related to Throwables.

Author:
Alex Ruiz

Method Summary
static void appendCurrentThreadStackTraceToThrowable(Throwable t, String methodToStartFrom)
          Appends the stack trace of the current thread to the one in the given Throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.