package
0.0.0-20220323014127-0e85dd5dcadd
Repository: https://github.com/stevenacoffman/anotherr.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

This package aims to be used as a drop-in replacement to github.com/pkg/errors and Go's standard errors package.

Compatibility with Khan webapp errors is also provided, but instead of Wrap, use KhanWrap. All other functions, like NotFound(args ...interface{}) should be drop-in replacements.

Additionally, it provides all the benefits of cockroachdb/errors:

  • it provides Wrap primitives akin to those found in github.com/pkg/errors.
  • it is compatible with both the causer interface (Cause() error) from github.com/pkg/errors and the Wrapper interface (Unwrap() error) from Go 2.
  • it enables fast, reliable and secure determination of whether a particular cause is present (not relying on the presence of a substring in the error message).
  • Stack traces for troubleshooting
  • it is composable, which makes it extensible with additional error annotations; for example, the basic functionality has HTTP error codes.