...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
#include <boost/exception/diagnostic_information.hpp>
namespace
boost
{
char const * diagnostic_information_what( boost::exception const & e, bool verbose=true ) throw();
}
The diagnostic_information_what function is intended to be called from a user-defined std::exception::what() override. This allows diagnostic information to be returned as the what() string.
A pointer to a zero-terminated buffer that contains a string similar to the std::string returned by the diagnostic_information function, or null to indicate a failure.
Nothing.
The returned pointer becomes invalid if any error_info is modified or added to the exception object, or if another diagnostic information function is called.