src/CreateIteratingExceptionCapableTrait.php
protected function _createIteratingException($message = null, $code = null, RootException $previous = null)
    {
        return new IteratingException($message, $code, $previous);
    }
protected function _createIteratingException($message = null, $code = null, RootException $previous = null)
    {
        return new IteratingException($message, $code, $previous);
    }
Creates a new iterating 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.

@return IteratingException The created exception instance.