61 references to IOException
Aspire.Cli.Tests (3)
Agents\AspireSkillsInstallerTests.cs (1)
72var exception = new IOException("Cache lock failed.", hresult);
BundleServiceTests.cs (2)
173var exception = new IOException("Directory move failed.", hresult); 187var exception = new IOException("Directory move failed.", unchecked((int)0x80070020));
Microsoft.Win32.Registry (3)
Microsoft\Win32\RegistryKey.cs (3)
1598throw new IOException(SR.Arg_RegKeyNotFound, errorCode); 1601throw new IOException(Interop.Kernel32.GetMessage(errorCode), errorCode); 1612_ => new IOException(Interop.Kernel32.GetMessage(errorCode), errorCode),
PresentationCore (1)
MS\Internal\FontCache\FontCacheUtil.cs (1)
760throw new IOException(SR.Format(SR.IOExceptionWithFileName, fileName), NativeMethods.MakeHRFromErrorCode(errorCode));
System.Console (6)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
94throw new IOException(errorInfo.GetErrorMessage(), errorInfo.RawErrno);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
132throw new IOException(errorInfo.GetErrorMessage(), errorInfo.RawErrno);
System.Diagnostics.PerformanceCounter (1)
System\Diagnostics\PerformanceDataRegistryKey.cs (1)
129throw new IOException(Interop.Kernel32.GetMessage(errorCode), errorCode);
System.Diagnostics.Process (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
94throw new IOException(errorInfo.GetErrorMessage(), errorInfo.RawErrno);
System.Formats.Tar (5)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
94throw new IOException(errorInfo.GetErrorMessage(), errorInfo.RawErrno);
System.IO.FileSystem.AccessControl (4)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (4)
50return new IOException(SR.Format(SR.IO_AlreadyExists_Name, path), MakeHRFromErrorCode(errorCode)); 55return new IOException( 61return new IOException(SR.Format(SR.IO_FileExists_Name, path), MakeHRFromErrorCode(errorCode)); 77return new IOException(msg, MakeHRFromErrorCode(errorCode));
System.IO.FileSystem.DriveInfo (4)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
System.IO.FileSystem.Watcher (7)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
System\IO\FileSystemWatcher.Linux.cs (3)
161throw new IOException(message, error.RawErrno); 163throw new IOException(SR.IOException_INotifyInstanceSystemLimitExceeded, error.RawErrno); 279exc = new IOException(message, error.RawErrno);
System.IO.MemoryMappedFiles (4)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
System.IO.Pipes (5)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
94throw new IOException(errorInfo.GetErrorMessage(), errorInfo.RawErrno);
System.IO.Ports (4)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
System.Net.Security (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
1381result == -1 && lastErrno.Error != Error.SUCCESS ? new IOException(lastErrno.GetErrorMessage(), lastErrno.RawErrno) : // underlying I/O error
System.Private.CoreLib (7)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
155new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 156new IOException(SR.IO_SharingViolation_NoFileName, errorInfo.RawErrno); 167return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno); 186return new IOException(
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
94throw new IOException(errorInfo.GetErrorMessage(), errorInfo.RawErrno);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (1)
455throw new IOException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, sourceFullPath), errorInfo.RawErrno);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
132throw new IOException(errorInfo.GetErrorMessage(), errorInfo.RawErrno);
System.ServiceModel.NetNamedPipe (1)
System\IO\PipeException.cs (1)
22: base(message, errorCode)
System.Threading.AccessControl (4)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (4)
50return new IOException(SR.Format(SR.IO_AlreadyExists_Name, path), MakeHRFromErrorCode(errorCode)); 55return new IOException( 61return new IOException(SR.Format(SR.IO_FileExists_Name, path), MakeHRFromErrorCode(errorCode)); 77return new IOException(msg, MakeHRFromErrorCode(errorCode));