std::ios_base::failure(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 6 versions
, in arch rolling, centos-stream 10, fedora 44

πŸ’– std::ios_base::failure πŸ’–

okay bestie, welcome to the std::ios_base::failure page from the Library Functions Manual 🌸 this is the whole thing, no skips, no cap.


✨ NAME ✨

std::ios_base::failure β€” these are thrown to indicate problems with io. literally the drama queen of stream errors πŸ’…


πŸ¦‹ 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. yeah. that's the whole vibe. when io goes wrong, this is the exception that shows up to tell you about it 🫢

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). so like, the lil text you handed to the constructor? yeah, it comes right back out here πŸ’–

Reimplemented from std::runtime_error.

References what().

Referenced by what().

not it referencing itself, we love a self-referential icon 😭✨

πŸ’œ Author πŸ’œ

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


and that's a wrap, bestie πŸŽ€ this was libstdc++'s std::ios_base::failure(3) page, straight from the Library Functions Manual β€” go forth and catch those io problems, mwah πŸ’…πŸ’–

πŸ“¦ where this page comes from
  • arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
  • centos-stream 10: gcc-toolset-16-libstdc++-docs 16.2.1-1.3.el10 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • fedora 44: libstdc++-docs 16.2.1-2.fc44
  • fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms