code: private void setStackTrace(Throwable e) {
          // Convert stack trace to a String
          StringWriter sw = new StringWriter();
          PrintWriter pw = new PrintWriter(sw);
          e.printStackTrace(pw);
          stackTrace = sw.toString();
          setLineSeparator(getLineSeparatorProperty());
      }
docs: Set the stack trace
  
  @param newStackTrace java.lang.String