feat(errorx): add err

This commit is contained in:
bandl 2021-10-05 16:39:31 +08:00
parent 74ab13c756
commit 67da63ac03
1 changed files with 9 additions and 0 deletions

9
pkg/errorx/dao.go Normal file
View File

@ -0,0 +1,9 @@
package errorx
func DaoTypeErr(typ string) error {
return New("the type is not: %s", typ)
}
func NotKeyErr(key string) error {
return New("the key is not exist, key:%s", key)
}