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

util: add wrapper error helper type #375

Merged
merged 1 commit into from Mar 13, 2023

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented Mar 9, 2023

  • Add a WrapperError helper type that can be embedded by custom errors to easily implement the stacktracing and wrapping ability.

  • Make APIError and objectStorage.ErrNotExist use it.

@sgotti sgotti force-pushed the util_add_wrapper_error branch 4 times, most recently from 9171c56 to ab8d60f Compare March 13, 2023 11:29
* Add a WrapperError helper type that can be embedded by custom errors to
easily implement the stacktracing and wrapping ability.

* Make APIError and objectStorage.ErrNotExist use it.
@sgotti sgotti merged commit 11b76ea into agola-io:master Mar 13, 2023
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.

None yet

1 participant