Throwable to string java example 8 Giugno 2015 | Nessun commento public static String getStackTrace(Throwable throwable) { Writer writer = new StringWriter(); PrintWriter printWriter = new PrintWriter(writer); throwable.printStackTrace(printWriter); return writer.toString(); } Categories: Java | Tags: Throwable to string