130 references to IOException
ClientSample (2)
Tcp\TcpConnection.cs (2)
144error = new IOException(ex.Message, ex); 205error = new IOException(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));
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)
158Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 279Exception 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)
176var exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 392Exception exception = new IOException(string.Empty, new HttpSysException((int)statusCode)); 715var 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)
497throw new IOException(CoreStrings.BadRequest_BadChunkSizeData, ex);
Internal\Http2\Http2Connection.cs (2)
348AbortStream(_incomingFrame.StreamId, new IOException(ex.Message, ex)); 457stream.Abort(new IOException(CoreStrings.Http2StreamAborted, connectionError));
Internal\Http3\Http3Stream.cs (1)
672AbortCore(new IOException(CoreStrings.HttpStreamResetByClient, ex), (Http3ErrorCode)resolvedErrorCode);
LocalhostListenOptions.cs (1)
63throw 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.AspNetCore.WebSockets.Tests (1)
BufferStream.cs (1)
321throw new IOException(string.Empty, _abortException);
Microsoft.Build (1)
TempFileUtilities.cs (1)
199throw new IOException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.FailedCreatingTempFile", ex.Message), ex);
Microsoft.Build.Engine.OM.UnitTests (1)
TempFileUtilities.cs (1)
199throw new IOException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.FailedCreatingTempFile", ex.Message), ex);
Microsoft.Build.Tasks.Core (1)
TempFileUtilities.cs (1)
199throw new IOException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.FailedCreatingTempFile", ex.Message), ex);
Microsoft.Build.Utilities.Core (1)
TempFileUtilities.cs (1)
199throw new IOException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.FailedCreatingTempFile", ex.Message), ex);
Microsoft.CodeAnalysis (13)
FileSystem\FileUtilities.cs (10)
258throw new IOException(e.Message, e); 262throw new IOException(e.Message, e); 266throw new IOException(e.Message, e); 306throw new IOException(e.Message, e); 330throw new IOException(e.Message, e); 347throw new IOException(e.Message, e); 389throw new IOException(e.Message, e); 407throw new IOException(e.Message, e); 426throw new IOException(e.Message, e); 451throw 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.CodeStyle (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
258throw new IOException(e.Message, e); 262throw new IOException(e.Message, e); 266throw new IOException(e.Message, e); 306throw new IOException(e.Message, e); 330throw new IOException(e.Message, e); 347throw new IOException(e.Message, e); 389throw new IOException(e.Message, e); 407throw new IOException(e.Message, e); 426throw new IOException(e.Message, e); 451throw new IOException(e.Message, e);
Microsoft.CodeAnalysis.Features (1)
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (1)
97throw new IOException(e.Message, e);
Microsoft.CodeAnalysis.InteractiveHost (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
258throw new IOException(e.Message, e); 262throw new IOException(e.Message, e); 266throw new IOException(e.Message, e); 306throw new IOException(e.Message, e); 330throw new IOException(e.Message, e); 347throw new IOException(e.Message, e); 389throw new IOException(e.Message, e); 407throw new IOException(e.Message, e); 426throw new IOException(e.Message, e); 451throw new IOException(e.Message, e);
Microsoft.CodeAnalysis.Workspaces (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
258throw new IOException(e.Message, e); 262throw new IOException(e.Message, e); 266throw new IOException(e.Message, e); 306throw new IOException(e.Message, e); 330throw new IOException(e.Message, e); 347throw new IOException(e.Message, e); 389throw new IOException(e.Message, e); 407throw new IOException(e.Message, e); 426throw new IOException(e.Message, e); 451throw new IOException(e.Message, e);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (10)
src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (10)
258throw new IOException(e.Message, e); 262throw new IOException(e.Message, e); 266throw new IOException(e.Message, e); 306throw new IOException(e.Message, e); 330throw new IOException(e.Message, e); 347throw new IOException(e.Message, e); 389throw new IOException(e.Message, e); 407throw new IOException(e.Message, e); 426throw new IOException(e.Message, e); 451throw 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);
MSBuild (1)
TempFileUtilities.cs (1)
199throw new IOException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("Shared.FailedCreatingTempFile", ex.Message), ex);
PresentationCore (4)
MS\Internal\FontCache\FontCacheUtil.cs (1)
776return new IOException(SR.Format(SR.IOExceptionWithFileName, fileName), e);
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);
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)
85throw 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)
258throw new IOException(SR.net_http_http2_connection_not_established, e); 2176innerException as HttpIOException ?? 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.Quic (1)
System\Net\Quic\QuicException.cs (1)
54: base(message, innerException)
System.Net.Security (7)
System\Net\Security\NegotiateStream.cs (2)
440throw new IOException(SR.net_io_read, e); 554throw new IOException(SR.net_io_write, e);
System\Net\Security\SslStream.IO.cs (5)
655return ValueTask.FromException(ExceptionDispatchInfo.SetCurrentStackTrace(new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)))); 690throw new IOException(SR.net_io_encrypt, SslStreamPal.GetException(token.Status)); 901throw new IOException(SR.net_io_decrypt, SslStreamPal.GetException(status)); 950throw new IOException(SR.net_io_read, e); 989throw new IOException(SR.net_io_write, e);
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)
927new IOException(SR.Format(SR.net_io_readwritefailure, e.Message), e) : 1399new IOException(SR.Format(_isReadForCaching ? SR.net_io_readfailure : SR.net_io_writefailure, e.Message), e) :
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
239throw new IOException(SR.Arg_DecBitCtor, e);
src\libraries\System.Private.CoreLib\src\System\IO\DirectoryNotFoundException.cs (1)
33: base(message ?? SR.Arg_DirectoryNotFoundException, innerException)
src\libraries\System.Private.CoreLib\src\System\IO\EndOfStreamException.cs (1)
27: base(message ?? SR.Arg_EndOfStreamException, innerException)
src\libraries\System.Private.CoreLib\src\System\IO\FileLoadException.cs (2)
27: base(message, inner) 39: base(message, inner)
src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (2)
29: base(message, innerException) 42: base(message, innerException)
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)