Exception: Mongoid::Errors::InMemoryRegexpTimeout
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InMemoryRegexpTimeout
- Defined in:
- lib/mongoid/errors/in_memory_regexp_timeout.rb
Overview
This error is raised when evaluating a query in memory exceeds Mongoid::Config.in_memory_regexp_time_limit.
What the limit bounds depends on the Ruby in use. Where per-Regexp timeouts are available it is the time spent executing regular expressions; elsewhere it is the elapsed time of the whole in-memory evaluation. The message is worded to hold either way.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(limit) ⇒ InMemoryRegexpTimeout
constructor
Create the new error.
Methods inherited from MongoidError
Constructor Details
#initialize(limit) ⇒ InMemoryRegexpTimeout
Create the new error.
21 22 23 |
# File 'lib/mongoid/errors/in_memory_regexp_timeout.rb', line 21 def initialize(limit) super(('in_memory_regexp_timeout', limit: limit)) end |