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

class&colon; OSError Thrown when some system call fails to execute or give result&period; The exception message contains the name of the failed system call with the stringisized errno code&period; Check Popen class API&apos;s to know when this exception would be thrown&period; Its usual that the API exception specification would have this exception together with CalledProcessError&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class OSError
    : public std::runtime&lowbar;error
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `std::runtime&lowbar;error`
| 
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:subprocess/OSError/2constructor.adoc[`OSError`]         [.small]#[constructor]#
| Builds the error by appending the string form of a system error code to a message&period;
| xref:subprocess/OSError/operator_assign.adoc[`operator&equals;`] 
| 
| xref:subprocess/OSError/what.adoc[`what`]  [.small]#[virtual]#
| 
|===



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