Exception: Mongoid::Errors::InvalidOptions
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidOptions
- Defined in:
- lib/mongoid/errors/invalid_options.rb
Overview
Raised when invalid options are passed into a constructor or method.
Example:
InvalidOptions.new
Constant Summary
Constants inherited from MongoidError
Instance Method Summary collapse
-
#initialize(key, options) ⇒ InvalidOptions
constructor
A new instance of InvalidOptions.
Methods inherited from MongoidError
Constructor Details
#initialize(key, options) ⇒ InvalidOptions
Returns a new instance of InvalidOptions.
11 12 13 |
# File 'lib/mongoid/errors/invalid_options.rb', line 11 def initialize(key, ) super(translate(key, )) end |