Exception: WechatPublic::ResponseError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errcode, errmsg) ⇒ ResponseError

Returns a new instance of ResponseError.



14
15
16
17
# File 'lib/wechat_public.rb', line 14

def initialize(errcode, errmsg)
  error_code = errcode
  super "#{errmsg}(#{error_code})"
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



13
14
15
# File 'lib/wechat_public.rb', line 13

def error_code
  @error_code
end