subprocess::exceptions::command_error class

Thrown when a command exits with a non-zero exit code.

This exception is thrown whenever a subprocess constructed from subprocess::command exits with an error. The return_code() member function can be called to get the return code.

Base classes

class subprocess_error
A catch-all class for all errors thrown by subprocess.

Constructors, destructors, conversion operators

subprocess_error(std::string_view what_arg, int errc = errno)