Iterator: Terminate with the provided err.
Finishes the current iterator, throwing the provided err when value is accessed.
value
The final iterator result.