It is possible to get the diagnostic information out of what(). See www.boost.org/doc/libs/release/libs/exception/doc/diagnostic_information_what.html.