12 instantiations of ErrorInfo
System.Private.CoreLib (12)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
163return new ErrorInfo(Marshal.GetLastPInvokeError()); 221return new Interop.ErrorInfo(error);
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
82var errorInfo = new Interop.ErrorInfo(error);
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerator.Unix.cs (2)
194if (InternalContinueOnError(new Interop.ErrorInfo(result))) 201throw Interop.GetExceptionForIoErrno(new Interop.ErrorInfo(result), _currentPath, isDirError: true);
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (2)
579throw Interop.GetExceptionForIoErrno(new Interop.ErrorInfo(errno), new string(path)); 593throw Interop.GetExceptionForIoErrno(new Interop.ErrorInfo(error), path);
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (3)
589throw Interop.GetExceptionForIoErrno(new Interop.ErrorInfo(Interop.Error.ENOENT), fullPath); 608throw Interop.GetExceptionForIoErrno(new Interop.ErrorInfo(Interop.Error.ENOENT), fullPath); 688throw Interop.GetExceptionForIoErrno(new Interop.ErrorInfo(error), linkPath, isDirectory);
src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
115var errorInfo = new Interop.ErrorInfo(error);
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.Unix.cs (1)
37throw Interop.GetExceptionForIoErrno(new Interop.ErrorInfo(Interop.Error.EINVAL), handle.Path);
46 references to ErrorInfo
System.Private.CoreLib (46)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (2)
161internal static ErrorInfo GetLastErrorInfo() 219public static Interop.ErrorInfo Info(this Interop.Error error)
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (3)
11private static void ThrowExceptionForIoErrno(ErrorInfo errorInfo, string? path, bool isDirError) 114internal static Exception GetExceptionForIoErrno(ErrorInfo errorInfo, string? path = null, bool isDirError = false) 179internal static Exception GetIOException(Interop.ErrorInfo errorInfo, string? path = null)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetCwd.cs (1)
62ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo();
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
82var errorInfo = new Interop.ErrorInfo(error);
src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (11)
92Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException) 101Interop.ErrorInfo error = Interop.Sys.GetLastErrorInfo(); 128internal static Interop.ErrorInfo? t_lastCloseErrorInfo; 185Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException = null) 191Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException = null) 198Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException = null) 366Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 392Interop.ErrorInfo error = Interop.Sys.GetLastErrorInfo(); 430Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 443Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 505Interop.ErrorInfo error = Interop.Sys.GetLastErrorInfo();
src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (1)
65Interop.ErrorInfo errno = Interop.Sys.GetLastErrorInfo();
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerator.Unix.cs (4)
59private bool InternalContinueOnError(Interop.ErrorInfo info, bool ignoreNotFound = false) 62private static bool IsDirectoryNotFound(Interop.ErrorInfo info) 65private static bool IsAccessError(Interop.ErrorInfo info) 74Interop.ErrorInfo info = Interop.Sys.GetLastErrorInfo();
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (1)
511Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo();
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Exists.Unix.cs (4)
16private static bool DirectoryExists(ReadOnlySpan<char> fullPath, out Interop.ErrorInfo errorInfo) 19errorInfo = default(Interop.ErrorInfo); 35private static bool FileExists(ReadOnlySpan<char> fullPath, out Interop.ErrorInfo errorInfo) 38errorInfo = default(Interop.ErrorInfo);
src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (13)
54private static Exception? CreateOpenExceptionForCopyFile(Interop.ErrorInfo error, Interop.Sys.OpenFlags flags, string path) 89Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 158Interop.ErrorInfo errno = Interop.Sys.GetLastErrorInfo(); 174Interop.ErrorInfo errno = Interop.Sys.GetLastErrorInfo(); 199Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 245Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 261Interop.ErrorInfo fileExistsError; 304Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 348Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 378Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 453Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 531Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 548else if (DirectoryExists(fullPath, out Interop.ErrorInfo existErr))
src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
115var errorInfo = new Interop.ErrorInfo(error);
src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (2)
41Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 118Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo();
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.Unix.cs (2)
23Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo(); 44Interop.ErrorInfo errorInfo = Interop.Sys.GetLastErrorInfo();