57 references to Error
System.Private.CoreLib (57)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
150return $"RawErrno: {RawErrno} Error: {Error} GetErrorMessage: {GetErrorMessage()}"; // No localization required; text is member names used for debugging purposes
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (3)
13Debug.Assert(errorInfo.Error != Error.SUCCESS); 14Debug.Assert(errorInfo.Error != Error.EINTR, "EINTR errors should be handled by the native shim and never bubble up to managed code"); 118switch (errorInfo.Error)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetCwd.cs (1)
63if (errorInfo.Error == Interop.Error.ERANGE)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
86if (errorInfo.Error == Interop.Error.ERANGE)
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (10)
104if (failForSymlink && error.Error == Interop.Error.ELOOP) 115if (error.Error == Interop.Error.EISDIR) 120Interop.CheckIo(error.Error, path); 367if (errorInfo.Error == Interop.Error.EWOULDBLOCK) 394if (error.Error == Interop.Error.ENOENT) 431if (errorInfo.Error != Interop.Error.EBADF && errorInfo.Error != Interop.Error.EINVAL) 446if (errorInfo.Error == Interop.Error.EFBIG || 447errorInfo.Error == Interop.Error.ENOSPC) 455throw new IOException(SR.Format(errorInfo.Error == Interop.Error.EFBIG
src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (1)
66throw errno.Error == Interop.Error.EINVAL ?
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerator.Unix.cs (5)
63=> info.Error == Interop.Error.ENOTDIR || info.Error == Interop.Error.ENOENT; 66=> info.Error == Interop.Error.EACCES || info.Error == Interop.Error.EBADF 67|| info.Error == Interop.Error.EPERM;
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (1)
513switch (errorInfo.Error)
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (27)
57if (error.Error == Interop.Error.EEXIST && DirectoryExists(path)) 90if (errorInfo.Error == Interop.Error.EXDEV || // rename fails across devices / mount points 91errorInfo.Error == Interop.Error.EACCES || 92errorInfo.Error == Interop.Error.EPERM || // permissions might not allow creating hard links even if a copy would work 93errorInfo.Error == Interop.Error.EOPNOTSUPP || // links aren't supported by the source file system 94errorInfo.Error == Interop.Error.EMLINK || // too many hard links to the source file 95errorInfo.Error == Interop.Error.ENOSYS) // the file system doesn't support link 103if (errorInfo.Error == Interop.Error.ENOENT) 114else if (errorInfo.Error == Interop.Error.EEXIST) 159if (errno.Error != Interop.Error.ENOENT) 175if (errno.Error == Interop.Error.ENOENT) 200if (errorInfo.Error == Interop.Error.EXDEV) // rename fails across devices / mount points 246switch (errorInfo.Error) 266fileExistsError.Error == Interop.Error.ENOENT) 305if (errorInfo.Error == Interop.Error.EEXIST && DirectoryExists(fullPath)) 309else if (errorInfo.Error == Interop.Error.ENOENT) // Some parts of the path don't exist yet. 349if (errorInfo.Error == Interop.Error.ENOENT) 357else if (errorInfo.Error == Interop.Error.EEXIST) 379if (errorInfo.Error == Interop.Error.EEXIST) 454switch (errorInfo.Error) 533if (errorInfo.Error == Interop.Error.ENOTEMPTY) 540else if (errorInfo.Error == Interop.Error.ENOENT) 551if (topLevel && errorInfo.Error == Interop.Error.ENOTDIR) 557else if (existErr.Error == Interop.Error.ENOENT) 563if (errorInfo.Error == Interop.Error.EACCES || 564errorInfo.Error == Interop.Error.EPERM || 565errorInfo.Error == Interop.Error.EROFS)
src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
119if (errorInfo.Error == Interop.Error.ERANGE)
src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (4)
43if (errorInfo.Error == Interop.Error.ENXIO || 44errorInfo.Error == Interop.Error.ESPIPE) 120if (errorInfo.Error == Interop.Error.ENXIO || 121errorInfo.Error == Interop.Error.ESPIPE)
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.Unix.cs (2)
24if (!(ignoreNotSupported && errorInfo.Error == Interop.Error.ENOTSUP)) 45switch (errorInfo.Error)