Exception: Mongoid::Errors::InvalidFieldOption
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidFieldOption
- Defined in:
- build/mongoid-7.3/lib/mongoid/errors/invalid_field_option.rb
Overview
This error is raised when trying to create a field that has an invalid option.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(klass, name, option, valid) ⇒ InvalidFieldOption
constructor
Create the new error.
Methods inherited from MongoidError
Constructor Details
#initialize(klass, name, option, valid) ⇒ InvalidFieldOption
Create the new error.
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'build/mongoid-7.3/lib/mongoid/errors/invalid_field_option.rb', line 22 def initialize(klass, name, option, valid) super( ( "invalid_field_option", { name: name, klass: klass, option: option, valid: valid.join(", ") } ) ) end |