Exception: Travis::Lock::Redis::LockError
- Inherits:
-
StandardError
- Object
- StandardError
- Travis::Lock::Redis::LockError
- Defined in:
- lib/travis/lock/redis.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ LockError
constructor
A new instance of LockError.
Constructor Details
#initialize(key) ⇒ LockError
Returns a new instance of LockError.
13 14 15 16 |
# File 'lib/travis/lock/redis.rb', line 13 def initialize(key) @key = key super("Could not obtain lock for #{key.inspect} on Redis.") end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
11 12 13 |
# File 'lib/travis/lock/redis.rb', line 11 def key @key end |