Exception: Rubsh::Exceptions::CommandReturnFailureError

Inherits:
Error
  • Object
show all
Defined in:
lib/rubsh/exceptions.rb

Overview

Raised when a command return failure.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exit_code, message) ⇒ CommandReturnFailureError

Returns a new instance of CommandReturnFailureError.



13
14
15
16
# File 'lib/rubsh/exceptions.rb', line 13

def initialize(exit_code, message)
  @exit_code = exit_code
  super(message)
end

Instance Attribute Details

#exit_codeObject (readonly)

Returns the value of attribute exit_code.



11
12
13
# File 'lib/rubsh/exceptions.rb', line 11

def exit_code
  @exit_code
end