22 Diagnostics library [diagnostics]

22.5 System error support [syserr]

22.5.7 Class system_­error [syserr.syserr]

22.5.7.2 Class system_­error members [syserr.syserr.members]

system_error(error_code ec, const string& what_arg);

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

Postconditions: code() == ec.

string(what()).find(what_­arg) != string​::​npos.

system_error(error_code ec, const char* what_arg);

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

Postconditions: code() == ec.

string(what()).find(what_­arg) != string​::​npos.

system_error(error_code ec);

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

Postconditions: code() == ec.

system_error(int ev, const error_category& ecat, const string& what_arg);

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

Postconditions: code() == error_­code(ev, ecat).

string(what()).find(what_­arg) != string​::​npos.

system_error(int ev, const error_category& ecat, const char* what_arg);

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

Postconditions: code() == error_­code(ev, ecat).

string(what()).find(what_­arg) != string​::​npos.

system_error(int ev, const error_category& ecat);

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

Postconditions: code() == error_­code(ev, ecat).

const error_code& code() const noexcept;

Returns: ec или, при необходимости error_­code(ev, ecat), из конструктора.

const char* what() const noexcept override;

Returns: An НТБ , включающие аргументы в конструкторе.

[ Note: Возвращенный НТБ может быть содержанием what_­arg + ": " + code.message(). ] end note