class Mongo::Error::MultiIndexDrop
Exception raised if '*' is passed to drop_one on indexes.
@since 2.0.0
Public Class Methods
new()
click to toggle source
Instantiate the new exception.
@example Instantiate the exception.
Mongo::Error::MultiIndexDrop.new
@since 2.0.0
Calls superclass method
Mongo::Error::new
# 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