taocpp / taopq

C++ client library for PostgreSQL
Boost Software License 1.0
265 stars 40 forks source link

Common base class for timeout_reached, network_error, sql_error #68

Closed MeanSquaredError closed 11 months ago

MeanSquaredError commented 1 year ago

Do you think that it makes sense to have a common base class for timeout_reached, network_error and sql_error? The base class could be called common_error, taopq_error or other similar name. This would allow catching all these exception types with a single catch block.

If you think that such a base class makes sense, then I can provide a PR for it.