blob: 21494cd529bc82fd792cffb48bd6b996ebb6d684 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// file : cult/eh/exception.cxx
// author : Boris Kolpackov <boris@kolpackov.net>
// copyright : Copyright (c) 2005-2010 Boris Kolpackov
// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
#include <cult/eh/exception.hxx>
#include <typeinfo>
namespace Cult
{
namespace EH
{
Char const* Exception::
what () const throw ()
{
try
{
return typeid (*this).name ();
}
catch (...)
{
return "";
}
}
}
}
|