-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.go
More file actions
33 lines (23 loc) · 783 Bytes
/
code.go
File metadata and controls
33 lines (23 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package errors
// Code implements error code number, you can extends this with define constants with this type
type Code uint
const (
// CodeNil means no error exists
CodeNil Code = iota
// CodeUnimplemented means code does not implemented
CodeUnimplemented
// CodeUnknown means unknown error raised
CodeUnknown
// CodeInternal means internal module returns error
CodeInternal
// CodeUnauthenticated means user does not authenticated
CodeUnauthenticated
// CodePermissionDenied means user does not have access permissions
CodePermissionDenied
// CodeInvalidData means input parameters are invalid
CodeInvalidData
// CodeNotFound means there is no data found
CodeNotFound
// CodeAlreadyExists means there is same data is already exists
CodeAlreadyExists
)