aboutsummaryrefslogtreecommitdiff
path: root/odb/exception.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/exception.cxx')
-rw-r--r--odb/exception.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/odb/exception.cxx b/odb/exception.cxx
new file mode 100644
index 0000000..52d8370
--- /dev/null
+++ b/odb/exception.cxx
@@ -0,0 +1,17 @@
+// file : odb/exception.cxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#include <typeinfo>
+
+#include <odb/exception.hxx>
+
+namespace odb
+{
+ char const* exception::
+ what () const throw ()
+ {
+ return typeid (*this).name ();
+ }
+}