2 Star 1 Fork 2

go-mao/mao

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
exception.go 295 Bytes
一键复制 编辑 原始数据 按行查看 历史
haitgo 提交于 2022-12-03 11:58 . 1.0.1
package try
type Exception interface {
ErrCode() int32
ErrMsg() string
}
type BaseException struct {
code int32
msg string
}
// 错误代号
func (this *BaseException) ErrCode() int32 {
return this.code
}
// 错误消息
func (this *BaseException) ErrMsg() string {
return this.msg
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/go-mao/mao.git
git@gitee.com:go-mao/mao.git
go-mao
mao
mao
v1.0.4

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385