Exception: GMO::Payment::APIError

Inherits:
Error show all
Defined in:
lib/gmo/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#error_info, #response_body

Instance Method Summary collapse

Constructor Details

#initialize(error_info = {}) ⇒ APIError

Returns a new instance of APIError.



41
42
43
44
45
46
# File 'lib/gmo/errors.rb', line 41

def initialize(error_info = {})
  self.error_info = error_info
  self.response_body = "ErrCode=#{error_info["ErrCode"]}&ErrInfo=#{error_info["ErrInfo"]}"
  message = self.response_body
  super(message)
end