Versions in this module Expand all Collapse all v0 v0.1.3 Nov 25, 2021 v0.1.1 Nov 25, 2021 Changes in this version + const RootCodespace + const SuccessABCICode + const UndefinedCodespace + 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 ErrMemoTooLarge = Register(RootCodespace, 12, "memo too large") + var ErrMempoolIsFull = Register(RootCodespace, 20, "mempool is full") + var ErrNoSignatures = Register(RootCodespace, 15, "no signatures supplied") + var ErrOutOfGas = Register(RootCodespace, 11, "out of gas") + 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 ErrTxTooLarge = Register(RootCodespace, 21, "tx too large") + var ErrUnauthorized = Register(RootCodespace, 4, "unauthorized") + var ErrUnknownAddress = Register(RootCodespace, 9, "unknown address") + var ErrUnknownRequest = Register(RootCodespace, 6, "unknown request") + var ErrWrongPassword = Register(RootCodespace, 23, "invalid account password") + 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 QueryResult(err error) abci.ResponseQuery + func Recover(err *error) + func Redact(err error) error + func ResponseCheckTx(err error, gw, gu uint64) abci.ResponseCheckTx + func ResponseDeliverTx(err error, gw, gu uint64) 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