From 8e761289a2446367267c6c0d9a26e734f0f78306 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 16 Dec 2020 20:29:05 +0300 Subject: Get rid of legacy build systems and rename cutl/ to libcutl/ --- libcutl/exception.hxx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 libcutl/exception.hxx (limited to 'libcutl/exception.hxx') 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 + +#include + +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 -- cgit v1.1