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.
17 18 19 20 |
# File 'lib/pi_agent/errors.rb', line 17 def initialize(, command: nil) @command = command super() end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
15 16 17 |
# File 'lib/pi_agent/errors.rb', line 15 def command @command end |