Exception: WechatClient::ResponseCodeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/wechat_client/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(error_json) ⇒ ResponseCodeError

Returns a new instance of ResponseCodeError.



20
21
22
# File 'lib/wechat_client/client.rb', line 20

def initialize(error_json)
  super "#{error_json['errcode']}:#{error_json['errmsg']}"
end