Exception: Wechat::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Wechat::ResponseError
- Defined in:
- lib/wechat-rails.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(errcode, errmsg) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(errcode, errmsg) ⇒ ResponseError
Returns a new instance of ResponseError.
11 12 13 14 |
# File 'lib/wechat-rails.rb', line 11 def initialize(errcode, errmsg) error_code = errcode super "#{errmsg}(#{error_code})" end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
10 11 12 |
# File 'lib/wechat-rails.rb', line 10 def error_code @error_code end |