protected function _createIteratorException(
        $message = null,
        $code = null,
        RootException $previous = null,
        IteratorInterface $iterator
    ) {
        return new IteratorException($message, $code, $previous, $iterator);
    }
protected function _createIteratorException(
        $message = null,
        $code = null,
        RootException $previous = null,
        IteratorInterface $iterator
    ) {
        return new IteratorException($message, $code, $previous, $iterator);
    }
protected function _createIteratorException ( $ message = null , $ code = null , RootException $ previous = null , IteratorInterface $ iterator ) { return new IteratorException ( $ message , $ code , $ previous , $ iterator ) ; }
Creates a new iterator exception instance.

@since [*next-version*]

@param string|Stringable|null $message  The error message, if any.
@param int|null               $code     The error code, if any.
@param RootException|null     $previous The previous exception for chaining, if any.
@param IteratorInterface      $iterator The iterator instance that erred.

@return IteratorException The created exception instance.
Creates a new iterator exception instance .