error module design

This commit is contained in:
zchh
2021-01-08 22:38:35 +08:00
parent 7d2c5486be
commit c8a88914f9
2 changed files with 55 additions and 0 deletions

11
core/codes/codes.go Normal file
View File

@@ -0,0 +1,11 @@
package codes
type Code uint32
const (
SessionSessionStartError Code = 5001001
)
var strToCode = map[string]Code{
`"SESSION_MODULE_SESSION_START_ERROR"`: SessionSessionStartError,
}