Exception: Mongo::Error::MultiIndexDrop
- Inherits:
-
Mongo::Error
- Object
- StandardError
- Mongo::Error
- Mongo::Error::MultiIndexDrop
- Defined in:
- lib/mongo/error/multi_index_drop.rb
Overview
Exception raised if ‘*’ is passed to drop_one on indexes.
Constant Summary
Constants inherited from Mongo::Error
BAD_VALUE, CODE, CURSOR_NOT_FOUND, ERR, ERRMSG, ERROR, TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_ERROR, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL, WRITE_CONCERN_ERROR, WRITE_CONCERN_ERRORS, WRITE_ERRORS
Instance Method Summary collapse
-
#initialize ⇒ MultiIndexDrop
constructor
Instantiate the new exception.
Methods inherited from Mongo::Error
#add_label, #change_stream_resumable?, #label?, #labels
Methods included from Notable
Constructor Details
#initialize ⇒ MultiIndexDrop
Instantiate the new exception.
29 30 31 |
# File 'lib/mongo/error/multi_index_drop.rb', line 29 def initialize super("Passing '*' to #drop_one would cause all indexes to be dropped. Please use #drop_all") end |