Exception: PgLock::UnableToLockError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- PgLock::UnableToLockError
- Defined in:
- lib/pg_lock.rb
Instance Method Summary collapse
-
#initialize(name:, attempts:) ⇒ UnableToLockError
constructor
A new instance of UnableToLockError.
Constructor Details
#initialize(name:, attempts:) ⇒ UnableToLockError
Returns a new instance of UnableToLockError.
23 24 25 26 |
# File 'lib/pg_lock.rb', line 23 def initialize(name:, attempts: ) msg = "Was unable to aquire a lock #{ name.inspect } after #{ attempts } attempts" super msg end |