Registry / utility / juju-errors

juju-errors

JSON →
library1.0.0gogounverified

Provides error annotation with stack traces and cause retrieval for Go applications.

go get github.com/juju/errors
INSTALL
IMPORT
SIG · JUJU-ERRORS
J
juju-errors
utilitygov1.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/juju/errors

Creates a new error and prints its stack trace.

package main import ( "fmt" "github.com/juju/errors" ) func main() { err := errors.New("something went wrong") fmt.Println(errors.ErrorStack(err)) }
Debug
Known issues
gotchaThis package shadows the standard errors package; importing both can cause confusion.
fix
Use an import alias or avoid mixing with standard errors.
affects: >=1.0.0
Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
juju-errors — go get juju-errors · libregistry