-
Notifications
You must be signed in to change notification settings - Fork 47
/
errors.go
19 lines (17 loc) · 1.16 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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")
)