docs: public static String getStackTrace(Throwable t, String separator) {
  
          Throwable cause = t;
          String result = "";
          while (cause != null) {
              result += getStackTraceAsString(cause.getStackTrace(), separator);
              cause = cause.getCause();
          }
          return result;
      }