MCPcopy Create free account
hub / github.com/arun11299/cpp-subprocess / OSError

Class OSError

cpp-subprocess/subprocess.hpp:280–286  ·  view source on GitHub ↗

! * class: OSError * Thrown when some system call fails to execute or give result. * The exception message contains the name of the failed system call * with the stringisized errno code. * Check Popen class API's to know when this exception would be * thrown. * Its usual that the API exception specification would have * this exception together with CalledProcessError. */

Source from the content-addressed store, hash-verified

278 * this exception together with CalledProcessError.
279 */
280class OSError: public std::runtime_error
281{
282public:
283 OSError(const std::string& err_msg, int err_code):
284 std::runtime_error( err_msg + ": " + std::strerror(err_code) )
285 {}
286};
287
288//--------------------------------------------------------------------
289

Callers 15

file_from_handleFunction · 0.85
configure_pipeFunction · 0.85
set_clo_on_execFunction · 0.85
pipe_cloexecFunction · 0.85
inputMethod · 0.85
outputMethod · 0.85
errorMethod · 0.85
waitMethod · 0.85
pollMethod · 0.85
killMethod · 0.85
execute_processMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected