Exception: AMIToolExceptions::EC2FatalError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- AMIToolExceptions::EC2FatalError
- Defined in:
- lib/ec2/amitools/tool_base.rb
Overview
All fatal errors should inherit from this.
Direct Known Subclasses
FileNotFound, PromptTimeout, S3Error, BucketLocationError, DeleteFileError
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, msg) ⇒ EC2FatalError
constructor
A new instance of EC2FatalError.
Constructor Details
#initialize(code, msg) ⇒ EC2FatalError
Returns a new instance of EC2FatalError.
15 16 17 18 |
# File 'lib/ec2/amitools/tool_base.rb', line 15 def initialize(code, msg) super(msg) @code = code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
14 15 16 |
# File 'lib/ec2/amitools/tool_base.rb', line 14 def code @code end |