__gnu_cxx::forced_error(3cxx)

🌸 NAME 🌸

__gnu_cxx::forced_error β€” bestie, this is the exception that gets thrown by utilities for testing exception safety. Also hi, this is the 3cxx manual page, welcome to the group chat πŸ’…βœ¨


✨ SYNOPSIS ✨

#include <throw_allocator.h>

Inherits std::exception. No cap.

πŸ’– Public Member Functions πŸ’–

  • virtual const char * what () const noexcept β€” this is the public member function listed here, and yes it's giving very "ask me what went wrong" energy 🫢

πŸ¦‹ Detailed Description πŸ¦‹

Thrown by utilities for testing exception safety. That's the whole assignment, and it ate πŸ’€βœ¨


πŸŽ€ Member Function Documentation πŸŽ€

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

Returns a C-style character string describing the general cause of the current error. Literally the "so what happened?" function, bestie 😭

Reimplemented in:

  • std::ios_base::failure
  • std::bad_alloc
  • std::filesystem::filesystem_error
  • std::bad_weak_ptr
  • std::bad_function_call
  • std::experimental::fundamentals_v1::bad_any_cast
  • std::experimental::filesystem::v1::filesystem_error
  • std::future_error
  • std::logic_error
  • std::runtime_error
  • std::bad_exception
  • std::bad_cast
  • std::bad_typeid

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. So no human author to tag β€” Doxygen did that, and honestly slay for being automatic πŸ§šπŸ’–


okay bye bestie πŸ¦‹ the footer vibe is source/version libstdc++ and the page is __gnu_cxx::forced_error(3cxx); there's no date printed in that footer, so I'm not inventing one β€” periodt πŸ’œβœ¨