std::regex_error

Section: C Library Functions (3)
Updated: Wed Apr 17 2019
Page Index
 

NAME

std::regex_error - A regular expression exception class.

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

 

SYNOPSIS


Inherits std::runtime_error.  

Public Member Functions


regex_error (regex_constants::error_type __ecode)
Constructs a regex_error object.
regex_constants::error_type code () const
Gets the regex error code.
virtual const char * what () const _GLIBCXX_TXN_SAFE_DYN noexcept
 

Friends


void __throw_regex_error (regex_constants::error_type, const char *)
 

Detailed Description

A regular expression exception class.

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

Definition at line 132 of file regex_error.h.  

Constructor & Destructor Documentation

 

std::regex_error::regex_error (regex_constants::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]

Gets the regex error code.

Returns:

the regex error code.

Definition at line 153 of file regex_error.h.  

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.

 

Author

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


 

Index

NAME
SYNOPSIS
Public Member Functions
Friends
Detailed Description
Constructor & Destructor Documentation
std::regex_error::regex_error (regex_constants::error_type __ecode) [explicit]
Member Function Documentation
regex_constants::error_type std::regex_error::code () const [inline]
virtual const char* std::runtime_error::what () const [virtual], [noexcept], [inherited]
Author