From 6ca1c8ee64bf7268d194eb15e72d3024a335039d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 19 Sep 2009 08:20:12 +0200 Subject: Add root exception class Derive all other exceptions from it. --- cutl/exception.cxx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cutl/exception.cxx (limited to 'cutl/exception.cxx') 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 +// copyright : Copyright (c) 2009 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#include + +#include + +namespace cutl +{ + char const* exception:: + what () const throw () + { + return typeid (*this).name (); + } +} -- cgit v1.1