Exception: HalfShell::ExecuteError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/half_shell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, status) ⇒ ExecuteError

Returns a new instance of ExecuteError.



10
11
12
13
# File 'lib/half_shell.rb', line 10

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

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



8
9
10
# File 'lib/half_shell.rb', line 8

def command
  @command
end

#statusObject (readonly)

Returns the value of attribute status.



8
9
10
# File 'lib/half_shell.rb', line 8

def status
  @status
end