Exception: AliyunSDKCore::ROAClient::ACSError
- Inherits:
-
StandardError
- Object
- StandardError
- AliyunSDKCore::ROAClient::ACSError
- Defined in:
- lib/aliyunsdkcore/roa_client.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(error) ⇒ ACSError
constructor
A new instance of ACSError.
Constructor Details
#initialize(error) ⇒ ACSError
Returns a new instance of ACSError.
159 160 161 162 163 164 165 |
# File 'lib/aliyunsdkcore/roa_client.rb', line 159 def initialize(error) self.code = error['Code'] = error['Message'] host_id = error['HostId'] request_id = error['RequestId'] super("#{} host_id: #{host_id}, request_id: #{request_id}") end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
157 158 159 |
# File 'lib/aliyunsdkcore/roa_client.rb', line 157 def code @code end |