Exception: Mongoid::Locker::Errors::DocumentCouldNotGetLock
- Inherits:
-
MongoidLockerError
- Object
- StandardError
- MongoidLockerError
- Mongoid::Locker::Errors::DocumentCouldNotGetLock
- Defined in:
- lib/mongoid/locker/errors.rb
Overview
Raised when a document could not be successfully locked in the database.
Constant Summary collapse
- KEY =
'document_could_not_get_lock'
Constants inherited from MongoidLockerError
Instance Method Summary collapse
-
#initialize(klass, id) ⇒ DocumentCouldNotGetLock
constructor
A new instance of DocumentCouldNotGetLock.
Constructor Details
#initialize(klass, id) ⇒ DocumentCouldNotGetLock
Returns a new instance of DocumentCouldNotGetLock.
26 27 28 |
# File 'lib/mongoid/locker/errors.rb', line 26 def initialize(klass, id) super(KEY, klass: klass, id: id.to_s) end |