logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::regex_error - A regular expression exception class.

Author

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

                                                    libstdc++                             std::regex_error(3cxx)

Constructor & Destructor Documentation

std::regex_error::regex_error(error_type__ecode)[explicit]
       Constructs a regex_error object.

       Parameters__ecode the regex error code.

Detailed Description

       A regular expression exception class.

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

       Since
           C++11

Member Function Documentation

regex_constants::error_typestd::regex_error::code()const[inline],[noexcept]
       Gets the regex error code.

       Returns
           the regex error code.

   virtualconstchar*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.

Name

       std::regex_error - A regular expression exception class.

Synopsis

       #include <regex>

       Inherits std::runtime_error.

   PublicMemberFunctionsregex_error (error_type__ecode)
           Constructs a regex_error object.
       regex_constants::error_typecode () const noexcept
           Gets the regex error code.
       virtual const char * what () const noexcept

See Also