code: public String getExceptionStackTrace() {
          Throwable t = getException();
          if (t == null) {
              return null;
          }
          StringWriter sw = new StringWriter();
          PrintWriter pw = new PrintWriter(sw);
          t.printStackTrace(pw);
          return sw.toString();
      }
docs: Returns null if there is no exception logged.