src/org/kocakosm/pitaya/util/Throwables.java
public static String getStackTrace(Throwable t)
	{
		StringWriter out = new StringWriter();
		PrintWriter writer = new PrintWriter(out);
		t.printStackTrace(writer);
		writer.flush();
		return out.toString();
	}
public static String getStackTrace(Throwable t)
	{
		StringWriter out = new StringWriter();
		PrintWriter writer = new PrintWriter(out);
		t.printStackTrace(writer);
		writer.flush();
		return out.toString();
	}
Returns the stack trace of the given {@code Throwable} as a
{@code String}.

@param t the {@code Throwable} to get the stack trace.

@return the stack trace of the given {@code Throwable}.

@throws NullPointerException if {@code t} is {@code null}.