code: public void error(String msg)
    {
  
      System.out.println("DOM ERROR! class: " + this.getClass().getName());
  
      throw new RuntimeException(XMLMessages.createXMLMessage(msg, null));
    }
docs: Throw an error.
  
  @param msg Message Key for the error