Exception: TableStoreServiceError
- Inherits:
-
StandardError
- Object
- StandardError
- TableStoreServiceError
- Defined in:
- lib/tablestore/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#http_status ⇒ Object
Returns the value of attribute http_status.
-
#message ⇒ Object
Returns the value of attribute message.
-
#request_id ⇒ Object
Returns the value of attribute request_id.
Class Method Summary collapse
Instance Method Summary collapse
- #get_error_code ⇒ Object
- #get_error_message ⇒ Object
- #get_http_status ⇒ Object
- #get_request_id ⇒ Object
-
#initialize(http_status, code, message, request_id = '') ⇒ TableStoreServiceError
constructor
A new instance of TableStoreServiceError.
Constructor Details
#initialize(http_status, code, message, request_id = '') ⇒ TableStoreServiceError
Returns a new instance of TableStoreServiceError.
30 31 32 33 34 35 |
# File 'lib/tablestore/error.rb', line 30 def initialize(http_status, code, , request_id = '') @http_status = http_status @code = code @message = @request_id = request_id end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
27 28 29 |
# File 'lib/tablestore/error.rb', line 27 def code @code end |
#http_status ⇒ Object
Returns the value of attribute http_status.
26 27 28 |
# File 'lib/tablestore/error.rb', line 26 def http_status @http_status end |
#message ⇒ Object
Returns the value of attribute message.
25 26 27 |
# File 'lib/tablestore/error.rb', line 25 def @message end |
#request_id ⇒ Object
Returns the value of attribute request_id.
28 29 30 |
# File 'lib/tablestore/error.rb', line 28 def request_id @request_id end |
Class Method Details
.string ⇒ Object
37 38 39 |
# File 'lib/tablestore/error.rb', line 37 def self.string "ErrorCode: #{@code}, ErrorMessage: #{@message}, RequestID: #{@request_id}" end |
Instance Method Details
#get_error_code ⇒ Object
49 50 51 |
# File 'lib/tablestore/error.rb', line 49 def get_error_code @code end |
#get_error_message ⇒ Object
45 46 47 |
# File 'lib/tablestore/error.rb', line 45 def @message end |
#get_http_status ⇒ Object
41 42 43 |
# File 'lib/tablestore/error.rb', line 41 def get_http_status @http_status end |
#get_request_id ⇒ Object
53 54 55 |
# File 'lib/tablestore/error.rb', line 53 def get_request_id @request_id end |