class Mongoid::Locker::Errors::DocumentCouldNotGetLock
Raised when a document could not be successfully locked in the database.
Constants
- KEY
Public Class Methods
Source
# File lib/mongoid/locker/errors.rb, line 26 def initialize(klass, id) super(KEY, klass: klass, id: id.to_s) end
@example Create new error.
DocumentCouldNotGetLock.new(Account, '1234')
@param klass [Class] the model class @param id [String, BSON::ObjectId] the document’s id
Calls superclass method
Mongoid::Locker::Errors::MongoidLockerError::new