docs: public final void write(Throwable e) throws IOException {
      indent();
      newLine();
  
      write(e.toString());
  
      StackTraceElement[] elements = e.getStackTrace();
      for (int i = 0; i < elements.length; i++) {
        newLine();
        write(elements[i].toString());
      }
  
      Throwable cause = e.getCause();
      if (cause != null) {
        newLine();
        write(cause.toString());
      }
  
      outdent();
    }