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

github.com/saucelabs/customerror

Package customerror provides the base block to create custom errors. It also provides built-in custom errors covering some common cases. A Custom Error provides context - a `Message` to an optionally wrapped `Err`. Additionally a `Code` - for example "E1010", and `StatusCode` can be provided. Both static (pre-created), and dynamic (in-line) errors can be easily created. `Code` helps a company build a catalog of errors, which helps, and improves customer service. Examples: See `example_test.go` or the Example section of the GoDoc documention.

Ecosystem
proxy.golang.org
Latest Release
v1.0.4
over 3 years ago
Versions
7
Dependent Packages
13
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/saucelabs/customerror
spec
License MIT
Namespace github.com/saucelabs
First Release over 4 years ago
Last Synced 24 days ago
Repository
Stars 1 on GitHub
Forks 1 on GitHub
Docker Dependents 13
Docker Downloads 468
Rankings on proxy.golang.org
Overall Top 7.8%
Dependent packages Top 1.4%
Dependent repos Top 3.5%
Docker downloads Top 1.6%