MCPcopy Create free account
hub / github.com/catboost/catboost / CheckFile

Method CheckFile

util/system/filemap.cpp:155–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153 }
154
155 void CheckFile() const {
156 if (!File_.IsOpen()) {
157 ythrow yexception() << "TMemoryMap: FILE '" << DbgName_ << "' is not open, " << LastSystemErrorText();
158 }
159 if (Length_ < 0) {
160 ythrow yexception() << "'" << DbgName_ << "' is not a regular file";
161 }
162 }
163
164 inline TImpl(FILE* f, EOpenMode om, TString dbgName)
165 : File_(Duplicate(f))

Callers

nothing calls this directly

Calls 2

LastSystemErrorTextFunction · 0.70
IsOpenMethod · 0.45

Tested by

no test coverage detected