aboutsummaryrefslogtreecommitdiff
path: root/odb/exception.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/exception.hxx')
-rw-r--r--odb/exception.hxx22
1 files changed, 22 insertions, 0 deletions
diff --git a/odb/exception.hxx b/odb/exception.hxx
new file mode 100644
index 0000000..ff3fc63
--- /dev/null
+++ b/odb/exception.hxx
@@ -0,0 +1,22 @@
+// file : odb/exception.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_EXCEPTION_HXX
+#define ODB_EXCEPTION_HXX
+
+#include <exception>
+
+namespace odb
+{
+ struct exception: std::exception
+ {
+ // By default return the exception type name ( typeid (*this).name () ).
+ //
+ virtual char const*
+ what () const throw ();
+ };
+}
+
+#endif // ODB_EXCEPTION_HXX