Exception: GMO::PG::APIError

Inherits:
Error
  • Object
show all
Defined in:
lib/gmo-pg/error.rb

Direct Known Subclasses

APIServerError, AuthorizationError, CardError

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

from_api_error, from_http_error

Constructor Details

#initialize(message, err_code, err_info) ⇒ APIError

Returns a new instance of APIError.



63
64
65
66
67
# File 'lib/gmo-pg/error.rb', line 63

def initialize(message, err_code, err_info)
  super("#{message} (#{err_code}|#{err_info})")
  @err_code = err_code
  @err_info = err_info
end

Instance Attribute Details

#err_codeObject (readonly)

Returns the value of attribute err_code.



61
62
63
# File 'lib/gmo-pg/error.rb', line 61

def err_code
  @err_code
end

#err_infoObject (readonly)

Returns the value of attribute err_info.



61
62
63
# File 'lib/gmo-pg/error.rb', line 61

def err_info
  @err_info
end