Exception: Hem::ExternalCommandError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command, exit_code, output) ⇒ ExternalCommandError

Returns a new instance of ExternalCommandError.



58
59
60
61
62
63
# File 'lib/hem/errors.rb', line 58

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.



56
57
58
# File 'lib/hem/errors.rb', line 56

def command
  @command
end

#exit_codeObject

Returns the value of attribute exit_code.



56
57
58
# File 'lib/hem/errors.rb', line 56

def exit_code
  @exit_code
end

#outputObject

Returns the value of attribute output.



56
57
58
# File 'lib/hem/errors.rb', line 56

def output
  @output
end