std::regex_error::regex_error

From cppreference.com
< cpp‎ | regex‎ | regex error
Defined in header <regex>
(since C++11)

Constructs a regex_error with a given ecode of type std::regex_constants::error_type .

[edit] See Also

(C++11)
describes different types of matching errors
(typedef)