---
name: "std::ios_base_failure"
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::ios_base_failure"
---

# std::ios\_base\_failure(3)

These are thrown to indicate problems with io.

## NAME

std::ios\_base::failure - These are thrown to indicate problems with io.

## SYNOPSIS

\#include \<ios\>

Inherits **std::system\_error**.

### Public Member Functions

**failure** (const char \*, const **error\_code** &=io\_errc::stream)\
 **failure** (const **string** &, const **error\_code** &)\
 **failure** (const **string** &\_\_str)\
 const **error\_code** & **code** () const noexcept\
 virtual const char \* **what** () const  throw ()\

## Detailed Description

These are thrown to indicate problems with io.

27\.4.2.1.1 Class ios\_base::failure

## Member Function Documentation

### virtual const char \* std::ios\_base::failure::what () const \[virtual\]

Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor).

Reimplemented from **std::runtime\_error**.

References **what()**.

Referenced by **what()**.

## Author

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