Exception: CloudCrowd::Error::CommandFailed

Inherits:
CloudCrowd::Error show all
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)

Instance Method Summary (collapse)

Constructor Details

- (CommandFailed) initialize(message, exit_code)



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