-
Notifications
You must be signed in to change notification settings - Fork 367
/
errors.go
21 lines (18 loc) · 1.1 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package types
import (
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
// DONTCOVER
// Errors used by the issuance module
var (
ErrAssetNotFound = sdkerrors.Register(ModuleName, 2, "no asset with input denom found")
ErrNotAuthorized = sdkerrors.Register(ModuleName, 3, "account not authorized")
ErrAssetPaused = sdkerrors.Register(ModuleName, 4, "asset is paused")
ErrAccountBlocked = sdkerrors.Register(ModuleName, 5, "account is blocked")
ErrAccountAlreadyBlocked = sdkerrors.Register(ModuleName, 6, "account is already blocked")
ErrAccountAlreadyUnblocked = sdkerrors.Register(ModuleName, 7, "account is already unblocked")
ErrIssueToModuleAccount = sdkerrors.Register(ModuleName, 8, "cannot issue tokens to module account")
ErrExceedsSupplyLimit = sdkerrors.Register(ModuleName, 9, "asset supply over limit")
ErrAssetUnblockable = sdkerrors.Register(ModuleName, 10, "asset does not support block/unblock functionality")
ErrAccountNotFound = sdkerrors.Register(ModuleName, 11, "cannot block account that does not exist in state")
)