-
Notifications
You must be signed in to change notification settings - Fork 44
/
errors.go
26 lines (22 loc) · 1.47 KB
/
errors.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
package types
import (
"cosmossdk.io/errors"
)
// x/virtualgroup module sentinel errors
var (
ErrGVGFamilyNotExist = errors.Register(ModuleName, 1100, "global virtual group family not exist.")
ErrGVGNotExistInFamily = errors.Register(ModuleName, 1101, "global virtual group not exist in family.")
ErrGVGNotExist = errors.Register(ModuleName, 1102, "global virtual group not exist.")
ErrGVGNotEmpty = errors.Register(ModuleName, 1103, "the store size of gvg is not zero")
ErrGenSequenceIDError = errors.Register(ModuleName, 1104, "generate sequence id error.")
ErrWithdrawAmountTooLarge = errors.Register(ModuleName, 1105, "withdrawal amount is too large.")
ErrSwapOutFailed = errors.Register(ModuleName, 1106, "swap out failed.")
ErrLVGNotExist = errors.Register(ModuleName, 1107, "local virtual group not exist.")
ErrSPCanNotExit = errors.Register(ModuleName, 1108, "the sp can not exit now.")
ErrSettleFailed = errors.Register(ModuleName, 1109, "fail to settle.")
ErrInvalidGVGCount = errors.Register(ModuleName, 1120, "the count of global virtual group ids is invalid.")
ErrWithdrawFailed = errors.Register(ModuleName, 1121, "with draw failed.")
ErrLimitationExceed = errors.Register(ModuleName, 1123, "limitation exceed.")
ErrInsufficientStaking = errors.Register(ModuleName, 1125, "insufficient staking for gvg")
ErrInvalidDenom = errors.Register(ModuleName, 2000, "Invalid denom.")
)