Sha256: 27cd2b8f03b52091065a813fe0be8b55466e0a5b6769663d303b1e6e1d0ec497
Contents?: true
Size: 682 Bytes
Versions: 14
Compression:
Stored size: 682 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongoid module Errors # Raised when invalid expression-level operator is passed to an # embedded matcher. class InvalidExpressionOperator < InvalidQuery # Creates the exception. # # @param [ String ] operator The operator that was used. # # @api private def initialize(operator) @operator = operator super(compose_message("invalid_expression_operator", operator: operator, valid_operators: "'$and', '$nor', '$or'", )) end # @return [ String ] The operator that was used. attr_reader :operator end end end
Version data entries
14 entries across 14 versions & 1 rubygems