diff options
Diffstat (limited to 'zen/sys_error.h')
-rw-r--r-- | zen/sys_error.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/zen/sys_error.h b/zen/sys_error.h index bbac2eaa..cea2f5f9 100644 --- a/zen/sys_error.h +++ b/zen/sys_error.h @@ -28,14 +28,14 @@ namespace zen typedef DWORD ErrorCode; #elif defined ZEN_LINUX || defined ZEN_MAC typedef int ErrorCode; +#else +#error define a platform! #endif ErrorCode getLastError(); std::wstring formatSystemError(const std::wstring& functionName, ErrorCode lastError); -bool errorCodeForNotExisting(ErrorCode lastError); //check for "not existing" aliases - //A low-level exception class giving (non-translated) detail information only - same conceptional level like "GetLastError()"! class SysError @@ -105,20 +105,6 @@ std::wstring formatSystemError(const std::wstring& functionName, ErrorCode lastE return output; } - - -inline -bool errorCodeForNotExisting(ErrorCode lastError) -{ -#ifdef ZEN_WIN - return lastError == ERROR_FILE_NOT_FOUND || - lastError == ERROR_PATH_NOT_FOUND || - lastError == ERROR_BAD_NETPATH || - lastError == ERROR_NETNAME_DELETED; -#elif defined ZEN_LINUX || defined ZEN_MAC - return lastError == ENOENT; -#endif -} } #endif //LAST_ERROR_H_3284791347018951324534 |