throw new DomEx(DomEx.INDEX_SIZE_ERR);
throw new DomDOMException(DOMException.INDEX_SIZE_ERR);
  public void deleteData(int offset, int count)  {    if (isReadonly())      {        throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR);      }    char[] raw = text.toCharArray();    if (offset < 0 || count < 0 || offset > raw.length)      {        throw new DomEx(DomEx.INDEX_SIZE_ERR);      }    if ((offset + count) > raw.length)      {        count = raw.length - offset;      }    if (count == 0)      {        return;      }    try      {        char[] buf = new char[raw.length - count];        System.arraycopy(raw, 0, buf, 0, offset);        System.arraycopy(raw, offset + count, buf, offset,                         raw.length - (offset + count));        String value = new String(buf);        mutating(value);        text = value;      }    catch (IndexOutOfBoundsException x)      {        throw new DomEx(DomEx.INDEX_SIZE_ERR);      }  }