Exception: AppStoreServerApi::Error::InvalidResponseError

Inherits:
AppStoreServerApi::Error show all
Defined in:
lib/app_store_server_api/error.rb

Overview

error response body is invalid must have errorCode and errorMessage. valid example response body:

{
  "errorCode": 4000006,
  "errorMessage": "Invalid transaction id."
}

Constant Summary

Constants inherited from AppStoreServerApi::Error

ERROR_CODE_MAP

Instance Attribute Summary

Attributes inherited from AppStoreServerApi::Error

#code, #response

Instance Method Summary collapse

Methods inherited from AppStoreServerApi::Error

handle_error, #inspect, #to_h

Constructor Details

#initialize(code: 5000002, message: 'response body is invalid', response:) ⇒ InvalidResponseError

Returns a new instance of InvalidResponseError.



54
55
56
# File 'lib/app_store_server_api/error.rb', line 54

def initialize(code: 5000002, message: 'response body is invalid', response:)
  super(code: code, message: message, response: response)
end