Exception: AMIToolExceptions::EC2StopExecution

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/ec2/amitools/tool_base.rb

Overview

This is more for flow control than anything else. Raising it should terminate execution, but not print an error.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code = 0) ⇒ EC2StopExecution

Returns a new instance of EC2StopExecution.



45
46
47
48
# File 'lib/ec2/amitools/tool_base.rb', line 45

def initialize(code=0)
  super()
  @code = code
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



44
45
46
# File 'lib/ec2/amitools/tool_base.rb', line 44

def code
  @code
end