1 //Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc.
3 //Distributed under the Boost Software License, Version 1.0. (See accompanying
4 //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #ifndef UUID_0552D49838DD11DD90146B8956D89593
7 #define UUID_0552D49838DD11DD90146B8956D89593
9 #include <boost/exception/exception.hpp>
18 diagnostic_information( std::exception const & x )
20 if( exception const * be = dynamic_cast<exception const *>(&x) )
21 return be->diagnostic_information();
23 return std::string("[ what: ") + x.what() + ", type: " + typeid(x).name() + " ]";