package
0.53.0-beta.2
Repository: https://github.com/cosmos/cosmos-sdk.git
Documentation: pkg.go.dev

# README

Errors

:::note this package is deprecated, users should use "cosmossdk.io/errors" instead. :::

Errors is a package that was deprecated but still contains error types. These error types are meant to be used by the Cosmos SDK to define error types. It is recommended that modules define their own error types, even if it is a duplicate of errors in this package. This will allow developers to more easily debug module errors and separate them from Cosmos SDK errors.

For this package's documentation, please see the go documentation.

# Constants

RootCodespace is the codespace for all errors defined in this package.

# Variables

ErrAppConfig defines an error occurred if application configuration is misconfigured.
ErrConflict defines a conflict error, e.g.
ErrInsufficientFee to doc.
ErrInsufficientFunds is used when the account cannot pay requested amount.
ErrInvalidAddress to doc.
ErrInvalidChainID defines an error when the chain-id is invalid.
ErrInvalidCoins to doc.
ErrInvalidGasLimit defines an error when an invalid GasWanted value is supplied.
ErrInvalidHeight defines an error for an invalid height.
ErrInvalidPubKey to doc.
ErrInvalidRequest defines an ABCI typed error where the request contains invalid data.
ErrInvalidSequence is used the sequence number (nonce) is incorrect for the signature.
ErrInvalidType defines an error an invalid type.
ErrInvalidVersion defines a general error for an invalid version.
ErrIO should be used to wrap internal errors caused by external operation.
ErrJSONMarshal defines an ABCI typed JSON marshaling error.
ErrJSONUnmarshal defines an ABCI typed JSON unmarshalling error.
ErrKeyNotFound defines an error when the key doesn't exist.
ErrLogic defines an internal logic error, e.g.
ErrMemoTooLarge to doc.
ErrMempoolIsFull defines an ABCI typed error where the mempool is full.
ErrNoSignatures to doc.
ErrNotFound defines an error when requested entity doesn't exist in the state.
ErrNotSupported is returned when we call a branch of a code which is currently not supported.
ErrorInvalidGasAdjustment defines an error for an invalid gas adjustment.
ErrorInvalidSigner defines an error when the tx intended signer does not match the given signer.
ErrOutOfGas to doc.
ErrPackAny defines an error when packing a protobuf message to Any fails.
ErrPanic should only be set when we recovering from a panic.
ErrTooManySignatures to doc.
ErrTxDecode is returned if we cannot parse a transaction.
ErrTxInMempoolCache defines an ABCI typed error where a tx already exists in the mempool.
ErrTxTimeout defines an error for when a tx is rejected out due to an explicitly set timeout timestamp.
ErrTxTimeoutHeight defines an error for when a tx is rejected out due to an explicitly set timeout height.
ErrTxTooLarge defines an ABCI typed error where tx is too large.
ErrUnauthorized is used whenever a request without sufficient authorization is handled.
ErrUnknownAddress to doc.
ErrUnknownExtensionOptions defines an error for unknown extension options.
ErrUnknownRequest to doc.
ErrUnpackAny defines an error when unpacking a protobuf message from Any fails.
ErrWrongPassword defines an error when the key password is invalid.
ErrWrongSequence defines an error where the account sequence defined in the signer info doesn't match the account's actual sequence number.