libstdc++
std::regex_error Class Reference

#include <regex_error.h>

Inheritance diagram for std::regex_error:
[legend]

Public Member Functions

 regex_error (regex_constants::error_type __ecode)
regex_constants::error_type code () const noexcept
virtual const char * what () const noexcept

Friends

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

Detailed Description

A regular expression exception class.

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

Definition at line 134 of file regex_error.h.

Constructor & Destructor Documentation

◆ regex_error()

std::regex_error::regex_error ( regex_constants::error_type __ecode)
explicit

Constructs a regex_error object.

Parameters
__ecodethe regex error code.

References regex_error().

Referenced by regex_error().

Member Function Documentation

◆ code()

regex_constants::error_type std::regex_error::code ( ) const
inlinenoexcept

Gets the regex error code.

Returns
the regex error code.

Definition at line 155 of file regex_error.h.

References code().

Referenced by code().

◆ what()

virtual const char * std::runtime_error::what ( ) const
virtualnoexceptinherited

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::experimental::filesystem::v1::filesystem_error, and std::filesystem::filesystem_error.

References what().

Referenced by what().

◆ __throw_regex_error

void __throw_regex_error ( regex_constants::error_type __ecode,
const char * __what )
friend

Definition at line 172 of file regex_error.h.


The documentation for this class was generated from the following file: