/
errors.go
25 lines (22 loc) · 925 Bytes
/
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
package types
// DONTCOVER
import errorsmod "cosmossdk.io/errors"
// x/claim module sentinel errors
var (
ErrTotalWeightNotSet = errorsmod.Register(ModuleName, 1101,
"total weight not set")
ErrTotalWeightParse = errorsmod.Register(ModuleName, 1102,
"total weight parse error")
ErrFailedToGetTotalWeight = errorsmod.Register(ModuleName, 1104,
"failed to get total weight")
ErrFailedToParseDec = errorsmod.Register(ModuleName, 1105,
"failed to parse dec from str")
ErrAirdropAlreadyExists = errorsmod.Register(ModuleName, 1106,
"airdrop with same identifier already exists")
ErrDistributorAlreadyExists = errorsmod.Register(ModuleName, 1107,
"airdrop with same distributor already exists")
ErrInvalidAmount = errorsmod.Register(ModuleName, 1108,
"cannot claim negative tokens")
ErrInvalidAccount = errorsmod.Register(ModuleName, 1109,
"only BaseAccount and StridePeriodicVestingAccount can claim")
)