std::regex_error::regex_error
From cppreference.com
                    
                                        
                    < cpp | regex | regex error
                    
                                                            
                    |   Defined in header <regex_error>
   | 
||
|   regex_error(std::regex_constants::error_type ecode);  | 
(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)  |