chewr / witchcraft-go-error

Go error wrapping and formatting with loggable structured parameters

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

witchcraft-go-error

witchcraft-error-go defines the werror package, which provides an implementation of the error interface that stores safe and unsafe parameters and has the ability to specify another error as a cause.

Associating structured safe and unsafe parameters with an error allows other infrastructure such as logging to make decisions about what parameters should or should not be extricated.

TODO:

  • Provide example usage and output in README

License

This project is made available under the Apache 2.0 License.

About

Go error wrapping and formatting with loggable structured parameters

License:Apache License 2.0


Languages

Language:Go 78.7%Language:Shell 21.3%