code: public static final String throwableToString(Throwable t) {
          final StringWriter s = new StringWriter();
          final PrintWriter p = new PrintWriter(s);
  
          if (t == null) {
              p.println("none");
          } else {
              printStackTrace(p, t);
          }
  
          return DataFormatHelper.escape(s.toString());
      }
docs: Returns a string containing the formatted exception stack
  
  @param t throwable
  
  @return formatted exception stack as a string