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

class&colon; CalledProcessError Thrown when there was error executing the command&period; Check Popen class API&apos;s to know when this exception can be thrown&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class CalledProcessError
    : 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/CalledProcessError/2constructor.adoc[`CalledProcessError`]         [.small]#[constructor]#
| Builds the error from a message and the child&apos;s return code&period;
| xref:subprocess/CalledProcessError/operator_assign.adoc[`operator&equals;`] 
| 
| xref:subprocess/CalledProcessError/what.adoc[`what`]  [.small]#[virtual]#
| 
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:subprocess/CalledProcessError/retcode.adoc[`retcode`] 
| Return code reported by the child process&period;
|===



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