code: public void err(String message) throws SAXException {
          if (errorHandler != null) {
              SAXParseException spe = new SAXParseException(message, locator);
              errorHandler.error(spe);
          }
      }
docs: Emit an error. The locator is used.
  
  @param message the error message
  @throws SAXException if something goes wrong