aboutsummaryrefslogtreecommitdiff
path: root/odb/exceptions.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-06-04 16:33:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-06-04 16:33:08 +0200
commit6f0d40508286afc8cdd72a0b5f807d5c2a589cfc (patch)
treef22a38560560664cae731c37537c2bb04bffdc2a /odb/exceptions.hxx
parente0f3efd9df3e7eefa06777717f23905022d1949e (diff)
Initial implementation
Diffstat (limited to 'odb/exceptions.hxx')
-rw-r--r--odb/exceptions.hxx52
1 files changed, 52 insertions, 0 deletions
diff --git a/odb/exceptions.hxx b/odb/exceptions.hxx
new file mode 100644
index 0000000..4b5909b
--- /dev/null
+++ b/odb/exceptions.hxx
@@ -0,0 +1,52 @@
+// file : odb/exceptions.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef ODB_EXCEPTIONS_HXX
+#define ODB_EXCEPTIONS_HXX
+
+#include <odb/exception.hxx>
+
+namespace odb
+{
+ // nested_transaction
+ //
+ struct already_in_transaction: odb::exception
+ {
+ };
+
+ // no_transaction
+ //
+ struct not_in_transaction: odb::exception
+ {
+ };
+
+ // finilized_transaction
+ //
+ struct transaction_already_finilized: odb::exception
+ {
+ };
+
+ struct already_in_session: odb::exception
+ {
+ };
+
+ struct not_in_session: odb::exception
+ {
+ };
+
+ struct object_not_persistent: odb::exception
+ {
+ };
+
+ struct object_already_persistent: odb::exception
+ {
+ };
+
+ struct database_exception: odb::exception
+ {
+ };
+}
+
+#endif // ODB_EXCEPTIONS_HXX