code: public void throwDOMException(short code, String msg)
      {
  
        String themsg = XSLMessages.createMessage(msg, null);
  
        throw new DOMException(code, themsg);
      }
docs: Throw a DOMException
  
  @param msg key of the error that occured.