Method: Mongo::Error::MultiIndexDrop#initialize

Defined in:
lib/mongo/error/multi_index_drop.rb

#initializeMultiIndexDrop

Instantiate the new exception.

Examples:

Instantiate the exception.

Mongo::Error::MultiIndexDrop.new

Since:

  • 2.0.0



32
33
34
# File 'lib/mongo/error/multi_index_drop.rb', line 32

def initialize
  super("Passing '*' to #drop_one would cause all indexes to be dropped. Please use #drop_all")
end