公共成員函式
<system_error>

std::system_error::what

const char* what() const noexcept;
獲取與異常關聯的訊息
返回描述異常的訊息。

此訊息包括 建構函式中使用的字串 what_arg,以及 -可能- 附加資訊,例如與 error_code 關聯的 message

引數



返回值

一個 C 字串,其中包含描述異常的訊息。

另見