Exception: Moped::Errors::CursorNotFound
- Inherits:
-
MongoError
- Object
- StandardError
- MongoError
- Moped::Errors::CursorNotFound
- 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
-
#initialize(operation, cursor_id) ⇒ CursorNotFound
constructor
A new instance of CursorNotFound.
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 |