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

Builds the error from a message and the child&apos;s return code&period;

== Synopsis

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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *error&lowbar;msg*
| Description of the failure&period;
| *retcode*
| Return code reported by the child process&period;
|===


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