Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Provide better error handling and error response parsing#13

Merged
gonzalezreal merged 1 commit intomasterfrom
decode-error-responses
Jul 17, 2020
Merged

Provide better error handling and error response parsing#13
gonzalezreal merged 1 commit intomasterfrom
decode-error-responses

Conversation

@gonzalezreal
Copy link
Owner

This PR provides better error handling, by unifying all possible errors in an single type APIClientError.

On top of that, it provides the means to specify a type for the error response on each endpoint, as suggested in #8.

Additionally, this PR introduces a few changes in the Endpoint type to let users of the library completely customise the decoding of responses and error responses, as suggested in #9.

Thanks @kevinrenskers for the feedback.

@gonzalezreal
Copy link
Owner Author

README needs to be updated with the new changes.

@gonzalezreal gonzalezreal merged commit 19920bf into master Jul 17, 2020
@gonzalezreal gonzalezreal deleted the decode-error-responses branch July 17, 2020 14:23
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.

1 participant