subprocess::exceptions::usage_error class

Thrown when there is an error in the usage of the library's public interface.

These errors should be infrequent on the user end. They get thrown whenever an erroneous call is made to a function within the library.

For example, usage_error is thrown when you try to link an fd that is already linked to another fd.

Base classes

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

Constructors, destructors, conversion operators

usage_error(std::string_view what_arg) explicit