Exception: TencentCloud::Common::TencentCloudSDKException
- Inherits:
-
StandardError
- Object
- StandardError
- TencentCloud::Common::TencentCloudSDKException
- Defined in:
- lib/tencentcloud-sdk-common/exception.rb
Overview
TencentCloud exception
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
-
#request_id ⇒ Object
Returns the value of attribute request_id.
Instance Method Summary collapse
-
#initialize(code = nil, message = nil, request_id = nil) ⇒ TencentCloudSDKException
constructor
A new instance of TencentCloudSDKException.
- #to_s ⇒ Object
Constructor Details
#initialize(code = nil, message = nil, request_id = nil) ⇒ TencentCloudSDKException
9 10 11 12 13 |
# File 'lib/tencentcloud-sdk-common/exception.rb', line 9 def initialize(code = nil, = nil, request_id = nil) @code = code = @request_id = request_id end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
7 8 9 |
# File 'lib/tencentcloud-sdk-common/exception.rb', line 7 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
7 8 9 |
# File 'lib/tencentcloud-sdk-common/exception.rb', line 7 def end |
#request_id ⇒ Object
Returns the value of attribute request_id.
7 8 9 |
# File 'lib/tencentcloud-sdk-common/exception.rb', line 7 def request_id @request_id end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/tencentcloud-sdk-common/exception.rb', line 15 def to_s "[TencentCloudSDKError] Code=#{@code}, Message=#{@message}, RequestId=#{@request_id}" end |