# std::system_error::what

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

Returns the explanatory string.

## Official Specification Summary (cppreference)

```cpp
virtual const char* what() const noexcept; // (since C++11)
```

Returns the explanatory string.

### Parameters

(none)

### Return value

Pointer to a null-terminated string with explanatory information.

### See also

- [`code`](https://en.cppreference.com/w/cpp/error/system_error/code): returns error code (public member function)

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