code: public void deleteRule(final int index) throws DOMException {
          try {
              getCssRules().delete(index);
          }
          catch (final IndexOutOfBoundsException e) {
              throw new DOMExceptionImpl(
                  DOMException.INDEX_SIZE_ERR,
                  DOMExceptionImpl.INDEX_OUT_OF_BOUNDS,
                  e.getMessage());
          }
      }
docs: delete the rule at the given pos.
  
  @param index the pos
  @throws DOMException in case of error