Exception: Moped::Errors::CursorNotFound

Inherits:
MongoError show all
Defined in:
lib/moped/errors.rb

Overview

Exception raised if the cursor could not be found.

Instance Attribute Summary

Attributes inherited from MongoError

#command, #command The command that generated the error., #details, #details The details about the error.

Instance Method Summary collapse

Constructor Details

#initialize(operation, cursor_id) ⇒ CursorNotFound

Returns a new instance of CursorNotFound.



102
103
104
# File 'lib/moped/errors.rb', line 102

def initialize(operation, cursor_id)
  super(operation, {"errmsg" => "cursor #{cursor_id} not found"})
end