[#subprocess-OSError-2constructor]
= xref:subprocess.adoc[subprocess]::xref:subprocess/OSError.adoc[OSError]::OSError
:relfileprefix: ../../
:mrdocs:

Builds the error by appending the string form of a system error code to a message&period;

== Synopsis

Declared in `&lt;util&sol;subprocess&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
OSError(
    std::string const& err&lowbar;msg,
    int err&lowbar;code);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *err&lowbar;msg*
| Description of the failed operation&period;
| *err&lowbar;code*
| System error code (errno) whose string form is appended to the message&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
