123456789_123456789_123456789_123456789_123456789_

Exception: Mongoid::Errors::InvalidExpressionOperator

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_expression_operator.rb

Overview

Raised when invalid expression-level operator is passed to an embedded matcher.

Constant Summary

MongoidError - Inherited

BASE_KEY

Class Method Summary

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

#operatorString (readonly)

Returns:

  • (String)

    The operator that was used.

[ GitHub ]

  
# File 'lib/mongoid/errors/invalid_expression_operator.rb', line 25

attr_reader :operator