public member function
<system_error>
std::error_code::message
Get message
Error messages are defined by the category the error code belongs to.
This function returns the same as if the following member was called:
|
|
Parameters
noneReturn value
A string object with the message associated with the error code.Example
|
|
Possible output:
Exception caught (system_error): Error: ios_base::failbit set Code: 1 Category: iostream Message: iostream stream error
See also
- error_code::value
- Error value (public member function)
- error_code::category
- Get category (public member function)