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

Define base error type and use stdlib error wrapping #1662

Open
2 tasks
Tracked by #833
meatballhat opened this issue Jan 23, 2023 · 0 comments
Open
2 tasks
Tracked by #833

Define base error type and use stdlib error wrapping #1662

meatballhat opened this issue Jan 23, 2023 · 0 comments
Labels
area/v3 relates to / is being considered for v3
Milestone

Comments

@meatballhat
Copy link
Member

meatballhat commented Jan 23, 2023

The stdlib error wrapping capability via fmt + %w allows for error wrapping as defined in the Go 2 error wrapping spec (citation needed) and as understood by the third-party errors package (and probably many others). The work to be done is:

  • define a const-ish "base" error type for errors that originate in this package
  • replace all runtime generated errors (errors.New) with error wrapping via fmt + %w
@meatballhat meatballhat added this to the Release 3.x milestone Jan 23, 2023
@dearchap dearchap added the area/v3 relates to / is being considered for v3 label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/v3 relates to / is being considered for v3
Projects
None yet
Development

No branches or pull requests

2 participants