MCPcopy Create free account
hub / github.com/ElementsProject/elements / WindowsError

Function WindowsError

src/leveldb/util/env_windows.cc:69–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69Status WindowsError(const std::string& context, DWORD error_code) {
70 if (error_code == ERROR_FILE_NOT_FOUND || error_code == ERROR_PATH_NOT_FOUND)
71 return Status::NotFound(context, GetWindowsErrorMessage(error_code));
72 return Status::IOError(context, GetWindowsErrorMessage(error_code));
73}
74
75class ScopedHandle {
76 public:

Callers 15

ReadMethod · 0.85
SkipMethod · 0.85
ReadMethod · 0.85
CloseMethod · 0.85
NewSequentialFileMethod · 0.85
NewRandomAccessFileMethod · 0.85
NewWritableFileMethod · 0.85
NewAppendableFileMethod · 0.85
GetChildrenMethod · 0.85
DeleteFileMethod · 0.85
CreateDirMethod · 0.85
DeleteDirMethod · 0.85

Calls 3

NotFoundFunction · 0.85
GetWindowsErrorMessageFunction · 0.85
IOErrorFunction · 0.85

Tested by

no test coverage detected