-
Notifications
You must be signed in to change notification settings - Fork 0
/
define.go
34 lines (28 loc) · 1.17 KB
/
define.go
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
34
package Orangedb
import "errors"
var (
ResponseOK = "OK"
)
var (
ErrEmptyCommand = errors.New("empty command")
ErrNotFound = errors.New("command not found")
ErrNotAuthenticated = errors.New("not authenticated")
ErrAuthenticationFailure = errors.New("authentication failure")
ErrCmdParams = errors.New("invalid command param")
ErrValue = errors.New("value is not an integer or out of range")
ErrSyntax = errors.New("syntax error")
ErrOffset = errors.New("offset bit is not an natural number")
ErrBool = errors.New("value is not 0 or 1")
ErrInvalidArgument = errors.New("invalid argument")
ErrAlreadyInTransaction = errors.New("already in transaction ")
ErrNotInTransaction = errors.New("not in transaction ")
// Queue is Empty.
ErrEmptyQueue = errors.New("queue is empty")
// Queue is Full.
ErrFullQueue = errors.New("queue is full")
ErrOutOfRange = errors.New("out of range")
ErrNotLeader = errors.New("not leader")
ErrNotFindPeer = errors.New("can't find perr")
ErrNotLocalKey = errors.New("not local key")
ErrNotFindKey = errors.New("not find key")
)