public static String stackTraceToSingleLineString(Throwable throwable,boolean isFullStack){
  StringBuilder buffer=new StringBuilder();
  stackTraceToSingleLineString(buffer,throwable,isFullStack);
  return buffer.toString();
}

public static String stackTraceToSingleLineString ( Throwable throwable , boolean isFullStack ) { StringBuilder buffer = new StringBuilder ( ) ; stackTraceToSingleLineString ( buffer , throwable , isFullStack ) ; return buffer . toString ( ) ; }
retrieves a stack trace from the provided exception as a single - line string .
