errorx
errorx copied to clipboard
A comprehensive error handling library for Go
What happens? `errorx.Decorate` returns an error with the following properties: * `e.IsOfType(...)` always returns `false` * `e.Type()` returns `synthetic.foreign` I suggest that `errorx.Decorate(nil, "")` should either return nil or panic.
There are a number of `errorx` functions that rely on `Cast` implementation. `Cast` was designed in pre Go 1.13 times and it doesn't respect wrap semantic of Go 1.13. While...
How i can extract stack trace from this library Error type like at https://github.com/pkg/errors library? ```go type stackTracer interface { StackTrace() errors.StackTrace } err.(stackTracer).StackTrace() // get structured stack trace ```...
It would be, IMHO, reasonable to make a custom `MarshalJSON()` function to handle marshaling given Error with all printable properties and, potentially, stack trace to JSON. Maybe not all will...
I am trying to use your package for certain use cases and i am confused beyond a point. For instance, i have scenarios for custom errors and error types or...
In our applications, we catch all errors in our webservices and our batches and create [sentry issues](https://sentry.io/welcome/) with the errorx stacktrace. ```golang errxFrames := errx.GetFrames() framesLen := len(errxFrames) sentryFrames :=...