aboutsummaryrefslogtreecommitdiff
path: root/libcutl/exception.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libcutl/exception.cxx')
-rw-r--r--libcutl/exception.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/libcutl/exception.cxx b/libcutl/exception.cxx
new file mode 100644
index 0000000..bbe8ba5
--- /dev/null
+++ b/libcutl/exception.cxx
@@ -0,0 +1,15 @@
+// file : libcutl/exception.cxx
+// license : MIT; see accompanying LICENSE file
+
+#include <typeinfo>
+
+#include <libcutl/exception.hxx>
+
+namespace cutl
+{
+ char const* exception::
+ what () const noexcept
+ {
+ return typeid (*this).name ();
+ }
+}