// file : cult/eh/exception.cxx // author : Boris Kolpackov // copyright : Copyright (c) 2005-2010 Boris Kolpackov // license : GNU GPL v2 + exceptions; see accompanying LICENSE file #include #include namespace Cult { namespace EH { Char const* Exception:: what () const throw () { try { return typeid (*this).name (); } catch (...) { return ""; } } } }