throw new DomEx(DomEx.INVALID_STATE_ERR);
throw new DomDOMException(DOMException.INVALID_STATE_ERR);
  public Node nextNode()  {    if (done)      {        throw new DomEx(DomEx.INVALID_STATE_ERR);      }    right = true;    return walk(true);  }