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)
-
- (Object) exit_code
readonly
Returns the value of attribute exit_code.
Instance Method Summary (collapse)
-
- (CommandFailed) initialize(message, exit_code)
constructor
A new instance of CommandFailed.
Constructor Details
- (CommandFailed) initialize(message, exit_code)
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
- (Object) exit_code (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
|