-
Notifications
You must be signed in to change notification settings - Fork 47
/
errors.go
23 lines (21 loc) · 1.64 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
package types
import (
errorsmod "cosmossdk.io/errors"
)
// x/payment module sentinel errors
var (
ErrReachPaymentAccountLimit = errorsmod.Register(ModuleName, 1200, "reach payment account count limit")
ErrInvalidState = errorsmod.Register(ModuleName, 1201, "invalid state")
ErrPaymentAccountNotFound = errorsmod.Register(ModuleName, 1202, "payment account not found")
ErrStreamRecordNotFound = errorsmod.Register(ModuleName, 1203, "stream record not found")
ErrNotPaymentAccountOwner = errorsmod.Register(ModuleName, 1204, "not payment account owner")
ErrPaymentAccountAlreadyNonRefundable = errorsmod.Register(ModuleName, 1205, "payment account has already be set as non-refundable")
ErrInsufficientBalance = errorsmod.Register(ModuleName, 1206, "insufficient balance")
ErrReceiveAccountNotExist = errorsmod.Register(ModuleName, 1207, "receive account not exist")
ErrInvalidStreamAccountStatus = errorsmod.Register(ModuleName, 1208, "invalid stream account status")
ErrInvalidParams = errorsmod.Register(ModuleName, 1209, "invalid params")
ErrNoDelayedWithdrawal = errorsmod.Register(ModuleName, 1210, "no delayed withdrawal found")
ErrIncorrectWithdrawAmount = errorsmod.Register(ModuleName, 1211, "the withdrawal amount is not equal to the delayed one")
ErrNotReachTimeLockDuration = errorsmod.Register(ModuleName, 1212, "the withdrawal does not reach to the delayed duration")
ErrExistsDelayedWithdrawal = errorsmod.Register(ModuleName, 1213, "delayed withdrawal already exists")
)