Skip to content

Really check for Statuscode errors and return Error classes #247

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

Merged
merged 7 commits into from
Mar 11, 2023

Conversation

Apollon77
Copy link
Collaborator

This PR uses the new Error classes to instoduce StatusError classes that are thrown when an unexpected StatusCode is returned.

This also fixes the "waitForSucces" to really wait for a success reswponse and not for "any" response

@Apollon77 Apollon77 requested a review from mfucci February 12, 2023 20:32
@Apollon77
Copy link
Collaborator Author

Ok, I checked more in deoth the throwIfError and waitForSuccess and optimized more ... hopefully now less "duplicate" code

@Apollon77 Apollon77 requested a review from mfucci February 13, 2023 22:02
@Apollon77
Copy link
Collaborator Author

@mfucci Ready for re-reveiw ... I adjusted ... you were right regarding duplicste throwIfError

@Apollon77 Apollon77 requested a review from mfucci March 2, 2023 16:21
@Apollon77
Copy link
Collaborator Author

Ready for re-review

@Apollon77 Apollon77 requested a review from mfucci March 11, 2023 10:38
@Apollon77 Apollon77 merged commit 1019006 into mfucci:main Mar 11, 2023
@Apollon77 Apollon77 deleted the statuscodeerrors branch March 11, 2023 20:57
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.

2 participants