throw new DomEx(DomEx.INDEX_SIZE_ERR);
throw new DomDOMException(DOMException.INDEX_SIZE_ERR);
  public String substringData(int offset, int count)  {    try      {        return text.substring(offset, count);      }    catch (StringIndexOutOfBoundsException e)      {        if (offset >= 0 && count >= 0 && offset < text.length())          {            return text.substring(offset);          }        throw new DomEx(DomEx.INDEX_SIZE_ERR);      }  }