public static List < String > createBacktrace ( final Throwable t ) { final List < String > bTrace = new LinkedList < String > ( ) ; for ( final StackTraceElement ste : t . getStackTrace ( ) ) { bTrace . add ( BT_PREFIX + ste . toString ( ) ) ; } if ( t . getCause ( ) != null ) { addCauseToBacktrace ( t . getCause ( ) , bTrace ) ; } return bTrace ; }
Creates a Resque backtrace from a Throwable s stack trace . Includes causes .