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