code: private void print(String level, SAXParseException exception) {
          if (level.equals("warning")) {
              logger.warn("** " + level + ": " + exception.getMessage());
              logger.warn("   URI  = " + exception.getSystemId());
              logger.warn("   line = " + exception.getLineNumber());
          } else {
              logger.error("** " + level + ": " + exception.getMessage());
              logger.error("   URI  = " + exception.getSystemId());
              logger.error("   line = " + exception.getLineNumber());
          }
      }
docs: Internal procedure that outputs an SAXParseException with a significance level
  to the cdk.tools.LoggingTool logger.
  
  @param level     significance level
  @param exception Exception to output