Exception: Moped::Errors::CursorNotFound

Inherits:
DoNotDisconnect 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.



170
171
172
# File 'lib/moped/errors.rb', line 170

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