# std::bad_exception::what

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

Returns the explanatory string.

## Official Specification Summary (cppreference)

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

Returns the explanatory string.

### Parameters

(none)

### Return value

Pointer to a null-terminated string with explanatory information.

---
Attribution: content from https://en.cppreference.com/w/cpp/error/bad_exception/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.