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

Refactor API errors #282

Merged
merged 4 commits into from
Dec 7, 2017
Merged

Refactor API errors #282

merged 4 commits into from
Dec 7, 2017

Conversation

KodrAus
Copy link
Member

@KodrAus KodrAus commented Nov 30, 2017

Closes #266

This rejigs the response errors so that we don't reveal so much information. It also makes the ApiError::Other variant private (in a new type) and removes some variants that can't be reasonably catered for programmatically, like parsing errors.

@KodrAus
Copy link
Member Author

KodrAus commented Dec 7, 2017

This PR also tweaks the types::prelude a bit to exclude the ParseError. I think as a general rule we should avoid including any error types in preludes, because they're usually captured in other types upstream and naming conflicts are common.

@KodrAus KodrAus merged commit 71d1a9d into vNext Dec 7, 2017
@KodrAus KodrAus deleted the feat/refactor-api-errors branch December 7, 2017 04:46
KodrAus added a commit that referenced this pull request Apr 29, 2018
* make unknown api errors private

* fix duplicate ParseError in prelude
KodrAus added a commit that referenced this pull request May 7, 2018
* make unknown api errors private

* fix duplicate ParseError in prelude
KodrAus added a commit that referenced this pull request Jan 25, 2019
* make unknown api errors private

* fix duplicate ParseError in prelude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant