Code example for CursorIndexOutOfBoundsException

0
            return null; 
        } 
 
        private Object get(int column) {
            if (column < 0 || column >= columnCount) {
                throw new CursorIndexOutOfBoundsException("Requested column: " + column + ", # of columns: " + columnCount);
            } 
            if (mPos < 0) {
                throw new CursorIndexOutOfBoundsException("Before first row.");
            } 
            if (mPos >= rowCount) {
                throw new CursorIndexOutOfBoundsException("After last row.");
            } 
            return getValue(column, pluginParams.get(mPos));
        } 
 
        // AbstractCursor implementation. 
 
        @Override 
        public int getCount() { 
            return rowCount;