Return the function name from which the exception was thrown.
| 461 | |
| 462 | /// Return the function name from which the exception was thrown. |
| 463 | std::string get_error_function_name(hpx::exception_info const& xi) |
| 464 | { |
| 465 | std::string const* function = xi.get<hpx::detail::throw_function>(); |
| 466 | if (function) |
| 467 | return *function; |
| 468 | |
| 469 | return std::string(); |
| 470 | } |
| 471 | |
| 472 | /// Return the (source code) file name of the function from which the |
| 473 | /// exception was thrown. |
no outgoing calls