class Qywechat::Notifier::QyAPI::Errors::APIError

API 异常,比如返回失败状态码

Attributes

errcode[R]
errmsg[R]

Public Class Methods

new(errcode, errmsg) click to toggle source
Calls superclass method
# File lib/qywechat/notifier/qy_api/errors.rb, line 13
def initialize(errcode, errmsg)
  @errcode = errcode
  @errmsg = errmsg

  super(format('[%s]: %s', @errcode, @errmsg))
end