Exception: Hem::ExternalCommandError
- Defined in:
- lib/hem/errors.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(command, exit_code, output) ⇒ ExternalCommandError
constructor
A new instance of ExternalCommandError.
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
#command ⇒ Object
Returns the value of attribute command.
56 57 58 |
# File 'lib/hem/errors.rb', line 56 def command @command end |
#exit_code ⇒ Object
Returns the value of attribute exit_code.
56 57 58 |
# File 'lib/hem/errors.rb', line 56 def exit_code @exit_code end |
#output ⇒ Object
Returns the value of attribute output.
56 57 58 |
# File 'lib/hem/errors.rb', line 56 def output @output end |