Reports a bad basic_regex object.
class regex_error
    : public std::runtime_error {
public:
    explicit regex_error(regex_constants::error_code error);
    regex_constants::error_code code() const;
    };
Remarks
The class describes an exception object thrown to report an error in the construction or use of a basic_regex object.
Requirements
Header: <regex>
Namespace: std