Exception: Rbop::Shell::CommandFailed

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/rbop/shell.rb

Overview

Exception raised when a command fails

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, status) ⇒ CommandFailed

Returns a new instance of CommandFailed.



12
13
14
15
16
# File 'lib/rbop/shell.rb', line 12

def initialize(command, status)
  @command = command
  @status = status
  super("Command failed with status #{status}: #{command}")
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



10
11
12
# File 'lib/rbop/shell.rb', line 10

def command
  @command
end

#statusObject (readonly)

Returns the value of attribute status.



10
11
12
# File 'lib/rbop/shell.rb', line 10

def status
  @status
end