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

Description

Return the error message of the thrown exception.

The function \acan be used to extract the diagnostic information element representing the error message as stored in the given exception instance.

Declared at: libs/pika/errors/include/pika/errors/exception.hpp:340

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 error message stored in the exception If the exception instance does not hold this information, the function will return an empty string.