public static String getStackTrace(Throwable e) {
    Writer writer = new StringWriter();
    e.printStackTrace(new PrintWriter(writer));
    return writer.toString();
  }
Returns stack trace of the given exception.

@param e Exception

@return string representation of e.printStackTrace()
KITE-Framework/src/main/java/org/webrtc/kite/Utils.java