folly::checkFopenErrorExplicit

Checks the return value from a fopen-style function and throws using an explicit saved errno.

Synopsis

Declared in <folly/Exception.h>

template<class... Args>
void
checkFopenErrorExplicit(
    FILE* fp,
    int savedErrno,
    Args&&... args);

Parameters

NameDescription
fpThe FILE* returned by the fopen-style call.
savedErrnoThe previously saved error number to report.
argsComponents concatenated into the failure message.