CartoDB / carto-python

CARTO Python client
https://carto.com
BSD 3-Clause "New" or "Revised" License
154 stars 62 forks source link

Feature request: More accurate exception types #85

Closed andy-esch closed 5 years ago

andy-esch commented 6 years ago

Right now all exceptions are CartoException, which makes it hard to handle specific exceptions but let others be raised. E.g., If I want to print a special message about limits being hit, I would have to use the error string which could change without notice in future updates to the platform.

andy-esch commented 6 years ago

Instead of CartoException, what about returning the requests' exceptions instead? http://docs.python-requests.org/en/master/_modules/requests/exceptions/