31 Regular expressions library [re]

31.6 Class regex_­error [re.badexp]

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

Класс regex_­error определяет тип объектов, создаваемых как исключения для сообщения об ошибках из библиотеки регулярных выражений.

regex_error(regex_constants::error_type ecode);

Effects: Создает объект класса regex_­error.

Postconditions: ecode == code().

regex_constants::error_type code() const;

Returns: Код ошибки, переданный конструктору.