libpqxx 7.0.1: exception hierarchy tweak
No matter how careful you are, there's always some detail you miss. I made the transaction_rollback
a failure
in the new exception hierarchy, when I meant to make it an sql_error
. This exception and its sub-types happen when executing queries, and so they should be able to tell you the query, as well as report the "sqlstate" error code.
Technically this is an ABI break that should have happened in the 7.0.0 release. The constructor is different, which may break code. But only libpqxx should ever throw this exception, and perhaps some tests.
One way you may notice the difference is when catching both sql_error
and transaction_rollback
for the same try
block. In that case, your compiler may warn you that the one is now derived from the other.