mirror of
https://github.com/boostorg/exception.git
synced 2025-07-23 09:07:15 +02:00
@ -127,18 +127,26 @@ boost
|
|||||||
std::ostringstream tmp;
|
std::ostringstream tmp;
|
||||||
if( be )
|
if( be )
|
||||||
{
|
{
|
||||||
if( char const * const * f=get_error_info<throw_file>(*be) )
|
char const * const * f=get_error_info<throw_file>(*be);
|
||||||
{
|
int const * l=get_error_info<throw_line>(*be);
|
||||||
tmp << *f;
|
char const * const * fn=get_error_info<throw_function>(*be);
|
||||||
if( int const * l=get_error_info<throw_line>(*be) )
|
if( !f && !l && !fn )
|
||||||
tmp << '(' << *l << "): ";
|
tmp << "Throw location unknown (consider using BOOST_THROW_EXCEPTION)\n";
|
||||||
}
|
|
||||||
tmp << "Throw in function ";
|
|
||||||
if( char const * const * fn=get_error_info<throw_function>(*be) )
|
|
||||||
tmp << *fn;
|
|
||||||
else
|
else
|
||||||
tmp << "(unknown)";
|
{
|
||||||
tmp << '\n';
|
if( f )
|
||||||
|
{
|
||||||
|
tmp << *f;
|
||||||
|
if( int const * l=get_error_info<throw_line>(*be) )
|
||||||
|
tmp << '(' << *l << "): ";
|
||||||
|
}
|
||||||
|
tmp << "Throw in function ";
|
||||||
|
if( char const * const * fn=get_error_info<throw_function>(*be) )
|
||||||
|
tmp << *fn;
|
||||||
|
else
|
||||||
|
tmp << "(unknown)";
|
||||||
|
tmp << '\n';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#ifndef BOOST_NO_RTTI
|
#ifndef BOOST_NO_RTTI
|
||||||
tmp << std::string("Dynamic exception type: ") <<
|
tmp << std::string("Dynamic exception type: ") <<
|
||||||
|
Reference in New Issue
Block a user