- bookworm 12.2.0-14
- testing 12.2.0-14
- unstable 12.3.0-4
- experimental 12.3.0-3~exp1
std::regex_error(3cxx) | std::regex_error(3cxx) |
NAME¶
std::regex_error - A regular expression exception class.
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
Friends¶
void __throw_regex_error (error_type __ecode, const
char *__what)
Detailed Description¶
A regular expression exception class.
The regular expression library throws objects of this class on error.
Constructor & Destructor Documentation¶
std::regex_error::regex_error (error_type __ecode) [explicit]¶
Constructs a regex_error object.
Parameters
Member Function Documentation¶
regex_constants::error_type std::regex_error::code () const [inline], [noexcept]¶
Gets the regex error code.
Returns
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.
Tue Jun 13 2023 | libstdc++ |