std::ios_base_failure(3)

std::ios_base_failure3

These are thrown to indicate problems with io.

Usage

#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().

Releases

4 releases since Debian 3.1 (Sarge); the text changed 3 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. Arch

Author

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

From gcc 16.2.1+r23+gd564253eb6c8-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.