Exception: Mongoid::Errors::UnsupportedIsolationLevel

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

Overview

Raised when an unsupported isolation level is used in Mongoid configuration.

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(level) ⇒ UnsupportedIsolationLevel

Create the new error caused by attempting to select an unsupported isolation level.



12
13
14
15
16
17
18
19
# File 'lib/mongoid/errors/unsupported_isolation_level.rb', line 12

def initialize(level)
  super(
    compose_message(
      'unsupported_isolation_level',
      { level: level }
    )
  )
end