jodd-core/src/main/java/jodd/exception/ExceptionUtil.java
public static String exceptionStackTraceToString(final Throwable t) {
		StringWriter sw = new StringWriter();
		PrintWriter pw = new PrintWriter(sw, true);

		t.printStackTrace(pw);

		StreamUtil.close(pw);
		StreamUtil.close(sw);

		return sw.toString();
	}
public static String exceptionStackTraceToString(final Throwable t) {
		StringWriter sw = new StringWriter();
		PrintWriter pw = new PrintWriter(sw, true);

		t.printStackTrace(pw);

		StreamUtil.close(pw);
		StreamUtil.close(sw);

		return sw.toString();
	}
public static String exceptionStackTraceToString ( final Throwable t ) { StringWriter sw = new StringWriter ( ) ; PrintWriter pw = new PrintWriter ( sw , true ) ; t . printStackTrace ( pw ) ; StreamUtil . close ( pw ) ; StreamUtil . close ( sw ) ; return sw . toString ( ) ; }
Prints stack trace into a String.
Prints stack trace into a String .