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