code: static String stacktraceToString(Exception e) {
          StringWriter sw = new StringWriter();
          e.printStackTrace(new PrintWriter(sw));
          String stackTrace = sw.toString();
          return stackTrace;
      }
docs: Extracts StackTrace from exception and translates it to a string
  
  @param e
  @return stackTrace