std::regex_error(3cxx)

πŸŽ€ NAME πŸŽ€

std::regex_error β€” a regular expression exception class. And yes bestie, this is the std::regex_error(3cxx) page, so you're in exactly the right spot 🫢.

✨ SYNOPSIS ✨

#include <regex>

Inherits std::runtime_error.

πŸ‘‘ Public Member Functions πŸ‘‘

  • regex_error (error_type __ecode) β€” Constructs a regex_error object.
  • regex_constants::error_type code () const noexcept β€” Gets the regex error code.
  • virtual const char * what () const noexcept β€” the inherited what() member; the full explanation is down below πŸ’….

πŸ’– Detailed Description πŸ’–

A regular expression exception class. it's giving exception-class realness ✨

The regular expression library throws objects of this class on error.

⭐ Since ⭐

C++11

🧚 Constructor & Destructor Documentation 🧚

πŸ› οΈ std::regex_error::regex_error (error_type __ecode) [explicit]

Constructs a regex_error object.

  • Parameters
    • __ecode β€” the regex error code.

🌈 Member Function Documentation 🌈

πŸ” regex_constants::error_type std::regex_error::code () const [inline], [noexcept]

Gets the regex error code.

  • Returns
    • the regex error code.

πŸ—£οΈ virtual const char * std::runtime_error::what () const [virtual], [noexcept], [inherited]

Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor).

Reimplemented from std::exception.

Reimplemented in std::filesystem::filesystem_error, and std::experimental::filesystem::v1::filesystem_error.

✍️ Author ✍️

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


πŸ’Œ sign-off time: source/version is libstdc++ / std::regex_error(3cxx), and the footer did not give a date β€” so there's literally no date to report, bestie. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from