Exception: Agent::Lock::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Agent::Lock::Error
- Defined in:
- lib/agent/lock/error.rb
Overview
The base of everything this gem raises. In a file of its own so that any part of the library can require it without reaching for the entry point, which would require the part doing the asking.
Direct Known Subclasses
Freeze::TooBroad, Refused, Scope::Invalid, Store::Mismatch, Store::Unreachable
Instance Attribute Summary collapse
-
#command ⇒ String?
readonly
The
alockcommand that gets past this error, without the program name, which only the launcher knows:alockoragent-lock.
Instance Method Summary collapse
-
#initialize(message = nil, command: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, command: nil) ⇒ Error
Returns a new instance of Error.
20 21 22 23 |
# File 'lib/agent/lock/error.rb', line 20 def initialize( = nil, command: nil) super() @command = command end |
Instance Attribute Details
#command ⇒ String? (readonly)
The alock command that gets past this error, without the program
name, which only the launcher knows: alock or agent-lock.
16 17 18 |
# File 'lib/agent/lock/error.rb', line 16 def command @command end |