proxy.golang.org : github.com/HRA42/errors
Package errors defines error types used across Lantern project. or New() method will create a new error with err as its cause. Wrap will wrap err, returning nil if err is nil. If err is an error from Go's standard library, errors will extract details from that error, at least the Go type name and the return value of err.Error(). One can record the operation on which the error occurred using Op(): One can also record additional data: When used with github.com/getlantern/ops, Error captures its current context and propagates that data for use in calling layers. When used with github.com/getlantern/golog, Error provides stacktraces: It's the caller's responsibility to avoid race conditions accessing the same error instance from multiple goroutines.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/%21h%21r%21a42/errors
License: Apache-2.0
Latest release: over 1 year ago
First release: over 4 years ago
Namespace: github.com/HRA42
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 21 days ago