github.com/cosmos/cosmos-sdk@v0.50.10/x/authz/errors.go (about) 1 package authz 2 3 import "cosmossdk.io/errors" 4 5 // x/authz module sentinel errors 6 var ( 7 // ErrNoAuthorizationFound error if there is no authorization found given a grant key 8 ErrNoAuthorizationFound = errors.Register(ModuleName, 2, "authorization not found") 9 // ErrInvalidExpirationTime error if the set expiration time is in the past 10 ErrInvalidExpirationTime = errors.Register(ModuleName, 3, "expiration time of authorization should be more than current time") 11 // ErrUnknownAuthorizationType error for unknown authorization type 12 ErrUnknownAuthorizationType = errors.Register(ModuleName, 4, "unknown authorization type") 13 // ErrNoGrantKeyFound error if the requested grant key does not exist 14 ErrNoGrantKeyFound = errors.Register(ModuleName, 5, "grant key not found") 15 // ErrAuthorizationExpired error if the authorization has expired 16 ErrAuthorizationExpired = errors.Register(ModuleName, 6, "authorization expired") 17 // ErrGranteeIsGranter error if the grantee and the granter are the same 18 ErrGranteeIsGranter = errors.Register(ModuleName, 7, "grantee and granter should be different") 19 // ErrAuthorizationNumOfSigners error if an authorization message does not have only one signer 20 ErrAuthorizationNumOfSigners = errors.Register(ModuleName, 9, "authorization can be given to msg with only one signer") 21 // ErrNegativeMaxTokens error if the max tokens is negative 22 ErrNegativeMaxTokens = errors.Register(ModuleName, 12, "max tokens should be positive") 23 )