57 references to Error
System.Private.CoreLib (57)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
150
return $"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)
13
Debug.Assert(errorInfo.
Error
!= Error.SUCCESS);
14
Debug.Assert(errorInfo.
Error
!= Error.EINTR, "EINTR errors should be handled by the native shim and never bubble up to managed code");
118
switch (errorInfo.
Error
)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetCwd.cs (1)
63
if (errorInfo.
Error
== Interop.Error.ERANGE)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
86
if (errorInfo.
Error
== Interop.Error.ERANGE)
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (10)
104
if (failForSymlink && error.
Error
== Interop.Error.ELOOP)
115
if (error.
Error
== Interop.Error.EISDIR)
120
Interop.CheckIo(error.
Error
, path);
367
if (errorInfo.
Error
== Interop.Error.EWOULDBLOCK)
394
if (error.
Error
== Interop.Error.ENOENT)
431
if (errorInfo.
Error
!= Interop.Error.EBADF && errorInfo.
Error
!= Interop.Error.EINVAL)
446
if (errorInfo.
Error
== Interop.Error.EFBIG ||
447
errorInfo.
Error
== Interop.Error.ENOSPC)
455
throw new IOException(SR.Format(errorInfo.
Error
== Interop.Error.EFBIG
src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (1)
67
throw errno.
Error
== Interop.Error.EINVAL ?
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerator.Unix.cs (5)
59
=> info.
Error
== Interop.Error.ENOTDIR || info.
Error
== Interop.Error.ENOENT;
62
=> info.
Error
== Interop.Error.EACCES || info.
Error
== Interop.Error.EBADF
63
|| info.
Error
== Interop.Error.EPERM;
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (1)
513
switch (errorInfo.
Error
)
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (27)
57
if (error.
Error
== Interop.Error.EEXIST && DirectoryExists(path))
88
if (errorInfo.
Error
== Interop.Error.EXDEV || // rename fails across devices / mount points
89
errorInfo.
Error
== Interop.Error.EACCES ||
90
errorInfo.
Error
== Interop.Error.EPERM || // permissions might not allow creating hard links even if a copy would work
91
errorInfo.
Error
== Interop.Error.EOPNOTSUPP || // links aren't supported by the source file system
92
errorInfo.
Error
== Interop.Error.EMLINK || // too many hard links to the source file
93
errorInfo.
Error
== Interop.Error.ENOSYS) // the file system doesn't support link
101
if (errorInfo.
Error
== Interop.Error.ENOENT)
112
else if (errorInfo.
Error
== Interop.Error.EEXIST)
157
if (errno.
Error
!= Interop.Error.ENOENT)
173
if (errno.
Error
== Interop.Error.ENOENT)
198
if (errorInfo.
Error
== Interop.Error.EXDEV) // rename fails across devices / mount points
244
switch (errorInfo.
Error
)
264
fileExistsError.
Error
== Interop.Error.ENOENT)
303
if (errorInfo.
Error
== Interop.Error.EEXIST && DirectoryExists(fullPath))
307
else if (errorInfo.
Error
== Interop.Error.ENOENT) // Some parts of the path don't exist yet.
347
if (errorInfo.
Error
== Interop.Error.ENOENT)
355
else if (errorInfo.
Error
== Interop.Error.EEXIST)
377
if (errorInfo.
Error
== Interop.Error.EEXIST)
452
switch (errorInfo.
Error
)
531
if (errorInfo.
Error
== Interop.Error.ENOTEMPTY)
538
else if (errorInfo.
Error
== Interop.Error.ENOENT)
549
if (topLevel && errorInfo.
Error
== Interop.Error.ENOTDIR)
555
else if (existErr.
Error
== Interop.Error.ENOENT)
561
if (errorInfo.
Error
== Interop.Error.EACCES ||
562
errorInfo.
Error
== Interop.Error.EPERM ||
563
errorInfo.
Error
== Interop.Error.EROFS)
src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
119
if (errorInfo.
Error
== Interop.Error.ERANGE)
src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (4)
43
if (errorInfo.
Error
== Interop.Error.ENXIO ||
44
errorInfo.
Error
== Interop.Error.ESPIPE)
120
if (errorInfo.
Error
== Interop.Error.ENXIO ||
121
errorInfo.
Error
== Interop.Error.ESPIPE)
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.Unix.cs (2)
24
if (!(ignoreNotSupported && errorInfo.
Error
== Interop.Error.ENOTSUP))
45
switch (errorInfo.
Error
)