Exception: CloudCrowd::Error::CommandFailed
- Inherits:
-
CloudCrowd::Error
- Object
- RuntimeError
- CloudCrowd::Error
- CloudCrowd::Error::CommandFailed
- Defined in:
- lib/cloud_crowd/exceptions.rb
Overview
CommandFailed is raised when an action shells out, and the external command returns a non-zero exit code.
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
Instance Method Summary collapse
-
#initialize(message, exit_code) ⇒ CommandFailed
constructor
A new instance of CommandFailed.
Constructor Details
#initialize(message, exit_code) ⇒ CommandFailed
Returns a new instance of CommandFailed.
38 39 40 41 |
# File 'lib/cloud_crowd/exceptions.rb', line 38
def initialize(message, exit_code)
super(message)
@exit_code = exit_code
end
|
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
36 37 38 |
# File 'lib/cloud_crowd/exceptions.rb', line 36
def exit_code
@exit_code
end
|