import "github.com/qq1060656096/err"
err := err.NewErr("test", 500100100)
err.SetLocation()
webErr := err.NewWebErr(503, "http 503", 500100101)
webErr.SetLocation()
webErr = err.CustomUnprocessableEntity("参数错误", 422100100, nil)
webErr.SetLocation()
webErr = err.CustomInternalServerError("数据库连接失败", 500100102, nil)
webErr.SetLocation()
-
Notifications
You must be signed in to change notification settings - Fork 0
License
qq1060656096/err
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published