Exception: AMIToolExceptions::EC2StopExecution
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- AMIToolExceptions::EC2StopExecution
- 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
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code = 0) ⇒ EC2StopExecution
constructor
A new instance of EC2StopExecution.
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
#code ⇒ Object
Returns the value of attribute code.
44 45 46 |
# File 'lib/ec2/amitools/tool_base.rb', line 44 def code @code end |