公共成员函数
<system_error>

std::system_error::what

const char* what() const noexcept;
获取与异常关联的消息
返回描述异常的消息。

此消息包括 构造函数中使用的字符串 what_arg,以及 -可能- 附加信息,例如与 error_code 关联的 message

参数



返回值

一个 C 字符串,其中包含描述异常的消息。

另见