code: public static StringBuilder createStackTrace(StringBuilder s, Throwable t, boolean includeCause) {
  		s.append(t.getClass().getName());
  		s.append(": ");
  		s.append(t.getMessage());
  		createStackTrace(s, t.getStackTrace());
  		if (includeCause) {
  			Throwable cause = t.getCause();
  			if (cause != null && cause != t) {
  				s.append("\nCaused by: ");
  				createStackTrace(s, cause, true);
  			}
  		}
  		return s;
  	}
docs: Append a stack trace of the given Throwable to the StringBuilder.