Code example for CursorIndexOutOfBoundsException

0
         *  values 
         * @return this builder to support chaining 
         */ 
        public RowBuilder add(Object columnValue) {
            if (index == endIndex) {
                throw new CursorIndexOutOfBoundsException(
                        "No more columns left."); 
            } 
 
            data[index++] = columnValue;
            return this;
        } 
    } 
 
    // AbstractCursor implementation. 
 
    public int getCount() { 
        return rowCount;
    } 
 
    public String[] getColumnNames() {