subprocess::exceptions::subprocess_error class

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

All exceptions in the library derive from subprocess_error. An exception of type subprocess_error is never actually thrown.

Derived classes

class command_error
Thrown when a command exits with a non-zero exit code.
class os_error
Thrown when there is an error at the operating system level.
class usage_error
Thrown when there is an error in the usage of the library's public interface.

Constructors, destructors, conversion operators

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