aboutsummaryrefslogtreecommitdiff
path: root/odb/exceptions.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-02-18 10:42:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-02-18 10:42:41 +0200
commit79e1e744a2f306f9c04b0cda3058e9ed40d8421c (patch)
tree7c3f927434da74b5305fd239f0f3f94a513c6d5f /odb/exceptions.hxx
parent3c7bfb25892842a1083b4d6393d5cb4aff615f2c (diff)
Add odb::core namespace to be used in using-directives
Port all the examples and tests.
Diffstat (limited to 'odb/exceptions.hxx')
-rw-r--r--odb/exceptions.hxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/odb/exceptions.hxx b/odb/exceptions.hxx
index d17ebb7..84ec133 100644
--- a/odb/exceptions.hxx
+++ b/odb/exceptions.hxx
@@ -89,6 +89,25 @@ namespace odb
struct LIBODB_EXPORT database_exception: odb::exception
{
};
+
+ namespace core
+ {
+ using odb::null_pointer;
+
+ using odb::already_in_transaction;
+ using odb::not_in_transaction;
+ using odb::transaction_already_finalized;
+
+ using odb::already_in_session;
+ using odb::not_in_session;
+ using odb::const_object;
+
+ using odb::deadlock;
+ using odb::object_not_persistent;
+ using odb::object_already_persistent;
+ using odb::result_not_cached;
+ using odb::database_exception;
+ }
}
#include <odb/post.hxx>