Registry / utility / cockroachdb-errors

cockroachdb-errors

JSON →
library1.13.0gogounverified

Package errors provides rich error types with stack traces and safe details for Go applications.

go get github.com/cockroachdb/errors
INSTALL
IMPORT
SIG · COCKROACHDB-ERRORS
C
cockroachdb-errors
utilitygov1.13.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/cockroachdb/errors

Creates and prints a new error with stack trace.

package main import ( "fmt" "github.com/cockroachdb/errors" ) func main() { err := errors.New("something went wrong") fmt.Println(err) }
Debug
Known issues
gotchaThis package replaces the standard 'errors' package; importing both can cause confusion.
fix
Use 'github.com/cockroachdb/errors' consistently instead of 'errors'.
affects: all
Upgrade
Version history
1.13.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
cockroachdb-errors — go get cockroachdb-errors · libregistry