# cpp17::bad_variant_access

## Summary

### Inheritance

Inherits from: exception

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/cpp17/bad-variant-access#classcpp17_1_1bad__variant__access_1ae2121c2e1fc0a1a45b9baa8571ec2685()` ||

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/cpp17/bad-variant-access#classcpp17_1_1bad__variant__access_1ad6e970aaec9a083ec246091f09ee94c0() const noexceptoverride` | `const char *` |

## Public functions

### bad_variant_access

```c++
 bad_variant_access() noexcept
```

### what

```c++
const char * what() const noexceptoverride
```