Lines Matching defs:what_arg
210 string make_error_str(const error_code& ec, string what_arg) {
212 if (!what_arg.empty()) {
213 what_arg += ": ";
215 what_arg += ec.message();
217 return what_arg;
340 system_error::system_error(error_code ec, const string& what_arg)
341 : runtime_error(make_error_str(ec, what_arg)), __ec_(ec) {}
343 system_error::system_error(error_code ec, const char* what_arg)
344 : runtime_error(make_error_str(ec, what_arg)), __ec_(ec) {}
348 system_error::system_error(int ev, const error_category& ecat, const string& what_arg)
349 : runtime_error(make_error_str(error_code(ev, ecat), what_arg)), __ec_(error_code(ev, ecat)) {}
351 system_error::system_error(int ev, const error_category& ecat, const char* what_arg)
352 : runtime_error(make_error_str(error_code(ev, ecat), what_arg)), __ec_(error_code(ev, ecat)) {}
359 void __throw_system_error(int ev, const char* what_arg) {
361 std::__throw_system_error(error_code(ev, generic_category()), what_arg);
365 "system_error was thrown in -fno-exceptions mode with error %i and message \"%s\"", ev, what_arg);