std::regex_error

From Cppreference

Jump to: navigation, search
Defined in header <regex>

class regex_error : public std::runtime_error {

  public:
    explicit regex_error(regex_constants::error_type ecode);
    regex_constants::error_type code() const;

};
(C++11 feature)

Defines the type of object thrown as exceptions to report errors from the regular expressions library.

[edit] Member functions

(constructor)
Constructs the regex_error object.
(public member function)
code
Gets the code that was passed to the constructor. See std::regex_constants::error_type.
(public member function)

Inherited from std::exception

Member functions

(destructor) [virtual]
destructs the exception object
(virtual public member function)
what [virtual]
returns explanatory string
(virtual public member function)