throw new DomEx (DomEx.HIERARCHY_REQUEST_ERR);
throw new DomDOMException(DOMException.HIERARCHY_REQUEST_ERR);
  public final void setOwnerElement(Element e)  {    if (parent != null)      {        throw new DomEx (DomEx.HIERARCHY_REQUEST_ERR);      }    if (!(e instanceof DomElement))      {        throw new DomEx(DomEx.WRONG_DOCUMENT_ERR);      }    parent = (DomElement) e;    depth = parent.depth + 1;  }