proxy.golang.org : github.com/stackus/errors : v0.1.7
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.
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/stackus/errors@v0.1.7
Published:
Indexed:
- github.com/cucumber/gherkin-go/v19 v19.0.3
- github.com/cucumber/godog v0.12.5
- github.com/cucumber/messages-go/v16 v16.0.1
- github.com/gofrs/uuid v4.0.0+incompatible
- github.com/golang/protobuf v1.5.2
- github.com/hashicorp/go-immutable-radix v1.3.0
- github.com/hashicorp/go-memdb v1.3.0
- github.com/hashicorp/golang-lru v0.5.4
- github.com/spf13/pflag v1.0.5
- google.golang.org/genproto v0.0.0-20220602131408-e326c6e8e9c8
- google.golang.org/grpc v1.47.0
- google.golang.org/protobuf v1.28.0