protected function _next()
    {
        try {
            $this->_setIteration($this->_loop());
        } catch (RootException $exception) {
            $this->_throwIteratorException(
                $this->__('An error occurred while iterating'),
                null,
                $exception
            );
        }
    }
protected function _next()
    {
        try {
            $this->_setIteration($this->_loop());
        } catch (RootException $exception) {
            $this->_throwIteratorException(
                $this->__('An error occurred while iterating'),
                null,
                $exception
            );
        }
    }
protected function _next ( ) { try { $ this -> _setIteration ( $ this -> _loop ( ) ) ; } catch ( RootException $ exception ) { $ this -> _throwIteratorException ( $ this -> __ ( 'An error occurred while iterating' ) , null , $ exception ) ; } }
Advances the iterator to the next element.

@since [*next-version*]
@see Iterator::next()

@throws IteratorExceptionInterface If an error occurred during iteration.
Advances the iterator to the next element .