Exception: PiAgent::CommandError
- Defined in:
- lib/pi_agent/errors.rb
Overview
Raised when an RPC command returns success: false. Carries the
failing command name so callers can branch on it.
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
-
#initialize(message, command: nil) ⇒ CommandError
constructor
A new instance of CommandError.
Constructor Details
#initialize(message, command: nil) ⇒ CommandError
Returns a new instance of CommandError.
32 33 34 35 |
# File 'lib/pi_agent/errors.rb', line 32 def initialize(, command: nil) @command = command super() end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
30 31 32 |
# File 'lib/pi_agent/errors.rb', line 30 def command @command end |