taocpp / taopq

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

Add a base exception for all taopq exceptions. #69

Closed MeanSquaredError closed 1 year ago

MeanSquaredError commented 1 year ago

This PR adds a base_error exception type from which all the other exception types (timeout_reached, network_error, sql_error) derive. This allows catching all possible taopq exceptions with a single catch block. Earlier I suggested this change in https://github.com/taocpp/taopq/issues/68.

codecov-commenter commented 1 year ago

Codecov Report

Patch and project coverage have no change.

Comparison is base (fc080a6) 99.65% compared to head (40cef3e) 99.65%. Report is 1 commits behind head on main.

:exclamation: Current head 40cef3e differs from pull request most recent head 1e50ae5. Consider uploading reports for the commit 1e50ae5 to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #69 +/- ## ======================================= Coverage 99.65% 99.65% ======================================= Files 68 68 Lines 2297 2297 ======================================= Hits 2289 2289 Misses 8 8 ``` | [Files Changed](https://app.codecov.io/gh/taocpp/taopq/pull/69?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=taocpp) | Coverage Δ | | |---|---|---| | [src/lib/pq/exception.cpp](https://app.codecov.io/gh/taocpp/taopq/pull/69?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=taocpp#diff-c3JjL2xpYi9wcS9leGNlcHRpb24uY3Bw) | `100.00% <ø> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.