.TH "std::regex_error" 3cxx "Wed Jul 14 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::regex_error \- A regular expression exception class\&. .SH SYNOPSIS .br .PP .PP Inherits \fBstd::runtime_error\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBregex_error\fP (\fBregex_constants::error_type\fP __ecode)" .br .RI "Constructs a regex_error object\&. " .ti -1c .RI "\fBregex_constants::error_type\fP \fBcode\fP () const" .br .RI "Gets the regex error code\&. " .ti -1c .RI "virtual const char * \fBwhat\fP () const noexcept" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "void \fB__throw_regex_error\fP (\fBregex_constants::error_type\fP, const char *)" .br .in -1c .SH "Detailed Description" .PP A regular expression exception class\&. The regular expression library throws objects of this class on error\&. .PP Definition at line 132 of file regex_error\&.h\&. .SH "Constructor & Destructor Documentation" .PP .SS "std::regex_error::regex_error (\fBregex_constants::error_type\fP __ecode)\fC [explicit]\fP" .PP Constructs a regex_error object\&. .PP \fBParameters\fP .RS 4 \fI__ecode\fP the regex error code\&. .RE .PP .SH "Member Function Documentation" .PP .SS "\fBregex_constants::error_type\fP std::regex_error::code () const\fC [inline]\fP" .PP Gets the regex error code\&. .PP \fBReturns\fP .RS 4 the regex error code\&. .RE .PP .PP Definition at line 153 of file regex_error\&.h\&. .SS "virtual const char* std::runtime_error::what () const\fC [virtual]\fP, \fC [noexcept]\fP, \fC [inherited]\fP" Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor)\&. .br .PP Reimplemented from \fBstd::exception\fP\&. .PP Reimplemented in \fBstd::experimental::filesystem::v1::filesystem_error\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.