Checks a traditional Unix return code (‐1 on error) and throws using an explicit saved errno.
Synopsis
Declared in <folly/Exception.h>
template<class... Args>
void
checkUnixErrorExplicit(
ssize_t ret,
int savedErrno,
Args&&... args);
Parameters
Name |
Description |
ret |
The Unix return code to check. |
savedErrno |
The previously saved error number to report. |
args |
Components concatenated into the failure message. |
Created with MrDocs