Top 0.2% dependent packages on proxy.golang.org
Top 0.9% dependent repos on proxy.golang.org
Top 0.1% forks on proxy.golang.org
Top 1.2% docker downloads on proxy.golang.org
proxy.golang.org : github.com/cosmos/cosmos-sdk/errors
Package errors implements custom error interfaces for cosmos-sdk. Error declarations should be generic and cover broad range of cases. Each returned error instance can wrap a generic error declaration to provide more details. This package provides a broad range of errors declared that fits all common cases. If an error is very specific for an extension it can be registered outside of the errors package. If it will be needed my many extensions, please consider registering it in the errors package. To create a new error instance use Register function. You must provide a unique, non zero error code and a short description, for example: When returning an error, you can attach to it an additional context information by using Wrap function, for example: The first time an error instance is wrapped a stacktrace is attached as well. Stacktrace information can be printed using %+v and %v formats.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/cosmos/cosmos-sdk/errors
Keywords:
blockchain
, cometbft
, cosmos-sdk
, cryptocurrency
, go
, golang
, tendermint
License: Apache-2.0
Latest release: 2 months ago
First release: over 3 years ago
Namespace: github.com/cosmos/cosmos-sdk
Dependent packages: 472
Dependent repositories: 39
Stars: 5,127 on GitHub
Forks: 2,698 on GitHub
Docker dependents: 7
Docker downloads: 587
See more repository details: repos.ecosyste.ms
Last synced: about 6 hours ago