forked from boostorg/exception
documentation update, added function exception::diagnostic_information, added std::exception to_string overload, removed tabs from source files
[SVN r46697]
This commit is contained in:
@ -41,7 +41,7 @@ error: //Base for all exception objects we throw.
|
||||
char const *
|
||||
what() const throw()
|
||||
{
|
||||
return boost::exception::what();
|
||||
return boost::exception::diagnostic_information();
|
||||
}
|
||||
|
||||
protected:
|
||||
@ -169,8 +169,8 @@ dump_all_info( boost::exception const & x )
|
||||
dump_copy_info(x);
|
||||
dump_file_info(x);
|
||||
dump_clib_info(x);
|
||||
std::cout << "\nOutput from what():\n";
|
||||
std::cout << x.what();
|
||||
std::cout << "\nOutput from diagnostic_information():\n";
|
||||
std::cout << x.diagnostic_information();
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -20,6 +20,6 @@ g()
|
||||
catch(
|
||||
boost::exception & e )
|
||||
{
|
||||
std::cerr << e.what();
|
||||
std::cerr << e.diagnostic_information();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user