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


Raised when invalid field-level operator is passed to the $elemMatch embedded matcher.

Constant Summary

MongoidError - Inherited


Class Method Summary

InvalidQuery - Inherited


Create the new invalid query error.


Stringifies the argument using #inspect and truncates the result to about 100 characters.

Instance Attribute Summary

Instance Method Summary

MongoidError - Inherited


Compose the message.


Given the key of the specific error and the options hash, translate the message.


Create the problem.


Create the resolution.


Create the summary.

Instance Attribute Details

#operatorString (readonly)


  • (String)

    The operator that was used.

[ GitHub ]

# File 'lib/mongoid/errors/invalid_elem_match_operator.rb', line 30

attr_reader :operator