// Code generated by "stringer -type ErrCode -linecomment"; DO NOT EDIT.

package gatecode

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[GLOBAL_ERR_NIL-1000]
	_ = x[GLOBAL_ERR_NOTLOGIN-1001]
	_ = x[GLOBAL_ERR_NOENT_SELECT-1002]
	_ = x[GLOBAL_ERR_NOPOWER-1003]
	_ = x[GLOBAL_ERR_UNFINISH-1004]
	_ = x[GLOBAL_ERR_ENTACCOUNT_STATUS-1005]
	_ = x[GLOBAL_ERR_ENTACCOUNT_AUTH_NOT-1006]
	_ = x[GLOBAL_ERR_ENTACCOUNT_AUTH_AWAIT-1007]
	_ = x[GLOBAL_ERR_ENTACCOUNT_AUTH_NOTPASS-1008]
	_ = x[GLOBAL_ERR_ENTACCOUNT_AUTH_EXPIRED-1009]
	_ = x[GLOBAL_ERR_RESOURCE_POWERCODE_ERR-1010]
	_ = x[GLOBAL_ERR_RESOURCE_PORWE_FAIL-1011]
	_ = x[GLOBAL_ERR_RESOURCE_PORWE_EXPIRED-1012]
	_ = x[GLOBAL_ERR_RESOURCE_PORWE_NOTENOUGH-1013]
	_ = x[GLOBAL_ERR_RESOURCE_PORWE_NOTHAS-1014]
	_ = x[GLOBAL_ERR_RESOURCE_PORWE_RECHARGE-1015]
	_ = x[GLOBAL_ERR_RESOURCE_PORWE_RECHARGE_FULL-1016]
	_ = x[GLOBAL_ERR_CONFIG_FAIL-1017]
	_ = x[GATEWAY_ERR_NIL-2000]
	_ = x[GATEWAY_MODULE_UNDEFINED-2001]
	_ = x[GATEWAY_MODULE_SERVER_ERR-2002]
	_ = x[GATEWAY_ROUTER_NOTFIND-2003]
	_ = x[GATEWAY_ROUTER_UPHOLD-2004]
	_ = x[GATEWAY_REGISTED_URL_ERR-2005]
	_ = x[GATEWAY_PROXY_ERR-2006]
	_ = x[GATEWAY_RPC_USERCENTER_ERR-2007]
	_ = x[GATEWAY_RPC_RESOURCECENTER_ERR-2008]
	_ = x[GATEWAY_HTML_RENDER_ERR-2009]
	_ = x[SERVER_ERR_NIL-3000]
	_ = x[SERVER_DETAIL_TIMEOUT-3001]
	_ = x[SERVER_DEDUCT_PARAM_LACK-3002]
	_ = x[OTHER_ERR_NIL-4000]
	_ = x[OTHER_ERR_UNDEFINED-4001]
	_ = x[OTHER_ERR_OFTEN-4002]
}

const (
	_ErrCode_name_0 = "global OK无用户身份无选择企业没有权限正在开发中企业账户已被冻结企业未认证企业认证待审核企业认证未通过企业认证已过期无效资源code权限校验失败权益已过期权益余额不足没有权限资源充值异常资源充值已达上限配置异常"
	_ErrCode_name_1 = "gateway ok未知节点节点无可用服务未注册路由地址接口维护中服务地址异常服务异常用户中心服务异常资源中心服务异常页面渲染异常"
	_ErrCode_name_2 = "server ok接口超时扣减异常"
	_ErrCode_name_3 = "server ok未知异常请求频繁"
)

var (
	_ErrCode_index_0 = [...]uint16{0, 9, 24, 39, 51, 66, 90, 105, 126, 147, 168, 184, 202, 217, 235, 247, 265, 289, 301}
	_ErrCode_index_1 = [...]uint8{0, 10, 22, 43, 64, 79, 97, 109, 133, 157, 175}
	_ErrCode_index_2 = [...]uint8{0, 9, 21, 33}
	_ErrCode_index_3 = [...]uint8{0, 9, 21, 33}
)

func (i ErrCode) String() string {
	switch {
	case 1000 <= i && i <= 1017:
		i -= 1000
		return _ErrCode_name_0[_ErrCode_index_0[i]:_ErrCode_index_0[i+1]]
	case 2000 <= i && i <= 2009:
		i -= 2000
		return _ErrCode_name_1[_ErrCode_index_1[i]:_ErrCode_index_1[i+1]]
	case 3000 <= i && i <= 3002:
		i -= 3000
		return _ErrCode_name_2[_ErrCode_index_2[i]:_ErrCode_index_2[i+1]]
	case 4000 <= i && i <= 4002:
		i -= 4000
		return _ErrCode_name_3[_ErrCode_index_3[i]:_ErrCode_index_3[i+1]]
	default:
		return "ErrCode(" + strconv.FormatInt(int64(i), 10) + ")"
	}
}
