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

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

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::exception**.

### Public Member Functions

**failure** (const char \***\_\_s**, const **error\_code** &=**error\_code**{})\
 **failure** (const **string** &**\_\_s**, const **error\_code** &) noexcept\
 **failure** (const **string** &**\_\_str**)  **throw** ()\
 **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. \

Reimplemented from **std::exception**.

## Author

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