std::error_code::message - cppreference.com (original) (raw)
From cppreference.com
< cpp | error | error code
| Member functions |
|---|
| error_code::error_code |
| error_code::operator= |
| error_code::assign |
| Modifiers |
| error_code::clear |
| Observers |
| error_code::value |
| error_code::category |
| error_code::default_error_condition |
| error_code::message |
| error_code::operator bool |
| Non-member functions |
| operator==operator!=operator<operator<=>(until C++20)(until C++20)(C++20) |
| operator<< |
| Helper classes |
| is_error_code_enum |
| hashstd::error\_code |
| std::string message() const; | | (since C++11) | | ---------------------------------------------------------------- | | ------------- |
Returns the message corresponding to the current error code value and category.
Equivalent to category().message(value()).
[edit] Parameters
(none)
[edit] Return value
The error message corresponding to the current error code value and category.
[edit] Exceptions
May throw implementation-defined exceptions.
Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/error/error_code/message&oldid=168927"