Versions in this module Expand all Collapse all v0 v0.43.1 Aug 21, 2021 Changes in this version + const RootCodespace + const SuccessABCICode + const UndefinedCodespace + var ErrAppConfig = Register(RootCodespace, 40, "error in app.toml") + var ErrConflict = Register(RootCodespace, 36, "conflict") + var ErrIO = Register(RootCodespace, 39, "Internal IO error") + var ErrInsufficientFee = Register(RootCodespace, 13, "insufficient fee") + var ErrInsufficientFunds = Register(RootCodespace, 5, "insufficient funds") + var ErrInvalidAddress = Register(RootCodespace, 7, "invalid address") + var ErrInvalidChainID = Register(RootCodespace, 28, "invalid chain-id") + var ErrInvalidCoins = Register(RootCodespace, 10, "invalid coins") + var ErrInvalidHeight = Register(RootCodespace, 26, "invalid height") + var ErrInvalidPubKey = Register(RootCodespace, 8, "invalid pubkey") + var ErrInvalidRequest = Register(RootCodespace, 18, "invalid request") + var ErrInvalidSequence = Register(RootCodespace, 3, "invalid sequence") + var ErrInvalidType = Register(RootCodespace, 29, "invalid type") + var ErrInvalidVersion = Register(RootCodespace, 27, "invalid version") + var ErrJSONMarshal = Register(RootCodespace, 16, "failed to marshal JSON bytes") + var ErrJSONUnmarshal = Register(RootCodespace, 17, "failed to unmarshal JSON bytes") + var ErrKeyNotFound = Register(RootCodespace, 22, "key not found") + var ErrLogic = Register(RootCodespace, 35, "internal logic error") + var ErrMemoTooLarge = Register(RootCodespace, 12, "memo too large") + var ErrMempoolIsFull = Register(RootCodespace, 20, "mempool is full") + var ErrNoSignatures = Register(RootCodespace, 15, "no signatures supplied") + var ErrNotFound = Register(RootCodespace, 38, "not found") + var ErrNotSupported = Register(RootCodespace, 37, "feature not supported") + var ErrOutOfGas = Register(RootCodespace, 11, "out of gas") + var ErrPackAny = Register(RootCodespace, 33, "failed packing protobuf message to Any") + var ErrPanic = Register(UndefinedCodespace, 111222, "panic") + var ErrTooManySignatures = Register(RootCodespace, 14, "maximum number of signatures exceeded") + var ErrTxDecode = Register(RootCodespace, 2, "tx parse error") + var ErrTxInMempoolCache = Register(RootCodespace, 19, "tx already in mempool") + var ErrTxTimeoutHeight = Register(RootCodespace, 30, "tx timeout height") + var ErrTxTooLarge = Register(RootCodespace, 21, "tx too large") + var ErrUnauthorized = Register(RootCodespace, 4, "unauthorized") + var ErrUnknownAddress = Register(RootCodespace, 9, "unknown address") + var ErrUnknownExtensionOptions = Register(RootCodespace, 31, "unknown extension options") + var ErrUnknownRequest = Register(RootCodespace, 6, "unknown request") + var ErrUnpackAny = Register(RootCodespace, 34, "failed unpacking protobuf message from Any") + var ErrWrongPassword = Register(RootCodespace, 23, "invalid account password") + var ErrWrongSequence = Register(RootCodespace, 32, "incorrect account sequence") + var ErrorInvalidGasAdjustment = Register(RootCodespace, 25, "invalid gas adjustment") + var ErrorInvalidSigner = Register(RootCodespace, 24, "tx intended signer does not match the given signer") + func ABCIError(codespace string, code uint32, log string) error + func ABCIInfo(err error, debug bool) (codespace string, code uint32, log string) + func AssertNil(err error) + func IsOf(received error, targets ...error) bool + func QueryResult(err error) abci.ResponseQuery + func Recover(err *error) + func Redact(err error) error + func ResponseCheckTx(err error, gw, gu uint64, debug bool) abci.ResponseCheckTx + func ResponseDeliverTx(err error, gw, gu uint64, debug bool) abci.ResponseDeliverTx + func WithType(err error, obj interface{}) error + func Wrap(err error, description string) error + func Wrapf(err error, format string, args ...interface{}) error + type Error struct + func New(codespace string, code uint32, desc string) *Error + func Register(codespace string, code uint32, description string) *Error + func (e *Error) Is(err error) bool + func (e Error) ABCICode() uint32 + func (e Error) Codespace() string + func (e Error) Error() string + func (e Error) Wrap(desc string) error + func (e Error) Wrapf(desc string, args ...interface{}) error