Exception: Mongoid::Errors::InvalidIndex
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidIndex
- Defined in:
- lib/mongoid/errors/invalid_index.rb
Overview
Raised when an invalid index is defined.
Constant Summary
Constant Summary
Constants inherited from MongoidError
Instance Method Summary (collapse)
-
- (InvalidIndex) initialize(klass, spec)
constructor
Create the new error.
Methods inherited from MongoidError
#compose_message, #problem, #resolution, #summary, #translate
Constructor Details
- (InvalidIndex) initialize(klass, spec)
Create the new error.
17 18 19 20 21 22 23 24 |
# File 'lib/mongoid/errors/invalid_index.rb', line 17 def initialize(klass, spec) super( ( "invalid_index", { klass: klass.name, spec: spec } ) ) end |