# std::error_condition::message

> C++ Atlas: `cppatlas.com/w/cpp/error/error_condition/message` | Source: https://en.cppreference.com/w/cpp/error/error_condition/message | Domain: Diagnostics | Standards: C++11

Returns an explanatory message for the stored error value and error category. Effectively calls category().message(value()).

## Official Specification Summary (cppreference)

```cpp
std::string message() const; // (since C++11)
```

Returns an explanatory message for the stored error value and error category. Effectively calls `category().message(value())`.

### Parameters

(none)

### Return value

An explanatory message for the stored error value and error category.

### Exceptions

May throw implementation-defined exceptions.

### See also

- [`message`](https://en.cppreference.com/w/cpp/error/error_category/message) [virtual]: obtains the explanatory string (virtual public member function of `std::error_category`)

---
Attribution: content from https://en.cppreference.com/w/cpp/error/error_condition/message (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.