An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/stackus/errors

Package errors builds on Go 1.13 errors adding HTTP and GRPC code to your errors. Wrap() and Wrapf() When the wrap functions are used with one of the defined Err* constants you get back an error that you're able to pass the error through a GRPC server and client or use to build HTTP error messages and set the HTTP status. Wrapping any error other than an Error will return an error with the message formatted as "<message>: <error>". Wrapping an Error will return an error with an unaltered error message. The errors produced with wrap, that have also been wrapped first with an Err* can be send with SendGRPCError() and received with ReceiveGRPCError(). You may want to create and use GRPC server and client interceptors to avoid having to call the Send/Receive methods in every handler. The Err* constants are errors and can be used directly is desired.

Ecosystem
proxy.golang.org
Latest Release
v0.1.8
about 1 year ago
Versions
12
Dependent Packages
17
Dependent Repos
2
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/stackus/errors
spec
License MIT
Namespace github.com/stackus
First Release almost 5 years ago
Last Synced 5 days ago
Repository
Stars 3 on GitHub
Forks 1 on GitHub
Rankings on proxy.golang.org
Overall Top 8.1%
Dependent packages Top 1.2%
Dependent repos Top 3.5%