class Mongoid::Errors::InvalidExpressionOperator

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

Attributes

operator[R]

@return [ String ] The operator that was used.

Public Class Methods

new(operator) click to toggle source

Creates the exception.

@param [ String ] operator The operator that was used.

@api private

Calls superclass method
# File lib/mongoid/errors/invalid_expression_operator.rb, line 16
def initialize(operator)
  @operator = operator
  super(compose_message("invalid_expression_operator",
    operator: operator,
    valid_operators: "'$and', '$nor', '$or'",
  ))
end