---
name: "std::bad_exception"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::bad_exception/3cxx"
---

# std::bad\_exception(3cxx)

## NAME

std::bad\_exception

## SYNOPSIS

`#include <exception>`

Inherits **std::exception**.

### Public Member Functions

**virtual** 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 const char \* std::bad\_exception::what () const` [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.
