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.
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 aHttpRequestException
. This made it more difficult for consumers to catch exceptions, since they had to catch both theMollieApiException
and theHttpRequestException
types.