Viincenttt / MollieApi

This project allows you to easily add the Mollie payment provider to your application.
MIT License
144 stars 83 forks source link

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

Closed Viincenttt closed 2 weeks ago

Viincenttt commented 2 weeks ago

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.