summaryrefslogtreecommitdiff
path: root/lib/output/pq/pqBindings.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-06-12 20:54:28 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-06-12 20:54:28 +0100
commitafd243cc87827c94f0cea73748ffc5c1fdf1880a (patch)
treead3f9c39902a78026b24d9a32e8baf6ff2858281 /lib/output/pq/pqBindings.h
parentCreate a basic MySQL testing database class (diff)
downloadmygrate-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.h2
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 &)