Exception: Mongoid::Errors::InvalidFieldType
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidFieldType
- Defined in:
- lib/mongoid/errors/invalid_field_type.rb
Overview
This error is raised when trying to define a field using a :type option value that is not present in the field type mapping.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(klass, field, type) ⇒ InvalidFieldType
constructor
Create the new error.
Methods inherited from MongoidError
Constructor Details
#initialize(klass, field, type) ⇒ InvalidFieldType
Create the new error.
19 20 21 22 23 24 |
# File 'lib/mongoid/errors/invalid_field_type.rb', line 19 def initialize(klass, field, type) super( ('invalid_field_type', klass: klass, field: field, type_inspection: type.inspect) ) end |