Exception: Mongoid::Errors::InvalidQueryExecutor

Inherits:
MongoidError
  • Object
show all
Defined in:
lib/mongoid/errors/invalid_async_query_executor.rb

Overview

This error is raised when a bad async query executor option is attempted to be set.

Constant Summary

Constants inherited from MongoidError

MongoidError::BASE_KEY

Instance Attribute Summary

Attributes inherited from MongoidError

#problem, #resolution, #summary

Instance Method Summary collapse

Methods inherited from MongoidError

#compose_message

Constructor Details

#initialize(executor) ⇒ InvalidQueryExecutor

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Create the new error.

Parameters:

  • executor (Symbol | String)

    The attempted async query executor.



16
17
18
19
20
21
22
23
# File 'lib/mongoid/errors/invalid_async_query_executor.rb', line 16

def initialize(executor)
  super(
    compose_message(
      "invalid_async_query_executor",
      { executor: executor, options: [:immediate, :global_thread_pool] }
    )
  )
end