Sha256: d4461ff196cca5902b19eebbf3928db292368bd31ae0e99da5f39653b18d6eec

Contents?: true

Size: 599 Bytes

Versions: 9

Compression:

Stored size: 599 Bytes

Contents

# frozen_string_literal: true

module Mongoid
  module Errors

    # This error is raised when a bad async query executor option is attempted
    # to be set.
    class InvalidQueryExecutor < MongoidError

      # Create the new error.
      #
      # @param [ Symbol | String ] executor The attempted async query executor.
      #
      # @api private
      def initialize(executor)
        super(
          compose_message(
            "invalid_async_query_executor",
            { executor: executor, options: [:immediate, :global_thread_pool] }
          )
        )
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mongoid-8.1.8 lib/mongoid/errors/invalid_async_query_executor.rb
mongoid-8.1.7 lib/mongoid/errors/invalid_async_query_executor.rb
mongoid-8.1.6 lib/mongoid/errors/invalid_async_query_executor.rb
mongoid-8.1.5 lib/mongoid/errors/invalid_async_query_executor.rb
mongoid-8.1.4 lib/mongoid/errors/invalid_async_query_executor.rb
mongoid-8.1.3 lib/mongoid/errors/invalid_async_query_executor.rb
mongoid-8.1.2 lib/mongoid/errors/invalid_async_query_executor.rb
mongoid-8.1.1 lib/mongoid/errors/invalid_async_query_executor.rb
mongoid-8.1.0 lib/mongoid/errors/invalid_async_query_executor.rb