question: private static String stackTraceToString ( Throwable t ) { final StringBuilder sb = new StringBuilder ( ) ; final String indent = "\tat " ; for ( StackTraceElement frame : t . getStackTrace ( ) ) { sb . append ( indent ) ; sb . append ( frame . toString ( ) ) ; sb . append ( "\n" ) ; } return sb . toString ( ) ; }
target:  Return a String representation of the input Throwable's call stack. This is used instead of the typical StringWriter(PrintWriter()) usage to get redundant "Caused by" information, since the latter would be abbreviated and we would like full stacks for causers.