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