代码拉取完成,页面将自动刷新
package examples
import (
github_com_go_courier_statuserror "gitee.com/go-genie/statuserror"
)
var _ interface {
github_com_go_courier_statuserror.StatusError
} = (*StatusError)(nil)
func (v StatusError) StatusErr() *github_com_go_courier_statuserror.StatusErr {
return &github_com_go_courier_statuserror.StatusErr{
Key: v.Key(),
Code: v.Code(),
Msg: v.Msg(),
CanBeTalkError: v.CanBeTalkError(),
}
}
func (v StatusError) Unwrap() error {
return v.StatusErr()
}
func (v StatusError) Error() string {
return v.StatusErr().Error()
}
func (v StatusError) StatusCode() int {
return github_com_go_courier_statuserror.StatusCodeFromCode(int(v))
}
func (v StatusError) Code() int {
if withServiceCode, ok := (interface{})(v).(github_com_go_courier_statuserror.StatusErrorWithServiceCode); ok {
return withServiceCode.ServiceCode() + int(v)
}
return int(v)
}
func (v StatusError) Key() string {
switch v {
case Unauthorized:
return "Unauthorized"
case InternalServerError:
return "InternalServerError"
}
return "UNKNOWN"
}
func (v StatusError) Msg() string {
switch v {
case Unauthorized:
return "Unauthorized"
case InternalServerError:
return "InternalServerError"
}
return "-"
}
func (v StatusError) CanBeTalkError() bool {
switch v {
case Unauthorized:
return true
case InternalServerError:
return false
}
return false
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。