protected String format ( Throwable throwable ) { String text = null ; if ( throwable != null ) { //init writer StringWriter writer = new StringWriter ( 1500 ) ; //write throwable throwable . printStackTrace ( new PrintWriter ( writer ) ) ; //get text text = writer . toString ( ) ; } return text ; }
Converts the provided throwable to string .