diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-19 08:20:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-19 08:20:12 +0200 |
commit | 6ca1c8ee64bf7268d194eb15e72d3024a335039d (patch) | |
tree | 8876f51d9392f35c27eca83126fb9732e01bd916 /cutl/exception.cxx | |
parent | f0fb6aeab118255266370121db79ab2a2fed88ad (diff) |
Add root exception class
Derive all other exceptions from it.
Diffstat (limited to 'cutl/exception.cxx')
-rw-r--r-- | cutl/exception.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
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 <boris@codesynthesis.com> +// copyright : Copyright (c) 2009 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#include <typeinfo> + +#include <cutl/exception.hxx> + +namespace cutl +{ + char const* exception:: + what () const throw () + { + return typeid (*this).name (); + } +} |