1 Star 1 Fork 1

U语言组织 / U语言

forked from 秋来冬风 / U语言 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
default.go 491 Bytes
一键复制 编辑 原始数据 按行查看 历史
package errcode
import (
"context"
)
var (
DefaultErrCtx = NewErrCtx()
)
// Panic 调用 DefaultErrCtx.Panic
func Panic(file string, line int, addInfo Msg, err ...ErrCode) {
DefaultErrCtx.Panic(file, line, addInfo, err...)
}
// Errbol 调用 DefaultErrCtx.Errbol
func Errbol() bool {
return DefaultErrCtx.Errbol()
}
// Handle 调用 DefaultErrCtx.Handle
func Handle(ctx context.Context, errfn func(ErrInfo), retfn func()) { //错误处理
DefaultErrCtx.Handle(ctx, errfn, retfn)
}
Go
1
https://gitee.com/u-language/u-language.git
git@gitee.com:u-language/u-language.git
u-language
u-language
U语言
a214d6007862

搜索帮助

53164aa7 5694891 3bd8fe86 5694891