BritishGeologicalSurvey / etlhelper

ETL Helper is a Python ETL library to simplify data transfer into and out of databases.
https://britishgeologicalsurvey.github.io/etlhelper/
GNU Lesser General Public License v3.0
105 stars 25 forks source link

Catch base classes for driver exceptions #123

Closed volcan01010 closed 2 years ago

volcan01010 commented 2 years ago

The DBAPI 2.0 specifies that all exceptions raised by the database drivers must inherit from DatabaseError or Interface error. Using those as the exception classes caught by ETLHelper means that we don't need to maintain a list of individual exception types for each different database.

https://peps.python.org/pep-0249/#exceptions

To test