diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-12 20:54:28 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-06-12 20:54:28 +0100 |
commit | afd243cc87827c94f0cea73748ffc5c1fdf1880a (patch) | |
tree | ad3f9c39902a78026b24d9a32e8baf6ff2858281 /lib/output/pq/pqBindings.h | |
parent | Create a basic MySQL testing database class (diff) | |
download | mygrate-afd243cc87827c94f0cea73748ffc5c1fdf1880a.tar.bz2 mygrate-afd243cc87827c94f0cea73748ffc5c1fdf1880a.tar.xz mygrate-afd243cc87827c94f0cea73748ffc5c1fdf1880a.zip |
Avoid direct use of runtime_error in PostgreSQL stuff
Adds proper exception which extends it and gets the PostgreSQL error
message.
Diffstat (limited to 'lib/output/pq/pqBindings.h')
-rw-r--r-- | lib/output/pq/pqBindings.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output/pq/pqBindings.h b/lib/output/pq/pqBindings.h index c63b286..5df1a34 100644 --- a/lib/output/pq/pqBindings.h +++ b/lib/output/pq/pqBindings.h @@ -39,7 +39,7 @@ namespace MyGrate::Output::Pq { void operator()(const T &) { - throw std::runtime_error("Not implemented"); + throw std::logic_error("Not implemented"); } void operator()(const std::nullptr_t &) |