Exception: AliyunSDKCore::ROAClient::ACSError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aliyunsdkcore/roa_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ ACSError

Returns a new instance of ACSError.



144
145
146
147
148
149
150
# File 'lib/aliyunsdkcore/roa_client.rb', line 144

def initialize(error)
  self.code  = error['Code']
  message    = error['Message']
  host_id    = error['HostId']
  request_id = error['RequestId']
  super("#{message} host_id: #{host_id}, request_id: #{request_id}")
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



142
143
144
# File 'lib/aliyunsdkcore/roa_client.rb', line 142

def code
  @code
end