docs: public static String asString(Throwable self) {
          StringBuilderWriter sw = new StringBuilderWriter();
  
          try (PrintWriter pw = new PrintWriter(sw)) {
              self.printStackTrace(pw);
          }
  
          return sw.toString();
      }