public member function

std::system_error::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 exception::what, which may include additional information, depending on the library implementation.

Parameters

ec
An error_code object.
what_arg
val
A numerical value identifying an error code.
cat
A reference to an error_category object.
what_arg
A string used as the exception's what, or as part of it.

See also