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

github.com/thalesfsp/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.2.9
over 1 year ago
Versions
31
Dependent Packages
13
Dependent Repos
3
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/thalesfsp/customerror
spec
License MIT
Namespace github.com/thalesfsp
First Release over 3 years ago
Last Synced 24 days ago
Repository
Stars 1 on GitHub
Forks 0 on GitHub
Rankings on proxy.golang.org
Dependent packages Top 1.4%
Dependent repos Top 2.9%