code: private void writeError(I_CmsReport report, Throwable e) {
  
          report.println(e);
          if (LOG.isWarnEnabled()) {
              LOG.warn("SQLConsole", e);
          }
      }
docs: Writes the given error to the report,
  and, if enabled, to the opencms log file.<p>
  
  @param report the report to write to
  @param e the exception