forked from xiaoenai/tp-micro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
status.go
19 lines (17 loc) · 883 Bytes
/
status.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package micro
import "github.com/henrylee2cn/erpc/v6"
// NOTE: error code range [-1,999]
var (
// RerrClientClosed: client is closed.
RerrClientClosed = erpc.NewStatus(100, "client is closed", "")
// RerrInvalidParameter: Invalid Parameter
RerrInvalidParameter = erpc.NewStatus(erpc.CodeBadMessage, "Invalid Parameter", "")
// RerrInternalServerError: System is busy, please try again later
RerrInternalServerError = erpc.NewStatus(erpc.CodeInternalServerError, "System is busy, please try again later", "")
// RerrNotFound: Not Found
RerrNotFound = erpc.NewStatus(erpc.CodeNotFound, "Not Found", "")
// RerrNotOnline: User is not online
RerrNotOnline = erpc.NewStatus(erpc.CodeNotFound, "Not Found", "User is not online")
// RerrRenderFailed: Template Rendering Failed
RerrRenderFailed = erpc.NewStatus(erpc.CodeInternalServerError, "Template Rendering Failed", "")
)