public String getStackTraceInfo ( Throwable aThrowable ) { final Writer localWriter = new StringWriter ( ) ; final PrintWriter printWriter = new PrintWriter ( localWriter ) ; aThrowable . printStackTrace ( printWriter ) ; return localWriter . toString ( ) ; }
Used to return StackTrace of an Exception as String .