Exception: Hobo::ExternalCommandError

Inherits:
Error
  • Object
show all
Defined in:
lib/hobo/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, exit_code, output) ⇒ ExternalCommandError

Returns a new instance of ExternalCommandError.



41
42
43
44
45
46
# File 'lib/hobo/errors.rb', line 41

def initialize command, exit_code, output
  @command = command
  @exit_code = exit_code
  @output = output
  super("'#{command}' returned exit code #{exit_code}")
end

Instance Attribute Details

#commandObject

Returns the value of attribute command.



39
40
41
# File 'lib/hobo/errors.rb', line 39

def command
  @command
end

#exit_codeObject

Returns the value of attribute exit_code.



39
40
41
# File 'lib/hobo/errors.rb', line 39

def exit_code
  @exit_code
end

#outputObject

Returns the value of attribute output.



39
40
41
# File 'lib/hobo/errors.rb', line 39

def output
  @output
end