public static String getStackTraceAsString(Throwable throwable) {
    return Log.getStackTraceString(throwable);
  }
Returns a string containing the result of {@link Throwable#toString() toString()}, followed by
the full, recursive stack trace of {@code throwable}. Note that you probably should not be
parsing the resulting string; if you need programmatic access to the stack frames, you can call
{@link Throwable#getStackTrace()}.
fbcore/src/main/java/com/facebook/common/internal/Throwables.java