Exception: PgLock::UnableToLockError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/pg_lock.rb

Instance Method Summary collapse

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