Registry / utility / errors

errors

JSON →
library1.1.0gogounverified

Package errors implements custom error interfaces for cosmos-sdk with stacktrace support.

go get cosmossdk.io/errors
INSTALL
IMPORT
SIG · ERRORS
E
errors
utilitygov1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

errors
cosmossdk.io/errors

Register a custom error and wrap it with additional context.

package main import ( "fmt" "cosmossdk.io/errors" ) func main() { err := errors.Register(1, "generic error") wrapped := errors.Wrap(err, "additional context") fmt.Printf("%+v\n", wrapped) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources