throw new DomEx(DomEx.INVALID_STATE_ERR);
throw new DomDOMException(DOMException.INVALID_STATE_ERR);
  public Node previousNode()  {    if (done)      {        throw new DomEx(DomEx.INVALID_STATE_ERR);      }    Node previous = reference;    right = false;    walk(false);    return previous;  }