Exception: Mongoid::Locker::Errors::MongoidLockerError
- Inherits:
-
StandardError
- Object
- StandardError
- Mongoid::Locker::Errors::MongoidLockerError
- Defined in:
- lib/mongoid/locker/errors.rb
Overview
Default parent Mongoid::Locker error for all custom errors.
Direct Known Subclasses
Constant Summary collapse
- BASE_KEY =
'mongoid.locker.errors.messages'
Instance Method Summary collapse
-
#initialize(key, **params) ⇒ MongoidLockerError
constructor
A new instance of MongoidLockerError.
Constructor Details
#initialize(key, **params) ⇒ MongoidLockerError
Returns a new instance of MongoidLockerError.
10 11 12 13 14 |
# File 'lib/mongoid/locker/errors.rb', line 10 def initialize(key, **params) = I18n.translate("#{BASE_KEY}.#{key}.message", **params) super("\nmessage:\n #{}") end |