StopIteration
Raised by the built-in next() and by an iterator's __next__() method to signal that there are no further items. Propagation out of a generator function is converted to a return.
Raised by the built-in next() and by an iterator's __next__() method to signal that there are no further items. Propagation out of a generator function is converted to a return.
Raised to signal that an external iterator has no more elements. Caught by Kernel#loop to terminate the loop cleanly.