summaryrefslogtreecommitdiff
path: root/libodb/odb/exception.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libodb/odb/exception.hxx')
-rw-r--r--libodb/odb/exception.hxx36
1 files changed, 36 insertions, 0 deletions
diff --git a/libodb/odb/exception.hxx b/libodb/odb/exception.hxx
new file mode 100644
index 0000000..39daf92
--- /dev/null
+++ b/libodb/odb/exception.hxx
@@ -0,0 +1,36 @@
+// file : odb/exception.hxx
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef ODB_EXCEPTION_HXX
+#define ODB_EXCEPTION_HXX
+
+#include <odb/pre.hxx>
+
+#include <exception>
+
+#include <odb/forward.hxx> // odb::core
+
+#include <odb/details/config.hxx> // ODB_NOTHROW_NOEXCEPT
+#include <odb/details/export.hxx>
+#include <odb/details/shared-ptr/base.hxx>
+
+namespace odb
+{
+ struct LIBODB_EXPORT exception: std::exception, details::shared_base
+ {
+ virtual const char*
+ what () const ODB_NOTHROW_NOEXCEPT = 0;
+
+ virtual exception*
+ clone () const = 0;
+ };
+
+ namespace common
+ {
+ using odb::exception;
+ }
+}
+
+#include <odb/post.hxx>
+
+#endif // ODB_EXCEPTION_HXX