Registry / utility / decred-dcrwallet-errors-v2

decred-dcrwallet-errors-v2

JSON →
library2.0.0gogounverified

Package errors provides error creation and matching for all wallet systems, replacing the standard library errors package.

go get github.com/decred/dcrwallet/errors/v2
INSTALL
IMPORT
SIG · DECRED-DCRWALLET-E
D
decred-dcrwallet-errors-v2
utilitygov2.0.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
github.com/decred/dcrwallet/errors/v2

Creates and prints a new error.

package main import ( "fmt" "github.com/decred/dcrwallet/errors/v2" ) func main() { err := errors.New("something went wrong") fmt.Println(err) }
Debug
Known issues
gotchaPackage name 'errors' shadows standard library errors package, which may cause confusion.
fix
Use import alias or avoid importing both in the same file.
affects: >=2.0.0
Upgrade
Version history
2.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
decred-dcrwallet-errors-v2 — go get decred-dcrwallet-errors-v2 · libregistry