-
Notifications
You must be signed in to change notification settings - Fork 201
/
errors.go
17 lines (15 loc) · 1 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package types
import (
errorsmod "cosmossdk.io/errors"
)
// x/autopilot module sentinel errors
var (
ErrInvalidPacketMetadata = errorsmod.Register(ModuleName, 1501, "invalid packet metadata")
ErrUnsupportedStakeibcAction = errorsmod.Register(ModuleName, 1502, "unsupported stakeibc action")
ErrInvalidClaimAirdropId = errorsmod.Register(ModuleName, 1503, "invalid claim airdrop ID (cannot be empty)")
ErrInvalidModuleRoutes = errorsmod.Register(ModuleName, 1504, "invalid number of module routes, only 1 module is allowed at a time")
ErrUnsupportedAutopilotRoute = errorsmod.Register(ModuleName, 1505, "unsupported autpilot route")
ErrInvalidReceiverAddress = errorsmod.Register(ModuleName, 1506, "receiver address must be specified when using autopilot")
ErrPacketForwardingInactive = errorsmod.Register(ModuleName, 1507, "autopilot packet forwarding is disabled")
ErrInvalidMemoSize = errorsmod.Register(ModuleName, 1508, "the memo or receiver field exceeded the max allowable size")
)