public static String getExceptionStacktrace ( Throwable t ) { try ( StringWriter errors = new StringWriter ( ) ) { t . printStackTrace ( new PrintWriter ( errors ) ) ; return errors . toString ( ) ; } catch ( IOException e ) { LOG . error ( e ) ; return null ; } }
get the stacktrace string .