code: public static String throwableToString(Throwable t)
  	{
  		StringWriter s = new StringWriter();
  		PrintWriter p = new PrintWriter(s);
  		t.printStackTrace(p);
  		return s.toString();
  	}
docs: Accepts a throwable and returns a String representation.
  @param t
  @return string representation of stack trace