folly::checkPosixError

Checks a POSIX return code (0 on success, error number on error) and throws on error.

Synopsis

Declared in <folly/Exception.h>

template<class... Args>
void
checkPosixError(
    int err,
    Args&&... args);

Parameters

NameDescription
errThe POSIX return code to check.
argsComponents concatenated into the failure message.