Files
2025-10-25 03:02:53 +03:00

1.1 KiB

[re.badexp]

28 Text processing library [text]

28.6 Regular expressions library [re]

28.6.5 Class regex_error [re.badexp]

🔗

namespace std {class regex_error : public runtime_error {public:explicit regex_error(regex_constants::error_type ecode); regex_constants::error_type code() const; };}

1

#

The class regex_error defines the type of objects thrown as exceptions to report errors from the regular expression library.

🔗

regex_error(regex_constants::error_type ecode);

2

#

Postconditions: ecode == code().

🔗

regex_constants::error_type code() const;

3

#

Returns: The error code that was passed to the constructor.