Documentation
¶
Index ¶
- Variables
- func Assert()
- func AssertFn(fn reflect.Value) error
- func Debug()
- func ErrHandle(err interface{}, fn ...func(err *Err))
- func Exit(err interface{}) (fn func(...interface{}))
- func New(msg string, args ...interface{}) error
- func Panic(err interface{})
- func PanicErr(d1 interface{}, err error) interface{}
- func PanicM(err interface{}, msg string, args ...interface{})
- func PanicMM(err interface{}, fn func(err *Err))
- func PanicT(b bool, msg string, args ...interface{})
- func PanicTT(b bool, fn func(err *Err))
- func Resp(fn func(err *Err))
- func RespErr(err *error)
- func Wrap(err interface{}, msg string, args ...interface{}) error
- func WrapM(err interface{}, fn func(err *Err)) error
- type Err
Constants ¶
This section is empty.
Variables ¶
View Source
var Errs = struct { Done error UnknownType error HasExisted error }{ Done: errors.New("xerror.done"), UnknownType: errors.New("xerror.unknown_type"), HasExisted: errors.New("xerror.registry_is_existed"), }
Errs err tags
View Source
var SkipErrorFile = true
SkipErrorFile 是否跳过错误文件
Functions ¶
func Exit ¶ added in v0.1.27
func Exit(err interface{}) (fn func(...interface{}))
Exit os exit when panic
Types ¶
Click to show internal directories.
Click to hide internal directories.