std::domain_error(3cxx)

πŸ’– NAME πŸ’–

Okay bestie, welcome to the std::domain_error(3cxx) manual page. The main character is std::domain_error β€” yes, that’s the whole name. πŸ’…

✨ SYNOPSIS ✨

Here’s the include, exactly as written:

#include <stdexcept>

Inherits std::logic_error.

πŸŽ€ Public Member Functions πŸŽ€

  • domain_error (const char *) _GLIBCXX_TXN_SAFE β€” the const char * constructor, with _GLIBCXX_TXN_SAFE sitting right there.
  • domain_error (const domain_error &)=default β€” the const domain_error & one, and it’s =default.
  • domain_error (const string &__arg) _GLIBCXX_TXN_SAFE β€” the const string &__arg one, also marked _GLIBCXX_TXN_SAFE.
  • domain_error (domain_error &&)=default β€” the domain_error && one, =default.
  • domain_error & operator= (const domain_error &)=default β€” the copy-assignment operator, =default.
  • domain_error & operator= (domain_error &&)=default β€” the move-assignment operator, =default.
  • virtual const char * what () const noexcept β€” the what() member: virtual const char *, const, and noexcept. Periodt.

πŸ¦‹ Detailed Description πŸ¦‹

It’s thrown by the library, or by you, to report domain errors β€” and β€œdomain” here is domain in the mathematical sense. So yes, math-coded error reporting, not website-domain drama. 😭

🌸 Member Function Documentation 🌸

virtual const char * std::logic_error::what () const [virtual], [noexcept], [inherited]

Returns a C-style character string describing the general cause of the current error β€” literally the same string passed to the ctor. πŸŽ€ It’s Reimplemented from std::exception. And it’s Reimplemented in std::future_error.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. Yes, that’s the whole author note β€” the robots wrote it, bestie. πŸ€–πŸ’…


Final cute sign-off: source/version is libstdc++, the page is std::domain_error(3cxx), and the date slot is honestly empty on the original footer β€” so I’m not making one up, no cap. Love u, bye! πŸ«ΆπŸ’–

πŸ“¦ where this page comes from