public function offsetGet($position)
    {
        if (!isset($this->errors[$position])) {
            throw new OutOfBoundsException('The offset '.$position.' does not exist.');
        }

        return $this->errors[$position];
    }
public function offsetGet($position)
    {
        if (!isset($this->errors[$position])) {
            throw new OutOfBoundsException('The offset '.$position.' does not exist.');
        }

        return $this->errors[$position];
    }
public function offsetGet ( $ position ) { if ( ! isset ( $ this -> errors [ $ position ] ) ) { throw new OutOfBoundsException ( 'The offset ' . $ position . ' does not exist.' ) ; } return $ this -> errors [ $ position ] ; }
Returns the element at a position in the iterator.

@param int $position The position

@return FormError|FormErrorIterator The element at the given position

@throws OutOfBoundsException If the given position does not exist
Returns the element at a position in the iterator .