amoniacou / pipedrive.rb

Pipedrive.com API Wrapper
MIT License
33 stars 56 forks source link

Let API Calls to raise exceptions for custom error handling #21

Closed baptou12 closed 1 year ago

baptou12 commented 2 years ago

The problem this pull request solves is that by forcing an automatic retry in the event of errors, we can't have error handling at the lib usage level. This becomes very problematic when there's a rate-limit error, as it retries directly (and therefore also fails directly).