Sha256: 8e28a1180dd131fed1c383793e33c4f685cc1d98615a861ab4e50615f5197b62
Contents?: true
Size: 664 Bytes
Versions: 27
Compression:
Stored size: 664 Bytes
Contents
# frozen_string_literal: true 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
27 entries across 27 versions & 1 rubygems