aboutsummaryrefslogtreecommitdiff
path: root/odb/exceptions.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/exceptions.hxx')
-rw-r--r--odb/exceptions.hxx24
1 files changed, 24 insertions, 0 deletions
diff --git a/odb/exceptions.hxx b/odb/exceptions.hxx
index 91fa5ab..26550cb 100644
--- a/odb/exceptions.hxx
+++ b/odb/exceptions.hxx
@@ -14,6 +14,8 @@
namespace odb
{
+ // Transaction exceptions.
+ //
struct LIBODB_EXPORT already_in_transaction: odb::exception
{
virtual const char*
@@ -32,6 +34,28 @@ namespace odb
what () const throw ();
};
+ // Session exceptions.
+ //
+ struct LIBODB_EXPORT already_in_session: odb::exception
+ {
+ virtual const char*
+ what () const throw ();
+ };
+
+ struct LIBODB_EXPORT not_in_session: odb::exception
+ {
+ virtual const char*
+ what () const throw ();
+ };
+
+ struct LIBODB_EXPORT const_object: odb::exception
+ {
+ virtual const char*
+ what () const throw ();
+ };
+
+ // Database operations exceptions.
+ //
struct LIBODB_EXPORT deadlock: odb::exception
{
virtual const char*