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

#372: Throw a MollieApiException for all types of unsuccesfull API response codes #374

Merged

Conversation

Viincenttt
Copy link
Owner

@Viincenttt Viincenttt commented Jun 28, 2024

Fix for #372

BaseMollieClient now throws a MollieApiException for every type of failed HTTP status code. Previously, this was only done for a specific set of HTTP status codes. In all other cases, the old implementation raised a HttpRequestException. This made it more difficult for consumers to catch exceptions, since they had to catch both the MollieApiException and the HttpRequestException types.

@Viincenttt Viincenttt merged commit 52f2f65 into development Jun 30, 2024
1 check passed
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