! * 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. */
| 278 | * this exception together with CalledProcessError. |
| 279 | */ |
| 280 | class OSError: public std::runtime_error |
| 281 | { |
| 282 | public: |
| 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 |
no outgoing calls
no test coverage detected