code: void write(CallInfo callInfo, SQLException e) {
      Element rootNode = root(callInfo);
      Element exNode = createNode(rootNode, DATABASE_EXCEPTION_TAG);
      StringWriter sw = new StringWriter();
      sw.append('\n');
      e.printStackTrace(new PrintWriter(sw));
      exNode.appendChild(xmlDoc.createCDATASection(sw.toString()));
      flush(rootNode);
    }
docs: Report a database exception onto the log.
  @param callInfo Call info.
  @param e Database exception.