Exception: Rubsh::Exceptions::CommandReturnFailureError
- Defined in:
- lib/rubsh/exceptions.rb
Overview
Raised when a command return failure.
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
Instance Method Summary collapse
-
#initialize(exit_code, message) ⇒ CommandReturnFailureError
constructor
A new instance of CommandReturnFailureError.
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, ) @exit_code = exit_code super() end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
11 12 13 |
# File 'lib/rubsh/exceptions.rb', line 11 def exit_code @exit_code end |