class Mongo::Error::InvalidCursorOperation
Exception raised when an unsupported operation is attempted on a cursor.
Examples:
-
Attempting to iterate a regular cursor more than once.
-
Attempting to call try_next on a caching cursor after it had been iterated completely the first time.