Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Mark ApiError as non_exhaustive #125

Merged
merged 2 commits into from
Oct 11, 2021
Merged

Conversation

WaffleLapkin
Copy link
Contributor

Reasoning: it is practically impossible to match every error (there are too many), so this won't make a difference for users. For us on the other hand this allows adding new errors without breaking changes (which is really helpful since we don't know all errors that the API can return).

@WaffleLapkin WaffleLapkin requested a review from hirrolot October 10, 2021 13:42
Copy link
Contributor

@hirrolot hirrolot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, update CHANGELOG.md. The change itself seems to be fine.

@WaffleLapkin
Copy link
Contributor Author

@hirrolot done

@hirrolot hirrolot self-requested a review October 11, 2021 14:25
@WaffleLapkin WaffleLapkin merged commit 2ceb2c5 into master Oct 11, 2021
@WaffleLapkin WaffleLapkin deleted the api_error_non_exhaustive branch October 11, 2021 14:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants