github.com/neuronlabs/errors
Package errors provides leightweight error handling and classification primitives. The package defines blazingly fast classification system. A class is composed of the major, minor and index subclassifications. Each subclassifaction has different bitwise length with total of 32 bits. Thus a Class is a wrapper over uint32. A major is composed of 8, minor 10 and index of 14 bits. Example: Class with decimal value of 44205263, in a binary form equals to The class concept was inspired by the need of multiple errors with the same logic but different messages. The package provides simple error handling interfaces and functions. It allows to create simple and detailed classified errors.
proxy.golang.org
v1.2.0
almost 7 years ago
3
10
1
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/neuronlabs/errors
spec |
| License | Apache-2.0 |
| Namespace | github.com/neuronlabs |
| First Release | almost 7 years ago |
| Last Synced | 6 days ago |
Repository
| Stars | 4 on GitHub |
| Forks | 1 on GitHub |