forked from p93542168/wheat-cache
feat(errorx): add err
This commit is contained in:
parent
74ab13c756
commit
67da63ac03
|
@ -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)
|
||||
}
|
Loading…
Reference in New Issue