aboutsummaryrefslogtreecommitdiff
path: root/libcutl/exception.hxx
diff options
context:
space:
mode:
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