123456789_123456789_123456789_123456789_123456789_

Class: Mongo::Error::MultiIndexDrop

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error
Instance Chain:
self, Error
Inherits: Error
  • Object
Defined in: lib/mongo/error/multi_index_drop.rb

Overview

Exception raised if '*' is passed to drop_one on indexes.

Since:

  • 2.0.0

Class Method Summary

Constructor Details

.newMultiIndexDrop

Instantiate the new exception.

Examples:

Instantiate the exception.

Mongo::Error::MultiIndexDrop.new

Since:

  • 2.0.0

[ GitHub ]

  
# 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