Exception: RobotArmy::ShellCommandError
- Defined in:
- lib/robot-army.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#exitstatus ⇒ Object
readonly
Returns the value of attribute exitstatus.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(command, exitstatus, output) ⇒ ShellCommandError
constructor
A new instance of ShellCommandError.
Constructor Details
#initialize(command, exitstatus, output) ⇒ ShellCommandError
Returns a new instance of ShellCommandError.
52 53 54 55 |
# File 'lib/robot-army.rb', line 52 def initialize(command, exitstatus, output) @command, @exitstatus, @output = command, exitstatus, output super "command failed with exit status #{exitstatus}: #{command}" end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
50 51 52 |
# File 'lib/robot-army.rb', line 50 def command @command end |
#exitstatus ⇒ Object (readonly)
Returns the value of attribute exitstatus.
50 51 52 |
# File 'lib/robot-army.rb', line 50 def exitstatus @exitstatus end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
50 51 52 |
# File 'lib/robot-army.rb', line 50 def output @output end |