Class: Mongo::Error::InvalidCursorOperation

Inherits:
Error
  • Object
show all
Defined in:
lib/mongo/error/invalid_cursor_operation.rb

Overview

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.

Since:

  • 2.0.0