Namespaces
Variants

std::error_code::message

来自 zh.cppreference.net
 
 
 
 
 
std::string message() const;
(自 C++11 起)

返回对应于当前错误码值和类别的消息。

等价于 category().message(value())。

参数

(无)

返回值

对应于当前错误代码值和类别的错误消息。

异常

可能抛出实现定义的异常。