228 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));
GenerateDocumentationAndConfigFiles (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);
Metrics (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);
Metrics.Legacy (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.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)
686AbortCore(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.AspNetCore.WebSockets.Tests (1)
BufferStream.cs (1)
321throw new IOException(string.Empty, _abortException);
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.Analyzers (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.AnalyzerUtilities (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.BannedApiAnalyzers (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.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.PerformanceSensitiveAnalyzers (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.PublicApiAnalyzers (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.ResxSourceGenerator (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);
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);
Roslyn.Diagnostics.Analyzers (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);
System.IO.FileSystem.DriveInfo (1)
System\IO\DriveNotFoundException.cs (1)
27: base(message ?? SR.IO_DriveNotFound, innerException)
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)
System.ServiceModel.Primitives (1)
System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
394throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new IOException(SRP.Format(SRP.SFxStreamIOException), ex));
Test.Utilities (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);
Text.Analyzers (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);