std::string get_error_backtrace(
    const pika::exception_info& xi)

Description

Return the stack backtrace from the point the exception was thrown.

The function \acan be used to extract the diagnostic information element representing the stack backtrace collected at the point the exception was thrown.

Declared at: libs/pika/runtime/include/pika/runtime/custom_exception_info.hpp:376

Parameters

const pika::exception_info& xi
The parameter \pwill be inspected for the requested diagnostic information elements which have been stored at the point where the exception was thrown. This parameter can be one of the following types: \a\a\aor\a

Returns

The stack back trace from the point the exception was thrown. If the exception instance does not hold this information, the function will return an empty string.