[#subprocess-CalledProcessError] = xref:subprocess.adoc[subprocess]::CalledProcessError :relfileprefix: ../ :mrdocs: class: CalledProcessError Thrown when there was error executing the command. Check Popen class API's to know when this exception can be thrown. == Synopsis Declared in `<util/subprocess.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class CalledProcessError : public std::runtime_error ---- == Base Classes [cols="1,4"] |=== | Name| Description | `std::runtime_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's return code. | xref:subprocess/CalledProcessError/operator_assign.adoc[`operator=`] | | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#