Exception: Agent::Lock::Refused
- Defined in:
- lib/agent/lock/error.rb
Overview
A lock operation the CLI would have explained on stderr and refused.
The message is that text. result is the Manager::Result or
Skill::Result behind it, so the records are available without parsing
the message.
Instance Attribute Summary collapse
-
#result ⇒ Manager::Result, ...
readonly
The operation that was refused.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, result: nil) ⇒ Refused
constructor
A new instance of Refused.
Constructor Details
#initialize(message, result: nil) ⇒ Refused
Returns a new instance of Refused.
44 45 46 47 |
# File 'lib/agent/lock/error.rb', line 44 def initialize(, result: nil) super() @result = result end |
Instance Attribute Details
#result ⇒ Manager::Result, ... (readonly)
Returns the operation that was refused.
40 41 42 |
# File 'lib/agent/lock/error.rb', line 40 def result @result end |