A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/system_error/system_error/system_error/ below:

public member function

<system_error>

std::system_error::system_error (1)
system_error (error_code ec, const string& what_arg);
(2)
system_error (error_code ec, const char* what_arg);
(3)
system_error (error_code ec);
(4)
system_error (int val, const error_category& cat, const string& what_arg);
(5)
system_error (int val, const error_category& cat, const char* what_arg);
(6)
system_error (int val, const error_category& cat);

Construct system_error

Constructs a system_error exception object with error code ec (or with an error code constructed with val and cat).

If what_arg is specified, it is incorporated into the string returned by system_error::what, which may include additional information, depending on the library implementation.



Parameters
ec
An error_code object.
what_arg
A message incorporated in the string returned by member what
val
A numerical value identifying an error code.
cat
A reference to an error_category object.

See also
system_error::code
Get error code (public member function)
system_error::what
Get message associated to exception (public member function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4