Exception: Mongoid::Errors::InvalidElemMatchOperator
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
InvalidQuery,
MongoidError,
StandardError
|
|
|
Instance Chain:
self,
InvalidQuery,
MongoidError,
StandardError
|
|
| Inherits: |
Mongoid::Errors::InvalidQuery
|
| Defined in: | lib/mongoid/errors/invalid_elem_match_operator.rb |
Overview
Raised when invalid field-level operator is passed to the $elemMatch embedded matcher.
Constant Summary
-
VALID_OPERATORS =
Internal use only
# File 'lib/mongoid/errors/invalid_elem_match_operator.rb', line 12%w( and all eq exists gt gte in lt lte ne nin nor not or regex size ).freeze
MongoidError - Inherited
Class Method Summary
-
.new(operator) ⇒ InvalidElemMatchOperator
constructor
Internal use only
Internal use only
Creates the exception.
InvalidQuery - Inherited
| .new | Create the new invalid query error. |
| .truncate_expr | Stringifies the argument using #inspect and truncates the result to about 100 characters. |
Instance Attribute Summary
Instance Method Summary
MongoidError - Inherited
| #compose_message | Compose the message. |
| #translate | Given the key of the specific error and the options hash, translate the message. |
| #translate_problem | Create the problem. |
| #translate_resolution | Create the resolution. |
| #translate_summary | Create the summary. |
Instance Attribute Details
#operator ⇒ String (readonly)
# File 'lib/mongoid/errors/invalid_elem_match_operator.rb', line 30
attr_reader :operator