205 references to IOException
Aspire.Cli.EndToEnd.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.Cli.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.Deployment.EndToEnd.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.Hosting.CodeGeneration.Rust.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.Hosting.CodeGeneration.TypeScript.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.Hosting.RemoteHost.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.Hosting.Sdk.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.Hosting.TestUtilities (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.Managed.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Aspire.TerminalHost.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
288throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new IOException(SRServiceModel.SFxStreamIOException, ex));
GenerateDocumentationAndConfigFiles (10)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
Infrastructure.Tests (2)
tests\Shared\TemporaryWorkspace.cs (2)
132throw new IOException($"Cannot delete '{file.FullName}': {ex.Message}", ex); 143throw new IOException($"Cannot delete directory '{directory.FullName}': {ex.Message}", ex);
Microsoft.AspNetCore.Connections.Abstractions (1)
Exceptions\ConnectionResetException.cs (1)
27public ConnectionResetException(string message, Exception inner) : base(message, inner)
Microsoft.AspNetCore.Http.Abstractions (2)
BadHttpRequestException.cs (2)
39: base(message, innerException) 50: base(message, innerException)
Microsoft.AspNetCore.Server.HttpSys (8)
RequestProcessing\RequestStream.cs (2)
147Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 268Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode));
RequestProcessing\RequestStreamAsyncResult.cs (2)
79asyncResult.Fail(new IOException(string.Empty, new HttpSysException((int)errorCode))); 89asyncResult.Fail(new IOException(string.Empty, e));
RequestProcessing\ResponseBody.cs (3)
169var exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 385Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 713var exception = new IOException(string.Empty, new HttpSysException((int)statusCode));
RequestProcessing\ResponseStreamAsyncResult.cs (1)
245var exception = new IOException(string.Empty, new HttpSysException((int)errorCode));
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\AddressBinder.cs (1)
94throw new IOException(CoreStrings.FormatEndpointAlreadyInUse(endpoint), ex);
Internal\Http\Http1ChunkedEncodingMessageBody.cs (1)
508throw new IOException(CoreStrings.BadRequest_BadChunkSizeData, ex);
Internal\Http2\Http2Connection.cs (2)
352AbortStream(_incomingFrame.StreamId, new IOException(ex.Message, ex)); 461stream.Abort(new IOException(CoreStrings.Http2StreamAborted, connectionError));
Internal\Http3\Http3Stream.cs (1)
744AbortCore(new IOException(CoreStrings.HttpStreamResetByClient, ex), (Http3ErrorCode)resolvedErrorCode);
LocalhostListenOptions.cs (1)
72throw new IOException(CoreStrings.FormatAddressBindingFailed(GetDisplayName()), new AggregateException(exceptions));
Microsoft.AspNetCore.TestHost (4)
ResponseBodyPipeWriter.cs (1)
47_pipe.Writer.Complete(new IOException(string.Empty, innerException));
ResponseBodyReaderStream.cs (1)
133throw new IOException(string.Empty, _abortException);
TestWebSocket.cs (2)
286throw new IOException("The remote end closed the connection.", new ObjectDisposedException(typeof(TestWebSocket).FullName)); 336throw new IOException("The remote end closed the connection.", new ObjectDisposedException(typeof(TestWebSocket).FullName));
Microsoft.Build.Framework (1)
FileUtilities_TempFiles.cs (1)
206throw new IOException(SR.FormatFailedCreatingTempFile(ex.Message), ex);
Microsoft.Build.Tasks.Git (3)
GitDataReader\GitConfig.Reader.cs (1)
217throw new IOException(e.Message, e);
GitDataReader\GitReferenceResolver.cs (1)
388throw new IOException(e.Message, e);
GitDataReader\GitRepository.cs (1)
436throw new IOException(e.Message, e);
Microsoft.CodeAnalysis (13)
FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
FileSystem\ICommonCompilerFileSystem.cs (1)
48throw new IOException(e.Message, e);
StrongName\DesktopStrongNameProvider.cs (2)
239throw new IOException(ex.Message, ex); 261throw new IOException(ex.Message, ex);
Microsoft.CodeAnalysis.Analyzers (10)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
Microsoft.CodeAnalysis.AnalyzerUtilities (10)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
Microsoft.CodeAnalysis.CodeStyle (10)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
Microsoft.CodeAnalysis.Features (1)
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (1)
97throw new IOException(e.Message, e);
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
Microsoft.CodeAnalysis.Workspaces (10)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (10)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
Microsoft.DotNet.XliffTasks (1)
ExponentialRetry.cs (1)
28throw new IOException($"Retry failed after {count} times", e);
Microsoft.ML.Core (4)
Utilities\Contracts.cs (4)
406=> Process(new IOException(msg, inner)); 408=> Process(new IOException(msg, inner), ctx); 410=> Process(new IOException(GetMsg(msg, args), inner)); 412=> Process(new IOException(GetMsg(msg, args), inner), ctx);
Microsoft.ML.CpuMath (4)
src\Microsoft.ML.Core\Utilities\Contracts.cs (4)
406=> Process(new IOException(msg, inner)); 408=> Process(new IOException(msg, inner), ctx); 410=> Process(new IOException(GetMsg(msg, args), inner)); 412=> Process(new IOException(GetMsg(msg, args), inner), ctx);
Microsoft.ML.Tokenizers (2)
Model\CodeGenTokenizer.cs (1)
1796throw new IOException($"Cannot read the file Merge file.{Environment.NewLine}Error message: {e.Message}", e);
Model\EnglishRobertaTokenizer.cs (1)
228throw new IOException($"Cannot read the file Merge file.{Environment.NewLine}Error message: {e.Message}", e);
NuGet.Protocol (1)
Utility\DownloadTimeoutStream.cs (1)
91throw new IOException(timeoutMessage, e);
PresentationCore (4)
MS\Internal\FontCache\FontCacheUtil.cs (1)
776return new IOException(SR.Format(SR.IOExceptionWithFileName, fileName), e);
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (3)
872return new System.IO.IOException(SR.Image_StreamRead, exceptionForHR); 875return new System.IO.IOException(SR.Image_InvalidQueryRequest, exceptionForHR); 884return new System.IO.IOException(SR.Image_InvalidQueryCharacter, exceptionForHR);
PresentationFramework (2)
MS\Internal\IO\Packaging\UnsafeIndexingFilterStream.cs (2)
110throw new IOException("Read", comException); 115throw new IOException("Read", ioException);
Roslyn.Diagnostics.Analyzers (10)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
261throw new IOException(e.Message, e); 265throw new IOException(e.Message, e); 269throw new IOException(e.Message, e); 309throw new IOException(e.Message, e); 333throw new IOException(e.Message, e); 350throw new IOException(e.Message, e); 392throw new IOException(e.Message, e); 410throw new IOException(e.Message, e); 429throw new IOException(e.Message, e); 454throw new IOException(e.Message, e);
System.Drawing.Common (1)
System\Drawing\Icon.cs (1)
899throw new IOException(SR.IconCouldNotBeExtracted, ex);
System.IO.Compression (1)
System\IO\Compression\DeflateZLib\ZLibException.cs (1)
49public ZLibException(string? message, Exception? innerException) : base(message, innerException) { }
System.IO.FileSystem.DriveInfo (1)
System\IO\DriveNotFoundException.cs (1)
27: base(message ?? SR.IO_DriveNotFound, innerException)
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
79throw new IOException(exc.Message, exc);
System.IO.Pipes (1)
System\IO\Pipes\PipeStream.Unix.cs (1)
338return new IOException(e.Message, e);
System.Net.Http (4)
System\Net\Http\HttpIOException.cs (1)
20: base(message, innerException)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (2)
268throw new IOException(SR.net_http_http2_connection_not_established, _abortException ?? e); 2288innerException as HttpIOException ?? ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_http_request_aborted, innerException));
System\Net\Http\SocketsHttpHandler\SocksException.cs (1)
12public SocksException(string message, Exception innerException) : base(message, innerException) { }
System.Net.Http.WinHttpHandler (9)
System\Net\Http\WinHttpRequestCallback.cs (3)
489new IOException(SR.net_http_io_read, innerException)); 501state.LifecycleAwaitable.SetException(new IOException(SR.net_http_io_read, innerException)); 515new IOException(SR.net_http_io_write, innerException));
System\Net\Http\WinHttpRequestStream.cs (2)
237new IOException(SR.net_http_io_write, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpWriteData)))); 258new IOException(SR.net_http_io_write, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpWriteData))));
System\Net\Http\WinHttpResponseStream.cs (4)
126throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpQueryDataAvailable))); 143throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpReadData))); 227throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpQueryDataAvailable))); 242throw new IOException(SR.net_http_io_read, WinHttpException.CreateExceptionUsingLastError(nameof(Interop.WinHttp.WinHttpReadData)));
System.Net.Quic (1)
System\Net\Quic\QuicException.cs (1)
54: base(message, innerException)
System.Net.Security (10)
System\Net\Security\NegotiateStream.cs (2)
445throw new IOException(SR.net_io_read, e); 559throw new IOException(SR.net_io_write, e);
System\Net\Security\SslStream.IO.cs (5)
754return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)))); 789throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)); 976throw new IOException(SR.net_io_decrypt, SslStreamPal.GetException(status)); 1034throw new IOException(SR.net_io_read, e); 1082throw new IOException(SR.net_io_write, e);
System\Net\Security\TlsSession.cs (3)
1190throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)); 1325throw new IOException(SR.net_io_decrypt, SslStreamPal.GetException(status)); 1488throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(status));
System.Net.Sockets (3)
System\Net\Sockets\NetworkStream.cs (1)
721return new IOException(SR.Format(resourceFormatString, innerException.Message), innerException);
System\Net\Sockets\Socket.Tasks.cs (2)
905new IOException(SR.Format(SR.net_io_readwritefailure, e.Message), e) : 1378new IOException(SR.Format(_isReadForCaching ? SR.net_io_readfailure : SR.net_io_writefailure, e.Message), e) :
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
239throw new IOException(SR.Arg_DecBitCtor, e);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryNotFoundException.cs (2)
33: base(message ?? SR.Arg_DirectoryNotFoundException, innerException) 44: base(message ?? (directoryPath is not null
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\EndOfStreamException.cs (1)
27: base(message ?? SR.Arg_EndOfStreamException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileLoadException.cs (2)
27: base(message, inner) 39: base(message, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (2)
29: base(message, innerException) 42: base(message, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PathTooLongException.cs (1)
27: base(message ?? SR.IO_PathTooLong, innerException)
System.Reflection.Metadata (1)
System\Reflection\Internal\MemoryBlocks\StreamMemoryBlockProvider.cs (1)
138throw new IOException(e.Message, e);
System.ServiceModel.NetNamedPipe (1)
System\IO\PipeException.cs (1)
27: base(message, inner)
System.ServiceModel.Primitives (1)
System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
394throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new IOException(SRP.Format(SRP.SFxStreamIOException), ex));
System.Speech (1)
Internal\ResourceLoader.cs (1)
51throw new IOException(e.Message, e);