std::ios_base::failure(3cxx)
π std::ios_base::failure β like, the 3cxx manual page, bestie
okay so welcome to std::ios_base::failure(3cxx), the page about the exception that shows up when your io is going through it πβ¨ It lives in the <ios> header and, ngl, it's the main character of "something went wrong with io."
πΈ NAME πΈ
std::ios_base::failure β these are thrown to indicate problems with io π
β¨ SYNOPSIS β¨
#include <ios>
Inherits std::exception. That's its whole personality trait, honestly β it's a std::exception girlie π
π«Ά Public Member Functions
failure (const char *__s, const error_code &=error_code{})β constructor #1, takes a C-style string plus anerror_codethat defaults toerror_code{}πΈfailure (const string &__s, const error_code &) noexceptβ constructor #2,string+error_code, and it'snoexceptso she will not be throwing at you twice πfailure (const string &__str) throw ()β constructor #3, just thestring, markedthrow ()error_code code () const noexceptβ hands you back theerror_code,noexceptvirtual const char * what () const throw ()β the classicwhat(), virtual,const,throw ()
Detailed Description
These are thrown to indicate problems with io. That's it, that's the vibe π₯
Also like β the source says, verbatim: 27.4.2.1.1 Class ios_base::failure. Like, that's literally the standard section number, iconic β¨ iykyk.
π¦ 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. So when you catch it and you're like "girl what happened", this is the thing you call π
Reimplemented from std::exception. She's inheriting the tradition, periodt π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. Not me writing it by hand, no cap β the robots did that one π€π
Fr fr, this page ships as part of libstdc++ in the 3cxx man section β so when you're RTFM-ing at 2am, that's the source and the section, bestie π«Άπ Go read your io errors and slay, mwah πβ¨
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms