From 43904af47c138feea6a5c6e04756c70bb2e41de7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 18 Mar 2013 14:13:37 +0200 Subject: Add separate exception for SQLite forced rollbacks --- odb/sqlite/exceptions.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'odb/sqlite/exceptions.cxx') diff --git a/odb/sqlite/exceptions.cxx b/odb/sqlite/exceptions.cxx index 40b2d4c..08cdf90 100644 --- a/odb/sqlite/exceptions.cxx +++ b/odb/sqlite/exceptions.cxx @@ -13,6 +13,16 @@ namespace odb namespace sqlite { // + // forced_rollback + // + + const char* forced_rollback:: + what () const throw () + { + return "transaction is forced to rollback"; + } + + // // database_exception // -- cgit v1.1