Exception: AMIToolExceptions::EC2FatalError

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

Overview

All fatal errors should inherit from this.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



14
15
16
# File 'lib/ec2/amitools/tool_base.rb', line 14

def code
  @code
end