aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/exceptions.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/pgsql/exceptions.cxx')
-rw-r--r--odb/pgsql/exceptions.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/odb/pgsql/exceptions.cxx b/odb/pgsql/exceptions.cxx
index 23a47cb..f4ac22a 100644
--- a/odb/pgsql/exceptions.cxx
+++ b/odb/pgsql/exceptions.cxx
@@ -41,6 +41,12 @@ namespace odb
return what_.c_str ();
}
+ database_exception* database_exception::
+ clone () const
+ {
+ return new database_exception (*this);
+ }
+
//
// cli_exception
//
@@ -61,5 +67,11 @@ namespace odb
{
return what_.c_str ();
}
+
+ cli_exception* cli_exception::
+ clone () const
+ {
+ return new cli_exception (*this);
+ }
}
}