aboutsummaryrefslogtreecommitdiff
path: root/odb/exceptions.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-01 12:41:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-01 12:41:01 +0200
commit37e1d992d234363ff9aef45555678b5ee7203a99 (patch)
tree0cb5e7066c02619233c1fde66f21b4704087b37b /odb/exceptions.hxx
parent7aee40f95c26ae3c5af2c723af57ba316f99cf0c (diff)
Implement support for optimistic concurrency
New pragmas: optimistic, version. New test: optimistic. New database function: reload().
Diffstat (limited to 'odb/exceptions.hxx')
-rw-r--r--odb/exceptions.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/odb/exceptions.hxx b/odb/exceptions.hxx
index 698baee..5f48717 100644
--- a/odb/exceptions.hxx
+++ b/odb/exceptions.hxx
@@ -92,6 +92,12 @@ namespace odb
what () const throw ();
};
+ struct LIBODB_EXPORT object_changed: exception
+ {
+ virtual const char*
+ what () const throw ();
+ };
+
struct LIBODB_EXPORT result_not_cached: exception
{
virtual const char*
@@ -140,6 +146,7 @@ namespace odb
using odb::timeout;
using odb::object_not_persistent;
using odb::object_already_persistent;
+ using odb::object_changed;
using odb::result_not_cached;
using odb::database_exception;