std::bad_exception(3cxx)

πŸ’– NAME πŸ’–

std::bad_exception β€” okay bestie, that’s the name, and this is the std::bad_exception(3cxx) page from the 3cxx manual. Main character energy from the jump πŸ’…

✨ SYNOPSIS ✨

#include <exception>

Inherits std::exception.

🌸 Public Member Functions 🌸

  • virtual const char * what () const noexcept β€” the public member function on deck; she’s virtual and noexcept, and her whole deal is documented down below πŸ‘‡

πŸ¦‹ Detailed Description πŸ¦‹

Okay so the detailed description is literally this: if an exception is thrown which is not listed in a function’s exception specification, one of these may be thrown. No cap β€” that’s the caveat, and it’s giving β€œexception spec said no but the throw said yes” 😭

πŸŽ€ Member Function Documentation πŸŽ€

πŸ’… virtual const char * std::bad_exception::what () const [virtual], [noexcept] πŸ’…

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.

and that’s the page, bestie 🫢 β€” shoutout to libstdc++ for the source/version, and this is the std::bad_exception(3cxx) footer vibe. No date on the footer, so I’m not inventing one πŸ™ˆπŸ’–

πŸ“¦ where this page comes from