---
name: "std::bad_exception"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::bad_exception"
---

# std::bad\_exception(3)

## NAME

std::bad\_exception

## SYNOPSIS

\#include \<exception\>

Inherits **std::exception**.

### Public Member Functions

virtual constexpr const char \* **what** () const noexcept\

## Detailed Description

If an exception is thrown which is not listed in a function's exception specification, one of these may be thrown.

## Member Function Documentation

### virtual constexpr const char \* std::bad\_exception::what () const \[inline\], \[constexpr\], \[virtual\], \[noexcept\]

Returns a C-style character string describing the general cause of the current error.

Reimplemented from **std::exception**.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
