aboutsummaryrefslogtreecommitdiff
path: root/libcutl/exception.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-12-16 20:29:05 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-02-24 16:40:04 +0300
commit8e761289a2446367267c6c0d9a26e734f0f78306 (patch)
treefb495d8c18801f271d124ee48731f10df396ca89 /libcutl/exception.hxx
parent4c8104756b92b9fa16b3a725e8a6aa620dfd606e (diff)
Get rid of legacy build systems and rename cutl/ to libcutl/
Diffstat (limited to 'libcutl/exception.hxx')
-rw-r--r--libcutl/exception.hxx22
1 files changed, 22 insertions, 0 deletions
diff --git a/libcutl/exception.hxx b/libcutl/exception.hxx
new file mode 100644
index 0000000..d9c069a
--- /dev/null
+++ b/libcutl/exception.hxx
@@ -0,0 +1,22 @@
+// file : libcutl/exception.hxx
+// license : MIT; see accompanying LICENSE file
+
+#ifndef LIBCUTL_EXCEPTION_HXX
+#define LIBCUTL_EXCEPTION_HXX
+
+#include <exception>
+
+#include <libcutl/export.hxx>
+
+namespace cutl
+{
+ struct LIBCUTL_EXPORT exception: std::exception
+ {
+ // By default return the exception type name ( typeid (*this).name () ).
+ //
+ virtual char const*
+ what () const noexcept;
+ };
+}
+
+#endif // LIBCUTL_EXCEPTION_HXX