Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ErrorWithCallers interface #35

Merged
merged 1 commit into from
Nov 7, 2016

Conversation

ConradIrwin
Copy link
Contributor

This allows the creation of error objects other than bugsnag.Error that have stack-traces.

The use case for us is making errors that are Retryable and also have the right stack trace: https://github.com/codeship/go-retro

Now I have more experience with go, I'd probably have written this library to use an interface type rather than a struct type from the start; but this is a backward compatible addition.

This allows the creation of error objects other than bugsnag.Error that
have stack-traces.

The use case for us is making errors that are Retryable and also
have the right stack trace: https://github.com/codeship/go-retro
@kattrali
Copy link
Contributor

Very cool! Yeah, a general rethinking of the library is due soon, and it would be good to use an interface type in the (major revision) future. In the meantime, this looks like a good addition.

@kattrali kattrali merged commit ff5b5a7 into bugsnag:master Nov 7, 2016
bullmo added a commit that referenced this pull request Nov 14, 2016
* master:
  Release v1.1.0
  Add ErrorWithCallers interface (#35)
  Add Gin middleware (#40)
  Fix tests on 1.7.1
  Fix tests on 1.7
  Add go 1.7 to travis
  Use relative links and avoid linebreaks in prose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants