1087 references to Exception
aspire (1)
Projects\ProjectLocator.cs (1)
161public ProjectLocatorException(string message) : base(message) { }
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\ToolCommandException.cs (1)
9public ToolCommandException(string message, CommandResult? result) : base(message)
Aspire.Hosting (1)
DistributedApplicationException.cs (1)
23public DistributedApplicationException(string message) : base(message) { }
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\ToolCommandException.cs (1)
9public ToolCommandException(string message, CommandResult? result) : base(message)
BasicWebSite (4)
Controllers\AsyncActionsController.cs (1)
256public CustomException() : base("This is a custom exception.")
Controllers\AuthorizeUserController.cs (1)
27throw new Exception("Shouldn't be invoked.");
Controllers\CustomServiceApiController.cs (1)
45throw new Exception("Service should not have been resolved");
Controllers\FiltersController.cs (1)
16throw new Exception("Shouldn't be executed");
BuildBoss (4)
CompilerNuGetCheckerUtil.cs (2)
433return file ?? throw new Exception($"Unable to find unique '{partialName}' in '{directory}'"); 441return file ?? throw new Exception($"Unable to find '{fileName}' in '{directory}'");
SolutionCheckerUtil.cs (1)
120default: throw new Exception($"Invalid file path {data.FilePath}");
SolutionUtil.cs (1)
76throw new Exception($"Invalid project line {line}");
BuildValidator (3)
CompilationDiff.cs (1)
222throw new Exception($"Unexpected value {Result}");
LocalReferenceResolver.cs (1)
114throw new Exception($"Could not find referenced assembly {referenceInfo}");
LocalSourceResolver.cs (1)
54throw new Exception($@"File ""{onDiskPath}"" has incorrect hash");
Client.ExpectedExceptions.IntegrationTests (1)
ExpectedExceptionTests.4.0.0.cs (1)
403throw new Exception(exceptionMsg);
ClientSample (1)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
Contract.Fault.IntegrationTests (1)
FaultExceptionTests.cs (1)
78throw new Exception("Expected TestFaultWithKnownType in the ClientOperations, Actual: TestFaultWithKnownType NOT Found");
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\BuildErrorException.cs (1)
19public BuildErrorException(string message) : base(message)
DefaultBuilder.SampleApp (1)
Program.cs (1)
47.MapGet("throw/{message?}", (req, res, data) => throw new Exception((string)data.Values["message"] ?? "Uh oh!"))
DeveloperExceptionPageSample (1)
Startup.cs (1)
40throw new Exception(string.Concat(
Diagnostics.EFCore.FunctionalTests (9)
DatabaseErrorPageMiddlewareTest.cs (7)
126throw new Exception("SaveChanges should have thrown"); 161throw new Exception("SaveChanges should have thrown"); 226throw new Exception("SaveChanges should have thrown"); 266throw new Exception("SaveChanges should have thrown"); 429throw new Exception("SaveChanges should have thrown"); 472throw new Exception("SaveChanges should have thrown"); 508throw new Exception("SaveChanges should have thrown");
TestModels\BloggingContextWithSnapshotThatThrows.cs (2)
22throw new Exception("Welcome to the invalid snapshot!"); 34throw new Exception("Welcome to the invalid migration!");
dotnet-dev-certs (1)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
dotnet-getdocument (2)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
src\Tools\GetDocumentInsider\src\CommandException.cs (1)
11: base(message)
dotnet-openapi (1)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
dotnet-sql-cache (1)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
dotnet-svcutil-lib (40)
Bootstrapper\BootstrapException.cs (1)
16public BootstrapException(string message) : base(message) { }
FrameworkFork\Microsoft.CodeDom\Configuration\ConfigurationErrorsException.cs (1)
15public ConfigurationErrorsException(string message) : base(message)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (2)
3220throw new Exception("Prefix not interned: \'" + decl.prefix + "\'"); 3222throw new Exception("Uri not interned: \'" + decl.uri + "\'");
FrameworkFork\Microsoft.Xml\Xml\Core\util\TernaryTreeGenerator.cs (4)
239throw new Exception("Too many characters have been added"); 260throw new Exception("Too many characters have been added"); 308throw new Exception("String table not correctly sorted"); 329throw new Exception("String table not correctly sorted");
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (3)
470throw new Exception("If conversion from " + tSrc.Name + " to " + tDst.Name + " exists, a default conversion should also be defined."); 1002throw new Exception("Unknown type " + name); 1057throw new Exception("Internal error: Unable to seek/read/write this filestream");
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCustomFormatter.cs (2)
59throw new Exception(string.Format(ResXml.XmlUnsupportedDefaultType, type.FullName)); 206throw new Exception(string.Format(ResXml.XmlUnsupportedDefaultValue, formatter));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\InvalidDataContractException.cs (1)
16public InvalidDataContractException(String message) : base(message)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SerializationException.cs (1)
20: base(message)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\FatalException.cs (1)
12public FatalException(string message) : base(message)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (1)
1006: base(InternalSR.ShipAssertExceptionMessage(description))
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityMessageSerializationException.cs (1)
15: base(message)
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityTokenException.cs (1)
15: base(message)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (2)
439throw new Exception("SocketConnection.EndWrite called with no write pending."); 742throw new Exception("SocketConnection.EndRead called with no read pending.");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (2)
473throw new Exception("invalid framing client state machine"); 513throw new Exception("invalid framing client state machine");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\InvalidChannelBindingException.cs (1)
12public InvalidChannelBindingException(string message) : base(message) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SessionConnectionReader.cs (2)
136throw new Exception("Receive: DecodeMessage() should consume the outstanding buffer or return a message."); 194throw new Exception("Receive: DecodeMessage() should consume the outstanding buffer or return a message.");
FrameworkFork\System.ServiceModel\System\ServiceModel\CommunicationException.cs (1)
10public CommunicationException(string message) : base(message) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
1040public ParameterModeException(string message) : base(message) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\InvalidMessageContractException.cs (1)
18: base(message)
FrameworkFork\System.ServiceModel\System\ServiceModel\QuotaExceededException.cs (1)
18: base(message)
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptions.cs (1)
109return new Exception(string.Format(ResWebServices.WebDescriptionMissingItem, type, name.Name, name.Namespace));
Metadata\MetadataExchangeException.cs (2)
17public MetadataExchangeException(string message) : base(message) { } 19public MetadataExchangeException(string format, params object[] args) : base(string.Format(CultureInfo.InvariantCulture, format, args)) { }
Shared\MSBuildProj.cs (4)
183throw new Exception(Shared.Resources.ErrorInvalidProjectFormat); 329throw new Exception(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorProjectReferenceMissingFilePathFormat, binReference)); 484throw new Exception(Shared.Resources.ErrorInvalidProjectFormat); 511throw new Exception(Shared.Resources.ErrorInvalidProjectFormat);
Shared\TargetFrameworkHelper.cs (1)
128throw new Exception(string.Format(CultureInfo.CurrentCulture, Shared.Resources.ErrorNotSupportedTargetFrameworkFormat,
Shared\Utilities\ProcessRunner.cs (1)
22public ProcessException(string message, int exitCode) : base(message) { this.ExitCode = exitCode; }
ToolRuntimeException.cs (1)
17public ToolRuntimeException(string message) : base(message)
dotnet-user-jwts (1)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
dotnet-user-secrets (1)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
ErrorCustomCheck (3)
ErrorOnInitializeCheck.cs (1)
27throw new Exception("Something went wrong initializing");
ErrorOnRegisteredAction.cs (1)
35throw new Exception("something went wrong when executing registered action");
ErrorWhenRegisteringActions.cs (1)
32throw new Exception("something went wrong when registering actions");
ExceptionHandlerSample (2)
Startup.cs (1)
42throwApp.Run(context => { throw new Exception("Application Exception"); });
StartupWithProblemDetails.cs (1)
24throwApp.Run(_ => throw new Exception("Application Exception"));
GenerateRulesMissingDocumentation (1)
Program.cs (1)
150throw new Exception($"'{path}' does not exist");
GetDocument.Insider (2)
CommandException.cs (1)
11: base(message)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
http2cat (10)
src\Shared\Http2cat\Http2Utilities.cs (5)
1009throw new Exception($"Assert.True failed: '{message}'"); 1017throw new Exception($"Assert.Equal('{expected}', '{actual}') failed"); 1025throw new Exception($"Assert.Equal('{expected}', '{actual}') failed"); 1033throw new Exception($"Assert.NotEqual('{value1}', '{value2}') failed"); 1041throw new Exception($"Assert.Contains(collection, '{value}') failed");
src\Shared\runtime\Http2\Hpack\HPackDecodingException.cs (1)
17public HPackDecodingException(string message) : base(message)
src\Shared\runtime\Http2\Hpack\HPackEncodingException.cs (1)
13: base(message)
src\Shared\runtime\Http2\Hpack\HuffmanDecodingException.cs (1)
18: base(message)
src\Shared\ServerInfrastructure\Http2\Http2ConnectionErrorException.cs (1)
11: base($"HTTP/2 connection error ({errorCode}): {message}")
src\Shared\ServerInfrastructure\Http2\Http2SettingsParameterOutOfRangeException.cs (1)
11: base($"HTTP/2 SETTINGS parameter {parameter} must be set to a value between {lowerBound} and {upperBound}")
HttpStress (7)
Program.cs (7)
103throw new Exception($"Expected response version {expectedVersion}, got {m.Version}"); 111throw new Exception($"Expected response content \"{expectedContent}\", got \"{actualContent}\""); 126throw new Exception("Completed unexpectedly"); 331throw new Exception($"Expected {maxContentLength}, got {m.Content.Headers.ContentLength}"); 336throw new Exception($"Got unexpected response: {r}"); 354throw new Exception($"Got unexpected response: {r}"); 620throw new Exception("There was a failure in the stress run. See logs for exact time of failure");
IdeCoreBenchmarks (1)
FindReferencesBenchmarks.cs (1)
100throw new Exception("Couldn't find type");
IIS.FunctionalTests (11)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
37throw new Exception($"Server not started successfully, recieved non success status code, responseText: {responseText}");
src\Shared\Http2cat\Http2Utilities.cs (5)
1009throw new Exception($"Assert.True failed: '{message}'"); 1017throw new Exception($"Assert.Equal('{expected}', '{actual}') failed"); 1025throw new Exception($"Assert.Equal('{expected}', '{actual}') failed"); 1033throw new Exception($"Assert.NotEqual('{value1}', '{value2}') failed"); 1041throw new Exception($"Assert.Contains(collection, '{value}') failed");
src\Shared\runtime\Http2\Hpack\HPackDecodingException.cs (1)
17public HPackDecodingException(string message) : base(message)
src\Shared\runtime\Http2\Hpack\HPackEncodingException.cs (1)
13: base(message)
src\Shared\runtime\Http2\Hpack\HuffmanDecodingException.cs (1)
18: base(message)
src\Shared\ServerInfrastructure\Http2\Http2ConnectionErrorException.cs (1)
11: base($"HTTP/2 connection error ({errorCode}): {message}")
src\Shared\ServerInfrastructure\Http2\Http2SettingsParameterOutOfRangeException.cs (1)
11: base($"HTTP/2 SETTINGS parameter {parameter} must be set to a value between {lowerBound} and {upperBound}")
IIS.LongTests (11)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
37throw new Exception($"Server not started successfully, recieved non success status code, responseText: {responseText}");
src\Shared\Http2cat\Http2Utilities.cs (5)
1009throw new Exception($"Assert.True failed: '{message}'"); 1017throw new Exception($"Assert.Equal('{expected}', '{actual}') failed"); 1025throw new Exception($"Assert.Equal('{expected}', '{actual}') failed"); 1033throw new Exception($"Assert.NotEqual('{value1}', '{value2}') failed"); 1041throw new Exception($"Assert.Contains(collection, '{value}') failed");
src\Shared\runtime\Http2\Hpack\HPackDecodingException.cs (1)
17public HPackDecodingException(string message) : base(message)
src\Shared\runtime\Http2\Hpack\HPackEncodingException.cs (1)
13: base(message)
src\Shared\runtime\Http2\Hpack\HuffmanDecodingException.cs (1)
18: base(message)
src\Shared\ServerInfrastructure\Http2\Http2ConnectionErrorException.cs (1)
11: base($"HTTP/2 connection error ({errorCode}): {message}")
src\Shared\ServerInfrastructure\Http2\Http2SettingsParameterOutOfRangeException.cs (1)
11: base($"HTTP/2 SETTINGS parameter {parameter} must be set to a value between {lowerBound} and {upperBound}")
IIS.NewHandler.FunctionalTests (11)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
37throw new Exception($"Server not started successfully, recieved non success status code, responseText: {responseText}");
src\Shared\Http2cat\Http2Utilities.cs (5)
1009throw new Exception($"Assert.True failed: '{message}'"); 1017throw new Exception($"Assert.Equal('{expected}', '{actual}') failed"); 1025throw new Exception($"Assert.Equal('{expected}', '{actual}') failed"); 1033throw new Exception($"Assert.NotEqual('{value1}', '{value2}') failed"); 1041throw new Exception($"Assert.Contains(collection, '{value}') failed");
src\Shared\runtime\Http2\Hpack\HPackDecodingException.cs (1)
17public HPackDecodingException(string message) : base(message)
src\Shared\runtime\Http2\Hpack\HPackEncodingException.cs (1)
13: base(message)
src\Shared\runtime\Http2\Hpack\HuffmanDecodingException.cs (1)
18: base(message)
src\Shared\ServerInfrastructure\Http2\Http2ConnectionErrorException.cs (1)
11: base($"HTTP/2 connection error ({errorCode}): {message}")
src\Shared\ServerInfrastructure\Http2\Http2SettingsParameterOutOfRangeException.cs (1)
11: base($"HTTP/2 SETTINGS parameter {parameter} must be set to a value between {lowerBound} and {upperBound}")
IIS.NewShim.FunctionalTests (11)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
37throw new Exception($"Server not started successfully, recieved non success status code, responseText: {responseText}");
src\Shared\Http2cat\Http2Utilities.cs (5)
1009throw new Exception($"Assert.True failed: '{message}'"); 1017throw new Exception($"Assert.Equal('{expected}', '{actual}') failed"); 1025throw new Exception($"Assert.Equal('{expected}', '{actual}') failed"); 1033throw new Exception($"Assert.NotEqual('{value1}', '{value2}') failed"); 1041throw new Exception($"Assert.Contains(collection, '{value}') failed");
src\Shared\runtime\Http2\Hpack\HPackDecodingException.cs (1)
17public HPackDecodingException(string message) : base(message)
src\Shared\runtime\Http2\Hpack\HPackEncodingException.cs (1)
13: base(message)
src\Shared\runtime\Http2\Hpack\HuffmanDecodingException.cs (1)
18: base(message)
src\Shared\ServerInfrastructure\Http2\Http2ConnectionErrorException.cs (1)
11: base($"HTTP/2 connection error ({errorCode}): {message}")
src\Shared\ServerInfrastructure\Http2\Http2SettingsParameterOutOfRangeException.cs (1)
11: base($"HTTP/2 SETTINGS parameter {parameter} must be set to a value between {lowerBound} and {upperBound}")
IIS.ShadowCopy.Tests (3)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
37throw new Exception($"Server not started successfully, recieved non success status code, responseText: {responseText}");
src\Shared\ServerInfrastructure\Http2\Http2ConnectionErrorException.cs (1)
11: base($"HTTP/2 connection error ({errorCode}): {message}")
src\Shared\ServerInfrastructure\Http2\Http2SettingsParameterOutOfRangeException.cs (1)
11: base($"HTTP/2 SETTINGS parameter {parameter} must be set to a value between {lowerBound} and {upperBound}")
IISExpress.FunctionalTests (11)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\Helpers.cs (1)
37throw new Exception($"Server not started successfully, recieved non success status code, responseText: {responseText}");
src\Shared\Http2cat\Http2Utilities.cs (5)
1009throw new Exception($"Assert.True failed: '{message}'"); 1017throw new Exception($"Assert.Equal('{expected}', '{actual}') failed"); 1025throw new Exception($"Assert.Equal('{expected}', '{actual}') failed"); 1033throw new Exception($"Assert.NotEqual('{value1}', '{value2}') failed"); 1041throw new Exception($"Assert.Contains(collection, '{value}') failed");
src\Shared\runtime\Http2\Hpack\HPackDecodingException.cs (1)
17public HPackDecodingException(string message) : base(message)
src\Shared\runtime\Http2\Hpack\HPackEncodingException.cs (1)
13: base(message)
src\Shared\runtime\Http2\Hpack\HuffmanDecodingException.cs (1)
18: base(message)
src\Shared\ServerInfrastructure\Http2\Http2ConnectionErrorException.cs (1)
11: base($"HTTP/2 connection error ({errorCode}): {message}")
src\Shared\ServerInfrastructure\Http2\Http2SettingsParameterOutOfRangeException.cs (1)
11: base($"HTTP/2 SETTINGS parameter {parameter} must be set to a value between {lowerBound} and {upperBound}")
illink (2)
InMemory.FunctionalTests (12)
Http2\Http2StreamTests.cs (4)
3101throw new Exception("App Faulted"); 3135throw new Exception("App Faulted"); 3255_runningStreams[streamIdFeature.StreamId].TrySetException(new Exception("ReadAsync was expected to throw.")); 3298_runningStreams[streamIdFeature.StreamId].TrySetException(new Exception("ReadAsync was expected to throw."));
Http2\Http2WebSocketTests.cs (1)
613throw new Exception("ConnectProtocol should be null here. The fact that it is not indicates that we are not resetting properly between requests.");
Http3\WebTransport\WebTransportHandshakeTests.cs (2)
149_ => throw new Exception("Core string not mapped yet") 163_ => throw new Exception("Header name not mapped yet")
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
580throw new Exception("Reader didn't complete with frame");
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (1)
84throw new Exception($"Couldn't find a free port after {startingPort}.");
src\Servers\Kestrel\shared\test\StreamExtensions.cs (1)
67throw new Exception("Stream read 0.");
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (2)
86throw new Exception($"Shutdown failure. {log}"); 94throw new Exception($"Unexpected connection error. {log}");
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
185throw new Exception("Failed to set local and remote ip addresses");
Interop.FunctionalTests (6)
H2SpecCommands.cs (1)
291throw new Exception(string.Join(Environment.NewLine, failures));
Http3\Http3RequestTests.cs (1)
1930throw new Exception($"Wait for logs failure: {message}");
HttpClientHttp2InteropTests.cs (1)
511_sendComplete.TrySetException(new Exception("Abort"));
HttpHelpers.cs (1)
35throw new Exception($"Couldn't find {nameof(HttpProtocolException)}. Original error: {ex}");
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (1)
84throw new Exception($"Couldn't find a free port after {startingPort}.");
src\Servers\Kestrel\shared\test\StreamExtensions.cs (1)
67throw new Exception("Stream read 0.");
Microsoft.Analyzers.Local (2)
ApiLifecycle\Json\JsonParseException.cs (2)
36: base(GetMessage(ParsingError.Unknown)) 57: base(message)
Microsoft.Arcade.Common (1)
CommandResult.cs (1)
46throw new Exception(message.ToString());
Microsoft.Arcade.Test.Common (1)
AssertEx.cs (1)
394throw new Exception("No exception was thrown.");
Microsoft.AspNetCore.Antiforgery (1)
AntiforgeryValidationException.cs (1)
17: base(message)
Microsoft.AspNetCore.Antiforgery.Test (1)
DefaultAntiforgeryTest.cs (1)
172.Throws(new Exception("should be swallowed"));
Microsoft.AspNetCore.App.Analyzers.Test (6)
RouteEmbeddedLanguage\RoutePatternBraceMatcherTests.cs (2)
197throw new Exception("No result doesn't match spans."); 202throw new Exception("Not found.");
RouteEmbeddedLanguage\RoutePatternHighlighterTests.cs (2)
463throw new Exception($"Couldn't find {span.TextSpan} in highlight results."); 469throw new Exception($"Unmatched highlight spans in document: {string.Join(", ", tempSpans)}");
RouteEmbeddedLanguage\RoutePatternParserTests.cs (1)
223throw new Exception($"Couldn't find parameter '{parsedRoutePattern.Name}'.");
RouteEmbeddedLanguage\RoutePatternParserTests_ConformanceTests.cs (1)
842throw new Exception($"Couldn't find expected route parameter: {expectedName}");
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationFailureException.cs (1)
17: base(message)
Microsoft.AspNetCore.Authentication.Negotiate.Test (6)
EventTests.cs (3)
574ex = new Exception("A test credential error occurred"); 578ex = new Exception("A test client error occurred"); 582ex = new Exception("A test other error occurred");
NegotiateHandlerTests.cs (3)
598ex = new Exception("A test credential error occurred"); 602ex = new Exception("A test client error occurred"); 606ex = new Exception("A test other error occurred");
Microsoft.AspNetCore.Authentication.Test (4)
JwtBearerTests.cs (2)
703throw new Exception("Test Exception"); 737throw new Exception("Test Exception");
JwtBearerTests_Handler.cs (2)
658throw new Exception("Test Exception"); 689throw new Exception("Test Exception");
Microsoft.AspNetCore.Components (2)
src\Http\Routing\src\Patterns\RoutePatternException.cs (1)
32: base(message)
src\Http\Routing\src\RouteCreationException.cs (1)
20: base(message)
Microsoft.AspNetCore.Components.Server (1)
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackSerializationException.cs (1)
31: base(message)
Microsoft.AspNetCore.Components.Tests (2)
RendererTest.cs (1)
701OnTest = args => throw new Exception("Error")
Routing\RouterTest.cs (1)
67throw new Exception("This is an uncaught exception.");
Microsoft.AspNetCore.Components.WebView.Test (8)
Infrastructure\ContainerNode.cs (1)
40throw new Exception("Not implemented: inserting non-empty logical container");
Infrastructure\TestDocument.cs (7)
105throw new Exception("Cannot set attribute on non-element child"); 129throw new Exception("Cannot remove attribute from non-element child"); 145throw new Exception("Cannot set text content on non-text child"); 192throw new Exception($"Unknown edit type: '{edit.Type}'"); 216throw new Exception("Attribute frames should only be present as leading children of element frames."); 238throw new Exception("Reference capture frames can only be children of element frames."); 250throw new Exception($"Unknown frame type: {frame.FrameType}");
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
TaskExtensions.cs (1)
19throw new Exception("Unreachable code");
Microsoft.AspNetCore.Cors.Test (2)
CorsMiddlewareTests.cs (2)
602throw new Exception("Runtime error"); 750c => { throw new Exception("Should not be called."); },
Microsoft.AspNetCore.DataProtection.Extensions.Tests (1)
TimeLimitedDataProtectorTests.cs (1)
139mockInnerProtector.Setup(o => o.CreateProtector(TimeLimitedPurposeString).Unprotect(new byte[] { 0x10, 0x11 })).Throws(new Exception("How exceptional!"));
Microsoft.AspNetCore.DataProtection.Tests (3)
KeyManagement\DefaultKeyResolverTests.cs (1)
468mockKey.Setup(o => o.CreateEncryptor()).Throws(new Exception("This method fails."));
KeyManagement\DeferredKeyTests.cs (1)
68throw new Exception("How exceptional.");
KeyManagement\KeyRingProviderTests.cs (1)
734mockCacheableKeyRingProvider.Setup(o => o.GetCacheableKeyRing(throwKeyRingTime)).Throws(new Exception("How exceptional."));
Microsoft.AspNetCore.Diagnostics.Tests (18)
DeveloperExceptionPageMiddlewareTest.cs (11)
53throw new Exception("Test exception"); 106throw new Exception("Test exception"); 165throw new Exception("Test exception"); 208throw new Exception("Test exception"); 243throw new Exception("Test exception"); 280throw new Exception("Test exception"); 318throw new Exception("Test exception"); 390throw new Exception("Test exception"); 426throw new Exception("Test exception"); 464throw new Exception("Test exception"); 596throw new Exception("Test exception");
ExceptionHandlerMiddlewareTest.cs (3)
59throw new Exception("Test exception"); 327throw new Exception("Test exception"); 394throw new Exception("Test exception");
ExceptionHandlerTest.cs (4)
479throw new Exception("Test exception"); 1018throw new Exception("Test exception"); 1088throw new Exception("Test exception1"); 1151throw new Exception("Test exception1");
Microsoft.AspNetCore.FunctionalTests (1)
WebHostFunctionalTests.cs (1)
250throw new Exception($"Solution root could not be found using {applicationBasePath}");
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (4)
ServerStreamingServerCallHandlerTests.cs (3)
92throw new Exception("Exception!"); 130var debugException = new Exception("Error!"); 174return Task.FromException<HelloReply>(new Exception("Exception!"));
UnaryServerCallHandlerTests.cs (1)
849var debugException = new Exception("Error!");
Microsoft.AspNetCore.Hosting.Tests (6)
ConfigureBuilderTests.cs (1)
47throw new Exception("Service instantiation failed");
Fakes\StartupConfigureServicesThrows.cs (1)
13throw new Exception("Exception from ConfigureServices");
Fakes\StartupConfigureThrows.cs (1)
17throw new Exception("Exception from Configure");
Fakes\StartupCtorThrows.cs (1)
12throw new Exception("Exception from constructor");
Fakes\StartupStaticCtorThrows.cs (1)
12throw new Exception("Exception from static constructor");
HostingApplicationDiagnosticsTests.cs (1)
202throw new Exception("Unexpected measurement count.");
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
UseExtensionsTests.cs (1)
67throw new Exception("From Use");
Microsoft.AspNetCore.Http.Connections.Client (1)
NoTransportSupportedException.cs (1)
18: base(message)
Microsoft.AspNetCore.Http.Connections.Tests (4)
HttpConnectionDispatcherTests.cs (1)
692throw new Exception("Too many callers.");
HttpConnectionManagerTests.cs (3)
86connection.ApplicationTask = Task.FromException(new Exception("Application failed")); 95throw new Exception("Transport failed"); 105connection.TransportTask = Task.FromException<bool>(new Exception("Application failed"));
Microsoft.AspNetCore.Http.Results.Tests (1)
ResultsOfTHelperTests.cs (1)
119throw new Exception("Shouldn't reach here.");
Microsoft.AspNetCore.Http.Tests (1)
Features\FormFeatureTests.cs (1)
666throw new Exception($"Value mismatch at loop {loops}, index {i}; A:{bytesA[i]}, B:{bytesB[i]}");
Microsoft.AspNetCore.Identity.Test (4)
SecurityStampValidatorTest.cs (3)
250signInManager.Setup(s => s.ValidateSecurityStampAsync(It.IsAny<ClaimsPrincipal>())).Throws(new Exception("Shouldn't be called")); 251signInManager.Setup(s => s.SignInAsync(user, false, null)).Throws(new Exception("Shouldn't be called")); 289signInManager.Setup(s => s.SignInAsync(user, false, null)).Throws(new Exception("Shouldn't be called"));
SignInManagerTest.cs (1)
405manager.Setup(m => m.AccessFailedAsync(user)).Throws(new Exception("Should not get called"));
Microsoft.AspNetCore.InternalTesting (1)
TestPathUtilities.cs (1)
43throw new Exception($"Solution file {solution}.slnf could not be found in {applicationBasePath} or its parent directories.");
Microsoft.AspNetCore.InternalTesting.Tests (6)
QuarantinedTestAttributeTest.cs (1)
18throw new Exception("Flaky!");
RetryTest.cs (2)
25throw new Exception($"NOOOOOOOO [retry count={_retryFailsUntil3}]"); 42throw new Exception($"NOOOOOOOO [retry count={_canOverrideRetries}]");
SkipOnCITests.cs (1)
18throw new Exception("Flaky!");
TestTestOutputHelper.cs (2)
23throw new Exception("Boom!"); 32throw new Exception("Boom!");
Microsoft.AspNetCore.MiddlewareAnalysis.Tests (1)
MiddlewareAnalysisTests.cs (1)
32throw new Exception("Test exception");
Microsoft.AspNetCore.Mvc.Abstractions (3)
Formatters\InputFormatterException.cs (1)
23: base(message)
ModelBinding\TooManyModelErrorsException.cs (1)
17: base(message)
ModelBinding\ValueProviderException.cs (1)
16: base(message)
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\UnsupportedContentTypeException.cs (1)
20: base(message)
Microsoft.AspNetCore.Mvc.Core.Test (2)
ModelBinding\UnsupportedContentTypeFilterTest.cs (1)
116new Exception("error"),
ValidationProblemDetailsTest.cs (1)
58new Exception("This message should not be returned to clients"),
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
Infrastructure\IHtmlDocumentExtensions.cs (1)
39throw new Exception($"Antiforgery token could not be located in {htmlDocument.Source.Text}.");
TempDataInCookiesTest.cs (1)
50throw new Exception($"Expected exactly one instance of TempDataSerializer based on NewtonsoftJson, but found {tempDataSerializers.Count} instance(s):" + Environment.NewLine + builder);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
CompilationFailedException.cs (1)
13: base(FormatMessage(compilationFailures))
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
RuntimeViewCompilerTest.cs (3)
99viewCompiler.Compile = _ => throw new Exception("Can't call me"); 126viewCompiler.Compile = _ => throw new Exception("Can't call me"); 707compiler.Compile = _ => throw new Exception("Shouldn't be called");
Microsoft.AspNetCore.Mvc.Razor.Test (2)
RazorViewEngineTest.cs (2)
850.Throws(new Exception("Shouldn't be called")); 887.Throws(new Exception("Shouldn't be called"));
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Filters\PageHandlerResultFilterTest.cs (1)
112.Throws(new Exception("Shouldn't be called"));
Infrastructure\PageHandlerPageFilterTest.cs (1)
114.Throws(new Exception("Shouldn't be called"));
PageModelTest.cs (1)
1901.Throws(new Exception("Shouldn't be called"));
Microsoft.AspNetCore.Mvc.TagHelpers.Test (2)
InputTagHelperTest.cs (2)
729throw new Exception("getChildContentAsync should not be called."); 800throw new Exception("getChildContentAsync should not be called.");
Microsoft.AspNetCore.Routing (3)
Matching\AmbiguousMatchException.cs (1)
15: base(message)
Patterns\RoutePatternException.cs (1)
32: base(message)
RouteCreationException.cs (1)
20: base(message)
Microsoft.AspNetCore.Routing.Tests (1)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (1)
187throw new Exception("Shouldn't reach here.");
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (19)
Http2Tests.cs (3)
520throw new Exception("Application exception"); 554throw new Exception("Application exception"); 586throw new Exception("Application exception");
Http3Tests.cs (1)
223throw new Exception("App Exception");
Listener\Utilities.cs (1)
69throw new Exception("Failed to locate a free port.");
RequestTests.cs (2)
516result.SetException(new Exception("The CT isn't valid.")); 565result.SetException(new Exception("This should have aborted"));
ResponseTests.cs (1)
168throw new Exception("Failed OnStarting");
src\Shared\Http2cat\Http2Utilities.cs (5)
1009throw new Exception($"Assert.True failed: '{message}'"); 1017throw new Exception($"Assert.Equal('{expected}', '{actual}') failed"); 1025throw new Exception($"Assert.Equal('{expected}', '{actual}') failed"); 1033throw new Exception($"Assert.NotEqual('{value1}', '{value2}') failed"); 1041throw new Exception($"Assert.Contains(collection, '{value}') failed");
src\Shared\runtime\Http2\Hpack\HPackDecodingException.cs (1)
17public HPackDecodingException(string message) : base(message)
src\Shared\runtime\Http2\Hpack\HPackEncodingException.cs (1)
13: base(message)
src\Shared\runtime\Http2\Hpack\HuffmanDecodingException.cs (1)
18: base(message)
src\Shared\ServerInfrastructure\Http2\Http2ConnectionErrorException.cs (1)
11: base($"HTTP/2 connection error ({errorCode}): {message}")
src\Shared\ServerInfrastructure\Http2\Http2SettingsParameterOutOfRangeException.cs (1)
11: base($"HTTP/2 SETTINGS parameter {parameter} must be set to a value between {lowerBound} and {upperBound}")
Utilities.cs (1)
169throw new Exception("Failed to locate a free port.");
Microsoft.AspNetCore.Server.IntegrationTesting (7)
ApplicationPublisher.cs (3)
27throw new Exception($"A target framework must be specified in the deployment parameters for applications that require publishing before deployment"); 86throw new Exception(message); 93throw new Exception(message);
Deployers\ApplicationDeployer.cs (1)
108throw new Exception($"Unable to find '{executableName}'.'");
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
263throw new Exception($"Failed to execute the script on '{_deploymentParameters.ServerName}'.");
Deployers\SelfHostDeployer.cs (2)
170started.TrySetException(new Exception($"Command exited unexpectedly with exit code: {HostProcess.ExitCode}")); 187throw new Exception("Failed to start host");
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (5)
IISExpressDeployer.cs (5)
226started.TrySetException(new Exception($"Command exited unexpectedly with exit code: {process.ExitCode}")); 236throw new Exception("Failed to start host"); 363throw new Exception($"Unable to find '{executableName}'.'"); 388throw new Exception("Unable to find IISExpress on the machine: " + iisExpressPath); 442throw new Exception($"iisexpress Process {_hostProcess.Id} failed to shutdown");
Microsoft.AspNetCore.Server.Kestrel.Core (10)
Internal\Http2\Http2StreamErrorException.cs (1)
9: base($"HTTP/2 stream ID {streamId} error ({errorCode}): {message}")
Internal\Http3\Http3ConnectionErrorException.cs (1)
11: base($"HTTP/3 connection error ({Http3Formatting.ToFormattedErrorCode(errorCode)}): {message}")
Internal\Http3\Http3StreamErrorException.cs (1)
11: base($"HTTP/3 stream error ({errorCode}): {message}")
src\Shared\runtime\Http2\Hpack\HPackDecodingException.cs (1)
17public HPackDecodingException(string message) : base(message)
src\Shared\runtime\Http2\Hpack\HPackEncodingException.cs (1)
13: base(message)
src\Shared\runtime\Http2\Hpack\HuffmanDecodingException.cs (1)
18: base(message)
src\Shared\runtime\Http3\QPack\QPackDecodingException.cs (1)
16public QPackDecodingException(string message) : base(message)
src\Shared\runtime\Http3\QPack\QPackEncodingException.cs (1)
13: base(message)
src\Shared\ServerInfrastructure\Http2\Http2ConnectionErrorException.cs (1)
11: base($"HTTP/2 connection error ({errorCode}): {message}")
src\Shared\ServerInfrastructure\Http2\Http2SettingsParameterOutOfRangeException.cs (1)
11: base($"HTTP/2 SETTINGS parameter {parameter} must be set to a value between {lowerBound} and {upperBound}")
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (8)
BodyControlTests.cs (4)
24var ex = new Exception("My error"); 41var ex = new Exception("My error"); 65var ex = new Exception("My error"); 90var ex = new Exception("My error");
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (1)
84throw new Exception($"Couldn't find a free port after {startingPort}.");
src\Servers\Kestrel\shared\test\StreamExtensions.cs (1)
67throw new Exception("Stream read 0.");
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (2)
86throw new Exception($"Shutdown failure. {log}"); 94throw new Exception($"Unexpected connection error. {log}");
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (4)
Http2\Http2ConnectionBenchmarkBase.cs (1)
127throw new Exception($"Unexpected stream ID: {_receiveHttpFrame.StreamId}");
src\Servers\Kestrel\shared\test\Http3\Http3InMemory.cs (1)
580throw new Exception("Reader didn't complete with frame");
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (2)
86throw new Exception($"Shutdown failure. {log}"); 94throw new Exception($"Unexpected connection error. {log}");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (6)
QuicConnectionListenerTests.cs (2)
242throw new Exception("An error!"); 422throw new Exception("Connection not removed from CWT.");
src\Servers\Kestrel\shared\test\ServerRetryHelper.cs (1)
84throw new Exception($"Couldn't find a free port after {startingPort}.");
src\Servers\Kestrel\shared\test\StreamExtensions.cs (1)
67throw new Exception("Stream read 0.");
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (2)
86throw new Exception($"Shutdown failure. {log}"); 94throw new Exception($"Unexpected connection error. {log}");
Microsoft.AspNetCore.Shared.Tests (8)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
src\Shared\runtime\Http2\Hpack\HPackDecodingException.cs (1)
17public HPackDecodingException(string message) : base(message)
src\Shared\runtime\Http2\Hpack\HPackEncodingException.cs (1)
13: base(message)
src\Shared\runtime\Http2\Hpack\HuffmanDecodingException.cs (1)
18: base(message)
src\Shared\runtime\Http3\QPack\QPackDecodingException.cs (1)
16public QPackDecodingException(string message) : base(message)
src\Shared\runtime\Http3\QPack\QPackEncodingException.cs (1)
13: base(message)
src\Shared\ServerInfrastructure\Http2\Http2ConnectionErrorException.cs (1)
11: base($"HTTP/2 connection error ({errorCode}): {message}")
src\Shared\ServerInfrastructure\Http2\Http2SettingsParameterOutOfRangeException.cs (1)
11: base($"HTTP/2 SETTINGS parameter {parameter} must be set to a value between {lowerBound} and {upperBound}")
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubConnectionTests.cs (2)
1352var x => throw new Exception($"The test does not have an exception string for the protocol '{x}'!"), 1406var x => throw new Exception($"The test does not have an exception string for the protocol '{x}'!"),
Microsoft.AspNetCore.SignalR.Client.Tests (6)
HttpConnectionFactoryTests.cs (1)
29testHandler.OnRequest((req, next, ct) => Task.FromException<HttpResponseMessage>(new Exception("BOOM")));
HttpConnectionTests.ConnectionLifecycle.cs (2)
91var expected = new Exception("Transport failed to start"); 143var expected = new Exception("Transport failed to start");
HubConnectionTests.cs (1)
592channel.Writer.Complete(new Exception("error from client"));
HubConnectionTests.Protocol.cs (2)
793throw new Exception("error from client"); 820throw new Exception("error from client");
Microsoft.AspNetCore.SignalR.Common (1)
HubException.cs (1)
31public HubException(string? message) : base(message)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
DefaultHubDispatcherBenchmark.cs (1)
100throw new Exception("Error invoking hub method: " + completionMessage.Error);
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TaskExtensions.cs (1)
19throw new Exception("Unreachable code");
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (2)
Docker.cs (2)
106throw new Exception("Redis took too long to start."); 166throw new Exception($"Command '{fileName} {arguments}' failed with exit code '{exitCode}'. Output:{Environment.NewLine}{output}");
Microsoft.AspNetCore.SignalR.Tests (5)
HubConnectionHandlerTests.ClientResult.cs (1)
355throw new Exception($"Protocol {protocol} not handled by test.");
HubConnectionHandlerTestUtils\Hubs.cs (4)
749throw new Exception("Exception from async enumerable"); 779channel.Writer.TryComplete(new Exception("Exception from channel")); 793channel.Writer.TryComplete(new ChannelClosedException(new Exception("ChannelClosedException from channel"))); 799throw new Exception("Throw from hub method");
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
TaskExtensions.cs (1)
19throw new Exception("Unreachable code");
Microsoft.AspNetCore.TestHost (1)
HttpResetTestException.cs (1)
18: base($"The application reset the request with error code {errorCode}.")
Microsoft.AspNetCore.TestHost.Tests (1)
TestServerTests.cs (1)
758throw new Exception("Test exception");
Microsoft.AspNetCore.WebSockets.ConformanceTests (1)
Autobahn\AutobahnTester.cs (1)
48throw new Exception("wstest failed");
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
3321throw new Exception(message);
BuildCheck\Infrastructure\BuildCheckConfigurationException.cs (1)
21public BuildCheckConfigurationException(string message, BuildCheckConfigurationErrorScope buildCheckConfigurationErrorScope = BuildCheckConfigurationErrorScope.SingleRule) : base(message)
Microsoft.Build.BuildCheck.UnitTests (3)
TestAssets\ErrorCustomCheck\ErrorOnInitializeCheck.cs (1)
27throw new Exception("Something went wrong initializing");
TestAssets\ErrorCustomCheck\ErrorOnRegisteredAction.cs (1)
35throw new Exception("something went wrong when executing registered action");
TestAssets\ErrorCustomCheck\ErrorWhenRegisteringActions.cs (1)
32throw new Exception("something went wrong when registering actions");
Microsoft.Build.Engine.OM.UnitTests (2)
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (2)
202throw new Exception("Can not connect to self"); 288throw new Exception("Not connected!");
Microsoft.Build.Engine.UnitTests (17)
BackEnd\DebugUtils_tests.cs (1)
26ExceptionHandling.DumpExceptionToFile(new Exception("hello world"));
BackEnd\LoggingService_Tests.cs (2)
172logger = new LoggerThrowException(true, false, new Exception("boo")); 1245: base(true, false, new Exception("Hello"))
BackEnd\LoggingServicesLogMethod_Tests.cs (9)
216service.LogFatalError(null, new Exception("SuperException"), new BuildEventFileInfo("foo.cs"), "FatalTaskError", "TaskName"); 229service.LogFatalError(s_buildEventContext, new Exception("SuperException"), null, "FatalTaskError", "TaskName"); 261service.LogFatalError(s_buildEventContext, new Exception("SuperException"), fileInfo, null); 275service.LogFatalError(s_buildEventContext, new Exception("SuperException"), fileInfo, string.Empty, null); 286Exception exception = new Exception("SuperException"); 310Exception exception = new Exception("SuperException"); 335service.LogFatalTaskError(s_buildEventContext, new Exception("SuperException"), fileInfo, null); 346Exception exception = new Exception("SuperException"); 552Exception exception = new Exception("SuperException");
BackEnd\ResultsCache_Tests.cs (1)
127BuildResult result2 = new BuildResult(request, new Exception("Test exception"));
BackEnd\SdkResolverLoader_Tests.cs (2)
193LoadResolverAssemblyFunc = (resolverPath) => throw new Exception(expectedMessage), 405throw new Exception(ExpectedMessage);
BackEnd\TaskThatThrows.cs (1)
25Exception exceptionInstance = (Exception)(ctor?.Invoke([exceptionMessage]) ?? new Exception(exceptionMessage));
NodeStatus_Transition_Tests.cs (1)
158throw new Exception($$"""
Microsoft.Build.Framework (1)
BuildException\BuildExceptionBase.cs (1)
24: base(message)
Microsoft.Build.Tasks.CodeAnalysis (1)
ManagedCompiler.cs (1)
808_ => throw new Exception($"Unexpected value {kind}"),
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (5)
CscTests.cs (1)
548LogFunc = delegate { throw new Exception(""); }
TestUtilities\ErrorLoggerEngine.cs (3)
27var formattingClass = assembly.GetType("Microsoft.Build.Shared.EventArgsFormatting") ?? throw new Exception("Could not find EventArgsFormatting type"); 29new Type[] { typeof(BuildErrorEventArgs) }, null) ?? throw new Exception("Could not find FormatEventMessage(BuildErrorEventArgs)."); 31new Type[] { typeof(BuildWarningEventArgs) }, null) ?? throw new Exception("Could not find FormatEventMessage(BuildWarningEventArgs).");
VbcTests.cs (1)
518LogFunc = delegate { throw new Exception(""); }
Microsoft.Build.Tasks.Core (4)
GenerateResource.cs (1)
3993: base(message)
RedistList.cs (1)
583allowListErrors.Add(new Exception(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ResolveAssemblyReference.NoSubSetRedistListName", info.Path)));
ResourceHandling\InputFormatNotSupportedException.cs (1)
18public InputFormatNotSupportedException(string message) : base(message)
ResourceHandling\MSBuildResXException.cs (1)
18public MSBuildResXException(string message) : base(message)
Microsoft.Build.Tasks.UnitTests (7)
StreamMappedString_Tests.cs (7)
285get { throw new Exception("The method or operation is not implemented."); } 290get { throw new Exception("The method or operation is not implemented."); } 295throw new Exception("The method or operation is not implemented."); 300get { throw new Exception("The method or operation is not implemented."); } 311throw new Exception("The method or operation is not implemented."); 328throw new Exception("The method or operation is not implemented."); 333throw new Exception("The method or operation is not implemented.");
Microsoft.CodeAnalysis (4)
CodeGen\PermissionSetAttribute.cs (1)
195: base(message)
DiaSymReader\Writer\SymUnmanagedWriterException.cs (1)
25public SymUnmanagedWriterException(string message) : base(message)
RuleSet\InvalidRuleSetException.cs (1)
17public InvalidRuleSetException(string message) : base(message) { }
Syntax\SyntaxNode.cs (1)
1409: base(Text)
Microsoft.CodeAnalysis.CSharp (2)
Lowering\SyntheticBoundNodeFactory.cs (1)
36public MissingPredefinedMember(Diagnostic error) : base(error.ToString())
Parser\LanguageParser.cs (1)
13974get { throw new Exception("Use IsIncrementalAndFactoryContextMatches"); }
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
14772public void Execute(GeneratorExecutionContext context) => throw new System.Exception("THROW"); 14816public void Initialize(GeneratorInitializationContext context) => throw new System.Exception("THROW");
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (9)
CodeActions\Preview\ErrorCases\ExceptionInCodeAction.cs (9)
30throw new Exception($"Exception thrown from get_Title in {nameof(ExceptionCodeAction)}"); 38throw new Exception($"Exception thrown from get_EquivalenceKey in {nameof(ExceptionCodeAction)}"); 43=> throw new Exception($"Exception thrown from ComputePreviewOperationsAsync in {nameof(ExceptionCodeAction)}"); 46=> throw new Exception($"Exception thrown from ComputeOperationsAsync in {nameof(ExceptionCodeAction)}"); 49=> throw new Exception($"Exception thrown from GetChangedDocumentAsync in {nameof(ExceptionCodeAction)}"); 52=> throw new Exception($"Exception thrown from GetChangedSolutionAsync in {nameof(ExceptionCodeAction)}"); 55=> throw new Exception($"Exception thrown from PostProcessChangesAsync in {nameof(ExceptionCodeAction)}"); 58=> throw new Exception($"Exception thrown from GetHashCode in {nameof(ExceptionCodeAction)}"); 61=> throw new Exception($"Exception thrown from Equals in {nameof(ExceptionCodeAction)}");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\ResourceTests.cs (1)
213new ResourceDescription("r2", "file", () => { throw new Exception("bad stuff"); }, false)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
PDB\PDBSourceLinkTests.cs (1)
119var sourceLinkStream = new TestStream(canRead: true, readFunc: (_, __, ___) => { throw new Exception("Error!"); });
PDB\PortablePdbTests.cs (1)
379var sourceLinkStream = new TestStream(canRead: true, readFunc: (_, __, ___) => { throw new Exception("Error!"); });
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Attributes\EmitTestStrongNameProvider.cs (2)
24var ex = new Exception("Crazy exception you could never have predicted!"); 46var ex = new Exception("Crazy exception you could never have predicted!");
Diagnostics\GetDiagnosticsTests.cs (3)
1099throw new Exception($"Unexpected topmost node for code block '{context.CodeBlock.Kind()}'"); 1118throw new Exception($"Unexpected topmost node for operation block '{operationBlock.Syntax.Kind()}'"); 1132throw new Exception($"Multiple callbacks for {context.Node}");
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (5)
EndToEndTests.cs (5)
131_ => throw new Exception($"Unexpected configuration {IntPtr.Size * 8}-bit {ExecutionConditionUtil.Configuration}") 191_ => throw new Exception($"Unexpected configuration {IntPtr.Size * 8}-bit {ExecutionConditionUtil.Configuration}, Desktop: {RuntimeUtilities.IsDesktopRuntime}") 270_ => throw new Exception($"Unexpected configuration {IntPtr.Size * 8}-bit {ExecutionConditionUtil.Configuration}") 421_ => throw new Exception($"Unexpected configuration {IntPtr.Size * 8}-bit {ExecutionConditionUtil.Configuration}") 556_ => throw new Exception($"Unexpected configuration {IntPtr.Size * 8}-bit {ExecutionConditionUtil.Configuration}")
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ObjectFormatterTests.cs (1)
507throw new Exception("xxx");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\UnsafeTests.cs (1)
38throw new Exception("Unrecognized new line");
SourceGeneration\SyntaxAwareGeneratorTests.cs (9)
375var exception = new Exception("Test Exception"); 417var exception = new Exception("Test Exception"); 459TestSyntaxReceiver receiver1 = new TestSyntaxReceiver(tag: 0, callback: (a) => { if (a is PropertyDeclarationSyntax) throw new Exception("Test Exception"); }); 501var exception = new Exception("Test Exception"); 556var exception = new Exception("test exception"); 624var exception = new Exception("test exception"); 1855var exception = new Exception("Test Exception"); 1896var exception = new Exception("Test Exception"); 1937var exception = new Exception("Test Exception");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DeclarationTests.cs (1)
927throw new Exception("Should have found the node");
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
IncrementalParsing\BinaryExpression.cs (1)
276throw new Exception("unexpected Type given");
IncrementalParsing\ChangingIdentifiers.cs (1)
237throw new Exception("Unexpected type here!!");
IncrementalParsing\CompoundAssignment.cs (1)
140throw new Exception("No operator found");
IncrementalParsing\UnaryExpression.cs (1)
128throw new Exception("Unexpected case");
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestSource.cs (1)
74throw new Exception($"Unexpected value: {Value}");
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\AddImportsTests.cs (1)
112throw new Exception($"use {nameof(TestNoImportsAddedAsync)}");
Microsoft.CodeAnalysis.EditorFeatures (3)
Peek\DefinitionPeekableItem.cs (1)
64callback.ReportFailure(new Exception(EditorFeaturesResources.No_information_found));
Preview\DifferenceViewerPreview.cs (1)
89FatalError.ReportAndCatch(new Exception($"Dispose is not called how? viewer state : {_viewer?.IsClosed}"));
Shared\Utilities\ClassificationTypeMap.cs (1)
57FatalError.ReportAndCatch(new Exception($"classification type doesn't exist for {name}"));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
CodeFixes\ErrorCases\CodeFixExceptionInFixableDiagnosticIds.cs (1)
20throw new Exception($"Exception thrown in FixableDiagnosticIds of {nameof(ExceptionInFixableDiagnosticIds)}");
CodeFixes\ErrorCases\CodeFixExceptionInGetFixAllProvider.cs (1)
23=> throw new Exception($"Exception thrown in GetFixAllProvider of {nameof(ExceptionInGetFixAllProvider)}");
CodeFixes\ErrorCases\CodeFixExceptionInRegisterMethod.cs (1)
22=> throw new Exception($"Exception thrown in register method of {nameof(ExceptionInRegisterMethod)}");
CodeFixes\ErrorCases\CodeFixExceptionInRegisterMethodAsync.cs (1)
24throw new Exception($"Exception thrown in register method of {nameof(ExceptionInRegisterMethodAsync)}");
CodeRefactorings\ErrorCases\CodeRefactoringExceptionInComputeRefactorings.cs (1)
27=> throw new Exception($"Exception thrown from ComputeRefactoringsAsync in {nameof(ExceptionInCodeActions)}");
CodeRefactorings\ErrorCases\CodeRefactoringExceptionInComputeRefactoringsAsync.cs (1)
29throw new Exception($"Exception thrown from ComputeRefactoringsAsync in {nameof(ExceptionInCodeActions)}");
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Editor\Shared\Utilities\FSharpClassificationTypeMap.cs (1)
49FatalError.ReportAndCatch(new Exception($"classification type doesn't exist for {name}"));
Microsoft.CodeAnalysis.Features (3)
Diagnostics\Service\DocumentAnalysisExecutor.cs (1)
314FatalError.ReportAndCatch(new Exception("Bug in GetDiagnostics"));
ExtractMethod\ExtractMethodMatrix.cs (1)
98FatalError.ReportAndCatch(new Exception($"extract method encountered unknown states: {key.ToString()}"), ErrorSeverity.Critical);
LanguageServiceIndexFormat\SymbolMoniker.cs (1)
78throw new Exception($"Unable to get documentation comment ID for {symbol.ToDisplayString()}");
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
419throw new Exception($"Unable to find node with span {span} `{root.GetText().GetSubText(span)}` in:{Environment.NewLine}{root}");
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\RequestContext.cs (1)
281FatalError.ReportWithDumpAndCatch(new Exception(
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\QueueItem.cs (1)
257var exception = new Exception(message);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Completion\CompletionFeaturesTests.cs (1)
899throw new Exception("GetChangeAsync throws");
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (1)
306throw new Exception($"Please return a non-default value based on the config name, config name: {option.Name}.");
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Utilities\AbstractLanguageServerClientTests.TestLspClient.cs (1)
55throw new Exception($"LSP process exited immediately with {process.ExitCode}");
Microsoft.CodeAnalysis.Rebuild (2)
CompilationOptionsReader.cs (1)
103throw new Exception(RebuildResources.Invalid_language_name);
VisualBasicCompilationFactory.cs (1)
81throw new Exception(string.Format(RebuildResources.Cannot_create_compilation_options_0, diagnostic));
Microsoft.CodeAnalysis.Scripting (1)
CompilationErrorException.cs (1)
23: base(message)
Microsoft.CodeAnalysis.Scripting.TestUtilities (3)
ObjectFormatterFixtures\Custom.cs (3)
269public int _34_Exception { get { throw new Exception("error1"); } } 272public int _35_Exception { get { throw new Exception("error2"); } } 277public int _37 { get { throw new Exception("error3"); } }
Microsoft.CodeAnalysis.Test.Utilities (14)
CompilationVerifier.cs (6)
114throw new Exception($"Didn't find method '{methodName}'. Available/distinguishable methods are: {Environment.NewLine}{string.Join(Environment.NewLine, map.Keys)}"); 420throw new Exception($"ILVerify was not able to resolve a module named '{simpleName}'"); 442throw new Exception($"Multiple modules named '{name}' were found"); 457throw new Exception("No corlib found"); 468throw new Exception(expectedSuccess ? 759throw new Exception($"Failed to extract PDB information. PdbToXmlConverter returned:{Environment.NewLine}{actualPdbXml}");
CompilationVerifier.EmitException.cs (1)
18: base(ExceptionHelper.GetMessageFromResult(diagnostics, directory))
Diagnostics\CommonDiagnosticAnalyzers.cs (3)
1770throw new Exception("Expected driver to make a single callback per tree"); 1785throw new Exception("Expected driver to make a single callback per text"); 1835throw new Exception("Expected driver to make a callback for every tree");
Platform\CoreClr\TestExecutionLoadContext.cs (1)
85throw new Exception("Unrecognized entry point");
TargetFrameworkUtil.cs (2)
354throw new Exception($"Duplicate reference detected {r.Display}"); 360throw new Exception($"Duplicate reference detected {r.Display} - {name}");
TestableCompiler.cs (1)
185throw new Exception("invalid value");
Microsoft.CodeAnalysis.UnitTests (4)
Collections\List\SegmentedList.Generic.Tests.IndexOf.cs (1)
54throw new Exception("Invalid IndexOfMethod");
Diagnostics\AnalysisContextInfoTests.cs (1)
93throw new Exception("exception");
RealParserTests.cs (2)
410throw new Exception($@" 583throw new Exception($@"Error for float input ""{s}""
Microsoft.CodeAnalysis.Workspaces (4)
SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
173: base(message)
Workspace\Solution\DocumentState.cs (1)
690FatalError.ReportAndCatch(new Exception($"tree and text has different length {newTree.Length} vs {newText.Length}"), ErrorSeverity.Critical);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
1010public CompilationTrackerValidationException(string message) : base(message) { }
Workspace\Solution\SolutionState.cs (1)
1353FatalError.ReportAndCatch(new Exception("GetDocumentIdsWithFilePath returned a document in a project that does not exist."));
Microsoft.CodeAnalysis.Workspaces.MSBuild (8)
MSBuild\BuildHostProcessManager.cs (3)
100throw new Exception($"BuildHost process exited immediately with {process.ExitCode}"); 233throw new Exception(string.Format(WorkspaceMSBuildResources.The_build_host_could_not_be_found_at_0, buildHostPath)); 389throw new Exception("Ownership of BuildHost pipe is incorrect.");
MSBuild\MSBuildProjectLoader.cs (1)
180throw new Exception(string.Format(WorkspaceMSBuildResources.Failed_to_load_solution_filter_0, solutionFilePath));
MSBuild\MSBuildProjectLoader.Worker.cs (2)
324throw new Exception(message); 413throw new Exception(message);
Rpc\RemoteInvocationException.cs (1)
11public RemoteInvocationException(string? message) : base(message)
Rpc\RpcClient.cs (1)
110request.SetException(processingException ?? new System.Exception("The server disconnected unexpectedly."));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
MSBuildWorkspaceTestBase.cs (1)
167_ = workspace.RegisterWorkspaceFailedHandler((e) => throw new Exception($"Workspace failure {e.Diagnostic.Kind}:{e.Diagnostic.Message}"));
RpcTests.cs (1)
286private sealed class ObjectWithThrowingMethod { public void ThrowException() { throw new Exception("Exception thrown by test method!"); } }
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Workspaces\TestWorkspace_XmlConsumption.cs (2)
324throw new Exception($"LanguageVersion attribute on {languageVersionAttribute.Parent} was not recognized."); 958throw new Exception($"Element {element} has child text that isn't recognized. The XML syntax is invalid.");
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
SolutionTests\TryApplyChangesTests.cs (2)
75canApplyCompilationOptions: (_, __) => throw new Exception("This should not have been called.")); 118canApplyParseOptions: (_, __) => throw new Exception("This should not have been called."));
UtilityTest\AsyncLazyTests.cs (2)
44asynchronousComputeFunction: static (arg, c) => { throw new Exception("We should not get an asynchronous computation."); }, 58throw new Exception("Task blew up!");
UtilityTest\ExceptionHelpersTests.cs (1)
62var e = new Exception("Hello");
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
QueueItem.cs (1)
257var exception = new Exception(message);
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderException.cs (1)
30: base(message)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderInternalCompilerException.cs (1)
30: base(message)
Microsoft.Data.Analysis (13)
TextFieldParser.cs (13)
668throw new Exception(Strings.ExceededMaxBufferSize); 804throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 822throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 828throw new Exception(string.Format(Strings.LineExceedsMaxLineSize, currentLineNumber)); 837throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 939throw new Exception(string.Format(Strings.CannotParseWithFieldWidths, lineNumber)); 987throw new Exception(Strings.NullDelimiters); 991throw new Exception(Strings.EmptyDelimiters); 1003throw new Exception(Strings.IllegalQuoteDelimiter); 1046throw new Exception(Strings.IllegalQuoteDelimiter); 1063throw new Exception(Strings.EmptyDelimiters); 1067throw new Exception(Strings.DelimiterCannotBeNewlineChar); 1135throw new Exception(Strings.CommentTokenCannotContainWhitespace);
Microsoft.Data.Analysis.Tests (13)
src\Microsoft.Data.Analysis\TextFieldParser.cs (13)
668throw new Exception(Strings.ExceededMaxBufferSize); 804throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 822throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 828throw new Exception(string.Format(Strings.LineExceedsMaxLineSize, currentLineNumber)); 837throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 939throw new Exception(string.Format(Strings.CannotParseWithFieldWidths, lineNumber)); 987throw new Exception(Strings.NullDelimiters); 991throw new Exception(Strings.EmptyDelimiters); 1003throw new Exception(Strings.IllegalQuoteDelimiter); 1046throw new Exception(Strings.IllegalQuoteDelimiter); 1063throw new Exception(Strings.EmptyDelimiters); 1067throw new Exception(Strings.DelimiterCannotBeNewlineChar); 1135throw new Exception(Strings.CommentTokenCannotContainWhitespace);
Microsoft.DotNet.Build.Tasks.Feed (11)
src\BlobFeedAction.cs (1)
55throw new Exception("Unable to parse expected feed. Please check ExpectedFeedUrl.");
src\common\UploadToAzure.cs (3)
94throw new Exception(string.Format("Metadata 'RelativeBlobPath' is missing for item '{0}'.", item.ItemSpec)); 99throw new Exception(string.Format("The file '{0}' does not exist.", item.ItemSpec)); 114throw new Exception(string.Format("The blob '{0}' already exists.", relativeBlobPath));
src\CreateAzureDevOpsFeed.cs (1)
174throw new Exception($"Feed '{baseFeedName}' was not created. Request failed with status code {createFeedResponse.StatusCode}. Exception: {await createFeedResponse.Content.ReadAsStringAsync()}");
src\model\SetupTargetFeedConfigV3.cs (2)
230throw new Exception($"Problems creating an AzureDevOps (symbols) feed for repository '{RepositoryName}' and commit '{CommitSha}'."); 257throw new Exception($"Problems creating an AzureDevOps feed for repository '{RepositoryName}' and commit '{CommitSha}'.");
src\model\SetupTargetFeedConfigV4.cs (1)
202throw new Exception($"Problems creating an AzureDevOps feed for repository '{RepositoryName}' and commit '{CommitSha}'.");
src\PublishArtifactsInManifestBase.cs (2)
1016throw new Exception($"Artifact '{artifactName}' is not a build or pipeline artifact but a '{artifactInfo.resource.type}'"); 1028throw new Exception(
src\PublishBuildToMaestro.cs (1)
533throw new Exception($"Can't parse the repository URL: {buildIdentity.AzureDevOpsRepository}");
Microsoft.DotNet.Build.Tasks.Workloads (17)
Msi\MsiBase.wix.cs (1)
227throw new Exception(Strings.FailedToLinkMsi);
Msi\WorkloadManifestMsi.wix.cs (3)
63throw new Exception(Strings.HeatFailedToHarvest); 98throw new Exception(Strings.HeatFailedToHarvest); 154throw new Exception(Strings.FailedToCompileMsi);
Msi\WorkloadPackGroupMsi.wix.cs (2)
74throw new Exception(Strings.HeatFailedToHarvest); 140throw new Exception(Strings.FailedToCompileMsi);
Msi\WorkloadPackMsi.wix.cs (2)
45throw new Exception(Strings.HeatFailedToHarvest); 74throw new Exception(Strings.FailedToCompileMsi);
Msi\WorkloadSetMsi.wix.cs (2)
45throw new Exception(Strings.HeatFailedToHarvest); 71throw new Exception(Strings.FailedToCompileMsi);
Swix\SwixComponent.cs (3)
171resourceItem != null && !string.IsNullOrEmpty(resourceItem.GetMetadata(Metadata.Title)) ? resourceItem.GetMetadata(Metadata.Title) : workload.Description ?? throw new Exception(Strings.ComponentTitleCannotBeNull), 172resourceItem != null && !string.IsNullOrEmpty(resourceItem.GetMetadata(Metadata.Description)) ? resourceItem.GetMetadata(Metadata.Description) : workload.Description ?? throw new Exception(Strings.ComponentDescriptionCannotBeNull), 174resourceItem != null && !string.IsNullOrEmpty(resourceItem.GetMetadata(Metadata.Category)) ? resourceItem.GetMetadata(Metadata.Category) : DefaultValues.ComponentCategory ?? throw new Exception(Strings.ComponentCategoryCannotBeNull),
Swix\SwixProjectBase.cs (1)
110throw new Exception(string.Format(Strings.RelativePackagePathTooLong, MaxRelativePackagePath, relativePackagePath));
WorkloadPackageBase.cs (1)
337throw new Exception(string.Format(Strings.NoInstallerVersion, taskName,
WorkloadSetPackage.wix.cs (2)
104throw new Exception(string.Format(Strings.InvalidWorkloadSetPackageMissingDataDir, Id)); 131throw new Exception(string.Format(Strings.InvalidWorkloadSetPackageNoWorkloadSet, Id));
Microsoft.DotNet.Deployment.Tasks.Links (1)
Microsoft.DotNet.GenFacades (1)
RoslynBuildTask.cs (1)
67throw new Exception($"The minimum version required of Roslyn is '{name.Version}' and you are using '{resolvedVersion}' version of the Roslyn. You can update the sdk to get the latest version.");
Microsoft.DotNet.Git.IssueManager (1)
Clients\AzureDevOpsClient.cs (1)
43throw new Exception($"No commit with id {commit} found in '{repositoryUrl}'");
Microsoft.DotNet.Helix.Client (1)
generated-code\HelixApi.cs (1)
330: base(FormatMessage(response, responseContent))
Microsoft.DotNet.Helix.Sdk (3)
FindDotNetCliPackage.cs (2)
254throw new Exception($"Failed to GET from {SanitizeString(uri)}, even after retrying"); 278throw new Exception($"Failed to make HEAD request to {SanitizeString(uri)}, even after retrying");
ProvisioningProfileProvider.cs (1)
212throw new Exception("Failed to download provisioning profile. More details can be found with higher verbosity or in the binlog");
Microsoft.DotNet.MacOsPkg.Core (17)
AppBundle.cs (2)
34throw new Exception("Unexpected .app directory structure. Please contact dnceng."); 64throw new Exception("No signature found in app bundle");
ExecuteHelper.cs (1)
30throw new Exception($"Command '{command} {arguments}' failed with exit code {process.ExitCode}: {process.StandardError.ReadToEnd()}");
MacOsPkgCore.cs (9)
15throw new Exception("src must be non-empty"); 22throw new Exception("Input path must be a .pkg or .app (zipped) file."); 47throw new Exception("src must be non-empty"); 52throw new Exception("dst must be non-empty"); 59throw new Exception("Input path must be a valid directory."); 64throw new Exception("Output path must be a .pkg or .app (zipped) file."); 92throw new Exception("src must be non-empty"); 97throw new Exception("dst must be non-empty"); 104throw new Exception("Input path must be an existing .pkg or .app (zipped) file.");
Package.cs (5)
32throw new Exception("Cannot unpack: no 'Distribution' or 'PackageInfo' file found in package"); 51throw new Exception("Cannot pack: no 'Distribution' or 'PackageInfo' file found in package"); 196?? throw new Exception("Payload was not found")); 202pkgInfo.Attribute(elementName)?.Value ?? throw new Exception($"{elementName} is required in PackageInfo"); 212throw new Exception("No signature found in package");
Microsoft.DotNet.NuGetRepack.Tests (1)
TestHelpers\AssertEx.cs (1)
393throw new Exception("No exception was thrown.");
Microsoft.DotNet.RemoteExecutor (2)
RemoteExecutionException.cs (1)
17: base(message)
RemoteExecutionTimeoutException.cs (1)
11: base(message)
Microsoft.DotNet.SignCheckLibrary (2)
Utils.cs (1)
220throw new Exception($"Failed to import Microsoft public key: {(string.IsNullOrEmpty(error) ? "unknown error" : error)}");
Verification\PkgVerifier.cs (1)
42throw new Exception($"Failed to unpack pkg '{archivePath}'");
Microsoft.DotNet.SignTool (6)
src\Configuration.cs (1)
569throw new Exception($"Unexpected signing status {signingStatus}");
src\VerifySignatures.cs (1)
252throw new Exception($"Command '{command}' failed with exit code {process.ExitCode}");
src\ZipData.cs (4)
308throw new Exception($"Pkg tooling is only supported on MacOS."); 337throw new Exception($"Failed to unpack pkg {archivePath}"); 594throw new Exception($"Failed to create MD5 checksums file for: {FileSignInfo.FileName}"); 746throw new Exception($"Failed to create RPM package: {FileSignInfo.FileName}");
Microsoft.DotNet.XliffTasks (2)
ExponentialRetry.cs (1)
33throw new Exception("Timer should not be exhausted");
Tasks\BuildErrorException.cs (1)
15public BuildErrorException(string message) : base(message)
Microsoft.DotNet.XUnitExtensions (3)
src\Microsoft.DotNet.XUnitExtensions.Shared\ConditionalDiscovererException.cs (1)
10public ConditionalDiscovererException(string message) : base(message) { }
src\Microsoft.DotNet.XUnitExtensions.Shared\DesktopTraceListener.cs (1)
26base(message + Environment.NewLine + detailMessage)
src\Microsoft.DotNet.XUnitExtensions.Shared\SkippedTestMessageBus.cs (1)
21: base(reason) { }
Microsoft.DotNet.XUnitV3Extensions (2)
src\Microsoft.DotNet.XUnitExtensions.Shared\ConditionalDiscovererException.cs (1)
10public ConditionalDiscovererException(string message) : base(message) { }
src\Microsoft.DotNet.XUnitExtensions.Shared\DesktopTraceListener.cs (1)
26base(message + Environment.NewLine + detailMessage)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
SizeTests.cs (1)
271: base(message)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (3)
Infrastructure\RedisTestConfig.cs (3)
119throw new Exception("Could not find " + RedisServerExeName + 184throw new Exception("Could not start Redis Server at path " 198throw new Exception("Got null process trying to start Redis Server at path "
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (4)
DefaultHealthCheckServiceTest.cs (4)
61var exception = new Exception("Things are pretty bad!"); 129b.AddAsyncCheck("ExceptionCheck", _ => throw new Exception(ExceptionMessage), exceptionTags); 167var exception = new Exception("Things are pretty bad!"); 712throw new Exception("check failed");
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogger.cs (1)
129var exception = rec.Exception is not null ? new Exception(rec.Exception) : null;
Microsoft.Extensions.Hosting.Abstractions (2)
HostAbortedException.cs (2)
23public HostAbortedException() : base(SR.HostAbortedExceptionMessage) { } 37public HostAbortedException(string? message) : base(message ?? SR.HostAbortedExceptionMessage) { }
Microsoft.Extensions.Telemetry (1)
Buffering\BufferedLoggerProxy.cs (1)
40record.Exception is not null ? new Exception(record.Exception) : null,
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\System.Runtime.InteropServices\gen\Common\UnreachableException.cs (1)
17public UnreachableException(string message) : base(message) { }
Microsoft.Interop.JavaScript.JSImportGenerator (1)
src\libraries\System.Runtime.InteropServices\gen\Common\UnreachableException.cs (1)
17public UnreachableException(string message) : base(message) { }
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\System.Runtime.InteropServices\gen\Common\UnreachableException.cs (1)
17public UnreachableException(string message) : base(message) { }
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\System.Runtime.InteropServices\gen\Common\UnreachableException.cs (1)
17public UnreachableException(string message) : base(message) { }
Microsoft.Interop.SourceGeneration (1)
src\libraries\System.Runtime.InteropServices\gen\Common\UnreachableException.cs (1)
17public UnreachableException(string message) : base(message) { }
Microsoft.JSInterop (2)
JSDisconnectedException.cs (1)
15public JSDisconnectedException(string message) : base(message)
JSException.cs (1)
15public JSException(string message) : base(message)
Microsoft.JSInterop.Tests (1)
JSRuntimeTest.cs (1)
302var exception = new Exception("Some really sensitive data in here");
Microsoft.Maui (8)
Handlers\HybridWebView\HybridWebViewInvokeJavaScriptException.cs (2)
15 : base(message) 25 : base(message)
Layouts\Flex.cs (3)
527 throw new Exception("basis should >=0"); 529 throw new Exception("relative basis should be <=1"); 559 throw new Exception("shrink and grow should be >= 0");
Layouts\FlexLayoutManager.cs (1)
34 throw new Exception("something is deeply wrong");
Platform\ElementExtensions.cs (1)
152 throw new Exception($"Handler not found for window {element}.");
Platform\HandlerNotFoundException.cs (1)
20 public HandlerNotFoundException(string message) : base(message)
Microsoft.Maui.Controls (15)
Internals\ImageParser.cs (1)
20 public GIFDecoderFormatException(string message) : base(message)
Internals\ProfilePage.cs (1)
40 throw new Exception("assert");
InvalidNavigationException.cs (1)
18 : base(message)
LegacyLayouts\FlexLayout.cs (1)
428 throw new Exception("something is deeply wrong");
LegacyLayouts\RelativeLayout.cs (2)
248 throw new Exception("BoundsConstraint should not be null at this point"); 333 throw new Exception("BoundsConstraint should not be null at this point");
ReferenceTypeConverter.cs (1)
43 throw new Exception("Can't resolve name on Element");
Shell\ShellSection.cs (4)
117 throw new Exception("Nav Stack consistency error"); 134 throw new Exception("Nav Stack consistency error"); 157 throw new Exception("Nav Stack consistency error"); 173 throw new Exception("Nav Stack consistency error");
Shell\ShellUriHandler.cs (2)
337 throw new Exception($"Global routes currently cannot be the only page on the stack, so absolute routing to global routes is not supported. For now, just navigate to: {replaced}"); 394 throw new Exception($"Relative routing to shell elements is currently not supported. Try prefixing your uri with ///: ///{originalRequest}");
UnsolvableConstraintsException.cs (1)
17 : base(message)
XamlParseException.cs (1)
20 : base(message)
Microsoft.Maui.Controls.SourceGen (3)
CodeBehindGenerator.cs (2)
146 return new XamlProjectItem(projectItem, new Exception($"{XamlParser.FormsUri} is not a valid namespace. Use {XamlParser.MauiUri} instead")); 301 throw new Exception("Something went wrong");
src\Controls\src\Core\XamlParseException.cs (1)
20 : base(message)
Microsoft.Maui.Graphics (1)
PathBuilder.cs (1)
83 throw new Exception($"Error parsing {value} as a float.");
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (3)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvasState.cs (2)
485 throw new Exception("Only one clip operation currently supported."); 514 throw new Exception("Only one subtraction currently supported.");
src\Graphics\src\Graphics\Platforms\Windows\PlatformImage.cs (1)
163 throw new Exception("No resource creator has been registered globally or for this thread.");
Microsoft.ML.AutoML (4)
API\InferenceException.cs (1)
36: base(message)
AutoMlUtils.cs (1)
36throw new Exception("inputs and outputs count must match");
SweepableEstimator\Estimators\ForecastBySsa.cs (1)
15throw new Exception("ForecastBySsa param check error");
Utils\Entity.cs (1)
57throw new Exception("Not Implemented");
Microsoft.ML.CodeGenerator (16)
CodeGenerator\CSharp\CSharpCodeFile.cs (1)
37throw new Exception("CSharp file extesion must be .cs");
CodeGenerator\CSharp\CSharpProjectFile.cs (1)
37throw new Exception("CSharp project file extesion must be .csproj");
CodeGenerator\CSharp\TransformGenerators.cs (14)
24string outputColumn = OutputColumns.Count() > 0 ? OutputColumns[0] : throw new Exception($"output columns for the suggested transform: {MethodName} are null"); 82string outputColumn = OutputColumns.Count() > 0 ? OutputColumns[0] : throw new Exception($"output columns for the suggested transform: {MethodName} are null"); 112string outputColumn = OutputColumns.Count() > 0 ? OutputColumns[0] : throw new Exception($"output columns for the suggested transform: {MethodName} are null"); 135string outputColumn = OutputColumns.Count() > 0 ? OutputColumns[0] : throw new Exception($"output columns for the suggested transform: {MethodName} are null"); 158string outputColumn = OutputColumns.Count() > 0 ? OutputColumns[0] : throw new Exception($"output columns for the suggested transform: {MethodName} are null"); 183string outputColumn = OutputColumns.Count() > 0 ? OutputColumns[0] : throw new Exception($"output columns for the suggested transform: {MethodName} are null"); 287string outputColumn = OutputColumns.Count() > 0 ? OutputColumns[0] : throw new Exception($"output columns for the suggested transform: {MethodName} are null"); 345string outputColumn = OutputColumns.Count() > 0 ? OutputColumns[0] : throw new Exception($"output columns for the suggested transform: {MethodName} are null"); 366string inputColumn = InputColumns.Count() == 1 ? InputColumns[0] : throw new Exception($"input columns for the suggested transform: {MethodName} is not exactly one."); 367string outputColumn = OutputColumns.Count() == 1 ? OutputColumns[0] : throw new Exception($"output columns for the suggested transform: {MethodName} it not exactly one."); 384string inputColumn = InputColumns.Count() == 1 ? InputColumns[0] : throw new Exception($"input columns for the suggested transform: {MethodName} is not exactly one."); 385string outputColumn = OutputColumns.Count() == 1 ? OutputColumns[0] : throw new Exception($"output columns for the suggested transform: {MethodName} it not exactly one."); 421string inputColumn = InputColumns.Count() == 1 ? InputColumns[0] : throw new Exception($"input columns for the suggested transform: {MethodName} is not exactly one."); 422string outputColumn = OutputColumns.Count() == 1 ? OutputColumns[0] : throw new Exception($"output columns for the suggested transform: {MethodName} it not exactly one.");
Microsoft.ML.EntryPoints (1)
OneVersusAllMacro.cs (1)
108throw new Exception("Invalid input graph. Does not output predictor model.");
Microsoft.ML.Fairlearn (2)
Reductions\UtilityParity.cs (2)
50throw new Exception("ratio must lie between (0.1]"); 56throw new Exception("Only one of difference_bound and ratio_bound can be used");
Microsoft.ML.FastTree (2)
FastTreeRanking.cs (1)
850throw new Exception("Shifted NDCG / ContinuousWeightedRanknet / distanceWeight2 / normalized lambdas are only supported by unmanaged code");
Training\TreeLearners\TreeLearner.cs (1)
45public TreeLearnerException(string message) : base(message) { }
Microsoft.ML.GenAI.Core (3)
Module\QuantizedLinear.cs (3)
21throw new Exception("Weight is not initialized"); 134throw new Exception("Quantization is not done yet"); 142throw new Exception("Weight is not initialized");
Microsoft.ML.PerformanceTests (3)
CacheDataViewBench.cs (2)
50throw new Exception($"Unexpected value {val} at {cursor.Position}"); 54throw new Exception($"Expected {Length} values in cache but only saw {count}");
Helpers\ExecuteMaml.cs (1)
14throw new Exception($"Command {command} returned negative error code");
Microsoft.ML.StandardTrainers (1)
Optimizer\Optimizer.cs (1)
87: base(message)
Microsoft.ML.Sweeper (1)
Algorithms\KdoSweeper.cs (1)
148throw _host.Except(new Exception(errorMessage), errorMessage);
Microsoft.ML.Tokenizers.Data.Tests (1)
test\Microsoft.ML.Tokenizers.Tests\Utils.cs (1)
33throw new Exception("File not found");
Microsoft.ML.Tokenizers.Tests (1)
Utils.cs (1)
33throw new Exception("File not found");
Microsoft.ML.TorchSharp (1)
Utils\TorchUtils.cs (1)
41throw new Exception("Fallback to CPU is false but no GPU detected");
Microsoft.Svcutil.NamedPipeMetadataImporter (1)
NamedPipeMetadataImporter.cs (1)
93tcs.SetException(new Exception("Fault response received."));
Microsoft.TestUtilities (1)
XUnit\SkipTestException.cs (1)
13: base(reason)
Microsoft.VisualBasic.Core (5)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (3)
287Return New Exception(Description) 295Return New Exception(Description) 299Return New Exception(Description)
Microsoft\VisualBasic\FileIO\MalformedLineException.vb (2)
35MyBase.New(message) 45MyBase.New(message)
Microsoft.VisualStudio.IntegrationTest.Setup (1)
TestTraceListener.cs (1)
101var reportedException = new Exception(message);
Microsoft.VisualStudio.LanguageServices (16)
CallHierarchy\Finders\AbstractCallFinder.cs (2)
98throw new Exception(string.Format(WorkspacesResources.The_symbol_0_cannot_be_located_within_the_current_solution, SymbolName)); 108throw new Exception(string.Format(WorkspacesResources.The_symbol_0_cannot_be_located_within_the_current_solution, SymbolName));
Progression\GraphBuilder.cs (1)
91FatalError.ReportAndCatch(new Exception("GetDocumentIdsWithFilePath returned a document in a project that does not exist."));
ProjectSystem\CPS\IWorkspaceProjectContextFactory.cs (1)
98: base(message)
ProjectSystem\FileChangeTracker.cs (6)
198=> throw new Exception("We only watch files; we should never be seeing directory changes!"); 215=> throw new Exception("We only watch files; we should never be seeing directory changes!"); 218=> throw new Exception("We only watch files; we should never be seeing directory changes!"); 221=> throw new Exception("We only watch files; we should never be seeing directory changes!"); 231=> throw new Exception("We only watch files; we should never be seeing directory changes!"); 234=> throw new Exception("We only watch files; we should never be seeing directory changes!");
ProjectSystem\VisualStudioWorkspaceImpl.cs (5)
891throw new Exception(ServicesVSResources.Could_not_find_location_of_folder_on_disk); 912throw new Exception(ServicesVSResources.Could_not_find_location_of_folder_on_disk); 1291FatalError.ReportAndCatch(new Exception("Attempting to change the information of a document without a file path.")); 1520throw new Exception("Unable to check out the files from source control."); 1525throw new Exception("A file was reloaded during the source control checkout.");
TaskList\ProjectExternalErrorReporter.cs (1)
68FatalError.ReportAndCatch(new Exception("errorId is null"));
MiddlewareAnalysisSample (1)
Startup.cs (1)
53throwApp.Run(context => { throw new Exception("Application Exception"); });
MSBuild (2)
CommandLineSwitchException.cs (1)
28base(message)
InitializationException.cs (1)
33base(message)
MSBuildTaskHost (1)
BuildExceptionBase.cs (1)
24: base(message)
Mvc.RoutingWebSite (2)
Controllers\LinkParserController.cs (2)
23throw new Exception("Parsing failed."); 34throw new Exception("Parsing failed.");
PresentationBuildTasks (3)
MS\Internal\MarkupCompiler\AssemblyVersionParseException.cs (1)
14public AssemblyVersionParseException(string message) : base(message) { }
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
237OnError(new Exception(SR.Format(SR.UnknownLanguage, cu.Language))); 747Exception compilerException = new Exception(message);
PresentationCore (7)
MS\Internal\TextFormatting\LineServicesCallbacks.cs (1)
3395Exception e = new System.Exception(SR.NonCLSException);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Interop\OSVersionHelper.cs (1)
318throw new Exception("OSVersionHelper.GetOsVersion Could not detect OS!");
System\Windows\Media\SolidColorBrush.cs (1)
155throw new Exception(SR.BrushUnknownBamlType);
System\Windows\Media\textformatting\TextFormatterContext.cs (1)
393throw new Exception(message);
System\Windows\Media\Visual.cs (3)
2878throw new Exception(SR.Effect_CombinedLegacyAndNew); 3010throw new Exception(SR.Effect_CombinedLegacyAndNew); 3107throw new Exception(SR.Effect_CombinedLegacyAndNew);
PresentationFramework (113)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
649throw new Exception(SR.UndefinedHighlightAnchor);
MS\Internal\AppModel\Journaling.cs (1)
538throw new Exception(SR.Format(SR.InvalidPageFunctionType, contentObject.GetType()));
MS\Internal\Documents\ParentUndoUnit.cs (1)
437throw new Exception(SR.UndoContainerTypeMismatch);
MS\Internal\PtsHost\Pts.cs (4)
65throw new Exception(SR.Format(SR.PTSError, fserr)); 124throw new Exception(SR.Format(SR.PTSError, fserr)); 159throw new Exception(SR.PTSInvalidHandle); 301internal PtsException(string s) : base(s) { }
MS\Internal\PtsHost\PtsHost.cs (89)
165PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 203PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 246PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 276PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 307PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 334PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 368PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 403PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 429PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 464PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 499PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 525PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 555PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 608PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 638PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 666PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 695PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 719PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 745PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 771PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 794PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 832PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 859PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 982PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1005PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1040PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1079PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1112PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1171PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1209PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1237PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1336PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1396PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1455PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1575PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1635PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1670PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1693PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1739PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1768PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1796PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1834PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1938PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 1996PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 2050PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 2108PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 2136PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 2178PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 2208PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 2259PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 2303PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 2346PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 2384PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 2599PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 2635PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 2720PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 2778PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 2836PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 2863PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3035PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3093PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3151PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3280PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3310PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3345PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3375PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3406PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3438PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3469PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3501PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3531PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3562PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3602PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3638PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3672PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3703PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3731PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3759PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3787PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3816PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3855PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3905PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3948PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 3993PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 4051PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 4087PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 4114PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 4141PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception"); 4167PtsContext.CallbackException = new System.Exception("Caught a non CLS Exception");
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (1)
368e = new Exception(messageResource);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Interop\OSVersionHelper.cs (1)
318throw new Exception("OSVersionHelper.GetOsVersion Could not detect OS!");
System\Windows\Annotations\AnnotationService.cs (1)
1284throw new Exception(SR.AnnotationAlreadyExistInService);
System\Windows\Application.cs (3)
418throw new Exception(SR.Format(SR.ContentTypeNotSupported, contentType)); 426throw new Exception(SR.Format(SR.UriNotMatchWithRootType, component.GetType( ), resourceLocator)); 493throw new Exception(SR.Format(SR.ContentTypeNotSupported, contentType.ToString()));
System\Windows\Controls\ItemContainerGenerator.cs (1)
1098Exception exception = new Exception(sb.ToString());
System\Windows\Controls\PrintDialogException.cs (1)
35: base(message)
System\Windows\Controls\TextBox.cs (1)
1086throw new Exception(SR.TextBoxMinMaxLinesMismatch);
System\Windows\Data\XmlDataProvider.cs (1)
368throw new Exception(SR.WebRequestCreationFailed);
System\Windows\Documents\MsSpellCheckLib\Utils\RetryHelper.cs (1)
312internal RetriesExhaustedException(string message) : base(message) { }
System\Windows\Navigation\NavigationService.cs (4)
111throw new Exception(SR.Format(SR.MustImplementIUriContext, typeof(IUriContext))); 582throw new Exception(SR.Format(SR.LoopDetected, _currentCleanSource)); 2622throw new Exception(SR.Format(SR.GetResponseFailed, requestUri.ToString())); 2855throw new Exception(SR.Format(SR.GetStreamFailed, requestUri.ToString()));
System\Windows\Standard\NativeMethods.cs (1)
1543throw new Exception("Unable to initialize GDI+");
System\Windows\StaticResourceExtension.cs (1)
89throw new Exception(SR.Format(SR.ParserNoResource, ResourceKey.ToString()));
PresentationUI (2)
MS\Internal\Documents\Application\XpsViewerException.cs (2)
29: base(SR.XpsViewerGenericException) 41: base(message)
ProjectCachePlugin (1)
AssemblyMockCache.cs (1)
74throw new Exception($"Cache plugin exception from {errorLocation}");
RazorPagesWebSite (4)
Pages\PropertyBinding\BindFormFile.cshtml.cs (4)
22throw new Exception($"{nameof(Property1)} is not bound."); 27throw new Exception($"{nameof(Form3)} is not bound."); 32throw new Exception($"{nameof(Forms.Form1)} is not bound."); 37throw new Exception($"{nameof(Forms.Form2)} is bound.");
ReachFramework (1)
Exceptions\XpsException.cs (1)
35: base(message)
Replay (3)
Replay.cs (3)
51throw new Exception($"Too many arguments: {string.Join(" ", rest)}"); 56throw new Exception("Missing binlogPath"); 165throw new Exception("Task was not in the list");
Roslyn.Compilers.Extension (1)
CompilerPackage.cs (1)
155throw new Exception($"Unrecognized Visual Studio Version: {dte.Version}");
Roslyn.Test.PdbUtilities (8)
Reader\Token2SourceLineExporter.cs (8)
889throw new Exception( 1205throw new Exception("No `name' stream"); 1257throw new Exception("Unsupported PDB deleted bitset is not empty."); 1279throw new Exception(string.Format("Count mismatch. ({0} != {1})", j, cnt)); 1294throw new Exception(string.Format("Invalid signature. (sig={0})", sig)); 1342throw new Exception(string.Format("OEM section: guid={0} ti={1}", oem.idOem, oem.typind)); 1416throw new Exception(string.Format("Unsupported Name Stream version. (sig={0:x8}, ver={1})", sig, ver)); 1461throw new Exception(string.Format("Error reading DBI stream, pos={0} != {1}", bits.Position, end));
Roslyn.Test.Performance.Utilities (4)
Benchview.cs (1)
145throw new Exception($"submissionName was not provided, but submission type is {submissionType}");
RelativeDirectory.cs (1)
87throw new Exception("Couldn't find binaries. Are you running from the binaries directory?");
TestUtilities.cs (2)
111throw new System.Exception("ShellOutVital Failed"); 195throw new Exception("Shelling out failed");
Roslyn.VisualStudio.Next.UnitTests (4)
Services\ServiceHubServicesTests_ExtensionMessageHandler.cs (4)
201assemblyLoaderProvider.CreateNewShadowCopyLoaderCallback = (_, _) => (null, new Exception(ExpectedExceptionMessage)); 323(_, _, _) => throw new Exception(ExpectedExceptionMessage)); 437throw new Exception(ExtensionExceptionMessage); 478throw new Exception(ExtensionExceptionMessage);
RunTests (4)
HelixTestRunner.cs (2)
118throw new Exception($"Verify failed: {message}"); 402throw new Exception($@"Could not find global.json by walking up from ""{artifactsDir}"".");
ProcessTestExecutor.cs (1)
212throw new Exception($"Unable to run {workItemInfo.DisplayName} with {options.DotnetFilePath}. {ex}");
Program.cs (1)
332throw new Exception(message);
ScenarioTests.Common.Tests (2)
ScenarioTestTypes.cs (2)
710throw new Exception(input); 1283throw new Exception
Security.TransportSecurity.IntegrationTests (4)
Tcp\ClientCredentialTypeTests.OSX.cs (4)
128exception = new Exception($"The X.509 certificate ({GetCertificateId(certificate)}) usage time is invalid. " + 136exception = new Exception($"The X.509 certificate {GetCertificateId(certificate)} is not in the keychain file {ServiceUtilHelper.OSXCustomKeychainFilePath}."); 147exception = new Exception($"The X.509 certificate {GetCertificateId(certificate)} is not in the keychain file {ServiceUtilHelper.OSXCustomKeychainFilePath}."); 157exception = new Exception($"The {GetCertificateId(certificate)} X.509 certificate is in an untrusted certificate store.");
ServerComparison.FunctionalTests (1)
Helpers.cs (1)
29throw new Exception($"Solution root could not be found using {applicationBasePath}");
Sockets.BindTests (2)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (2)
86throw new Exception($"Shutdown failure. {log}"); 94throw new Exception($"Unexpected connection error. {log}");
Sockets.FunctionalTests (9)
src\Servers\Kestrel\shared\test\StreamExtensions.cs (1)
67throw new Exception("Stream read 0.");
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (2)
86throw new Exception($"Shutdown failure. {log}"); 94throw new Exception($"Unexpected connection error. {log}");
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (2)
953readTcs.SetException(new Exception("This shouldn't be reached.")); 1129readTcs.SetException(new Exception("This shouldn't be reached."));
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (4)
233writeTcs.SetException(new Exception("This shouldn't be reached.")); 323writeTcs.SetException(new Exception("This shouldn't be reached.")); 540appFuncCompleted.SetException(new Exception("This shouldn't be reached.")); 799copyToAsyncCts.SetException(new Exception("This shouldn't be reached."));
StackDepthTest (1)
Program.cs (1)
85throw new Exception(diag[0].ToString());
Swaggatherer (1)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
System.ComponentModel.Annotations (2)
System\ComponentModel\DataAnnotations\ValidationException.cs (2)
38: base(errorMessage) 58: base(message)
System.ComponentModel.Composition (56)
Microsoft\Internal\ReflectionServices.cs (1)
89throw new Exception(SR.Diagnostic_InternalExceptionMessage);
src\libraries\Common\src\System\Composition\Diagnostics\CompositionTraceSource.cs (1)
50throw new Exception(SR.Format(SR.Diagnostic_InternalExceptionMessage, SR.Diagnostic_TraceUnnecessaryWork));
System\ComponentModel\Composition\CompositionException.cs (1)
194throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\ConstraintServices.cs (1)
90throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\ContractNameServices.cs (6)
71throw new Exception(SR.Diagnostic_InternalExceptionMessage); 132throw new Exception(SR.Expecting_Empty_Queue); 248throw new Exception(SR.Expecting_Generic_Type); 270throw new Exception(SR.Expecting_AtleastOne_Type); 307throw new Exception(SR.Expecting_Empty_Queue); 351throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\ExportServices.cs (1)
173throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\Hosting\ApplicationCatalog.cs (1)
77throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\Hosting\AtomicComposition.cs (1)
223throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogExport.cs (2)
102throw new Exception(SR.Diagnostic_InternalExceptionMessage); 111throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (2)
304throw new Exception(SR.Diagnostic_InternalExceptionMessage); 657throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\Hosting\ComposablePartExportProvider.cs (1)
156throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\Hosting\CompositionContainer.cs (2)
582throw new Exception(SR.Diagnostic_InternalExceptionMessage); 589throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\Hosting\CompositionService.cs (2)
52throw new Exception(SR.Diagnostic_InternalExceptionMessage); 61throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\Hosting\CompositionServices.cs (2)
43throw new Exception(SR.Diagnostic_InternalExceptionMessage); 127throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (1)
571throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\Hosting\ExportProvider.cs (1)
112throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\Hosting\ExportProvider.GetExportOverrides.cs (1)
727throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\Hosting\ImportEngine.cs (1)
723throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\Hosting\TypeCatalog.cs (1)
263throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\MetadataViewGenerator.cs (3)
97throw new Exception(SR.Diagnostic_InternalExceptionMessage); 115throw new Exception(SR.Diagnostic_InternalExceptionMessage); 122throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\MetadataViewProvider.cs (1)
83throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\Primitives\ComposablePartCatalog.cs (1)
64throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\ReflectionModel\ExportfactoryCreator.cs (1)
37throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (3)
145throw new Exception(SR.Diagnostic_InternalExceptionMessage); 224throw new Exception(SR.Diagnostic_InternalExceptionMessage); 333throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\ReflectionModel\ImportingItem.cs (1)
71throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\ReflectionModel\ImportType.cs (1)
75throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\ReflectionModel\LazyMemberInfo.cs (3)
31throw new Exception(SR.Diagnostic_InternalExceptionMessage); 106throw new Exception(SR.Diagnostic_InternalExceptionMessage); 132throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (1)
409throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\ReflectionModel\ReflectionExtensions.cs (7)
20throw new Exception(SR.Diagnostic_InternalExceptionMessage); 27throw new Exception(SR.Diagnostic_InternalExceptionMessage); 38throw new Exception(SR.Diagnostic_InternalExceptionMessage); 53throw new Exception(SR.Diagnostic_InternalExceptionMessage); 69throw new Exception(SR.Diagnostic_InternalExceptionMessage); 75throw new Exception(SR.Diagnostic_InternalExceptionMessage); 92throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System\ComponentModel\Composition\ReflectionModel\ReflectionProperty.cs (5)
26throw new Exception(SR.Diagnostic_InternalExceptionMessage); 68throw new Exception(SR.Diagnostic_InternalExceptionMessage); 105throw new Exception(SR.Diagnostic_InternalExceptionMessage); 120throw new Exception(SR.Diagnostic_InternalExceptionMessage); 130throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System.ComponentModel.Composition.Registration (4)
src\libraries\Common\src\System\Composition\Diagnostics\CompositionTrace.cs (2)
13throw new Exception(SR.Diagnostic_InternalExceptionMessage); 26throw new Exception(SR.Diagnostic_InternalExceptionMessage);
src\libraries\Common\src\System\Composition\Diagnostics\CompositionTraceSource.cs (1)
50throw new Exception(SR.Format(SR.Diagnostic_InternalExceptionMessage, SR.Diagnostic_TraceUnnecessaryWork));
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (1)
180throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System.Composition.Convention (4)
src\libraries\Common\src\System\Composition\Diagnostics\CompositionTrace.cs (2)
13throw new Exception(SR.Diagnostic_InternalExceptionMessage); 26throw new Exception(SR.Diagnostic_InternalExceptionMessage);
src\libraries\Common\src\System\Composition\Diagnostics\CompositionTraceSource.cs (1)
50throw new Exception(SR.Format(SR.Diagnostic_InternalExceptionMessage, SR.Diagnostic_TraceUnnecessaryWork));
System\Composition\Convention\ConventionBuilder.cs (1)
196throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System.Composition.Hosting (4)
System\Composition\Hosting\Core\CompositionOperation.cs (1)
84throw new Exception(SR.Sharing_Lock_Taken);
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (1)
137throw new Exception(SR.Dependencies_Should_Be_Requested_Earlier);
System\Composition\Hosting\Core\UpdateResult.cs (1)
49throw new Exception(SR.Providers_Remain_To_Be_Queried);
System\Composition\Hosting\Util\Formatters.cs (1)
36throw new Exception(SR.Diagnostic_InternalExceptionMessage);
System.Composition.Runtime (2)
System\Composition\Hosting\CompositionFailedException.cs (2)
17: base(SR.CompositionFailedDefaultExceptionMessage) 25: base(message ?? SR.CompositionFailedDefaultExceptionMessage)
System.Configuration.ConfigurationManager (4)
System\Configuration\Provider\ProviderException.cs (1)
16: base(message)
System\Configuration\SettingsPropertyIsReadOnlyException.cs (1)
14: base(message)
System\Configuration\SettingsPropertyNotFoundException.cs (1)
14: base(message)
System\Configuration\SettingsPropertyWrongTypeException.cs (1)
14: base(message)
System.Formats.Asn1 (2)
System\Formats\Asn1\AsnContentException.cs (2)
19: base(SR.ContentException_DefaultMessage) 30: base(message ?? SR.ContentException_DefaultMessage)
System.Formats.Cbor (1)
System\Formats\Cbor\CborContentException.cs (1)
18: base(message ?? SR.CborContentException_DefaultMessage)
System.IO.IsolatedStorage (2)
System\IO\IsolatedStorage\IsolatedStorageException.cs (2)
21: base(SR.IsolatedStorage_Exception) 27: base(message ?? SR.IsolatedStorage_Exception)
System.Net.Http (6)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecodingException.cs (1)
17public HPackDecodingException(string message) : base(message)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackEncodingException.cs (1)
13: base(message)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HuffmanDecodingException.cs (1)
18: base(message)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecodingException.cs (1)
16public QPackDecodingException(string message) : base(message)
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackEncodingException.cs (1)
13: base(message)
System\Net\Http\HttpRequestException.cs (1)
14: base(message)
System.Net.Mail (5)
System\Net\Mail\SmtpException.cs (5)
74public SmtpException(SmtpStatusCode statusCode) : base(GetMessageForStatus(statusCode)) 79public SmtpException(SmtpStatusCode statusCode, string? message) : base(message) 88public SmtpException(string? message) : base(message) 103internal SmtpException(SmtpStatusCode statusCode, string? serverMessage, bool _) : base(GetMessageForStatus(statusCode, serverMessage)) 108internal SmtpException(string message, string? serverResponse) : base(message + " " + SR.Format(SR.MailServerResponse, serverResponse))
System.Net.Security (4)
src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssApiException.cs (3)
27public GssApiException(string message) : base(message) 32: base(GetGssApiDisplayStatus(majorStatus, minorStatus, null)) 39: base(GetGssApiDisplayStatus(majorStatus, minorStatus, helpText))
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
948: base(inputMessage)
System.Private.CoreLib (18)
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
43: base(message ?? SR.AggregateException_ctor_DefaultMessage)
src\libraries\System.Private.CoreLib\src\System\ApplicationException.cs (2)
26: base(SR.Arg_ApplicationException) 36: base(message)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebugProvider.cs (1)
80base(Terminate(message) + Terminate(detailMessage) + stackTrace)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSourceException.cs (2)
20base(SR.EventSource_ListenerWriteFailure) { } 25public EventSourceException(string? message) : base(message ?? SR.EventSource_ListenerWriteFailure) { }
src\libraries\System.Private.CoreLib\src\System\Diagnostics\UnreachableException.cs (2)
15: base(SR.Arg_UnreachableException) 25: base(message ?? SR.Arg_UnreachableException)
src\libraries\System.Private.CoreLib\src\System\InvalidTimeZoneException.cs (1)
19: base(message)
src\libraries\System.Private.CoreLib\src\System\Runtime\AmbiguousImplementationException.cs (2)
14: base(SR.Arg_AmbiguousImplementationException_NoMessage) 20: base(message ?? SR.Arg_AmbiguousImplementationException_NoMessage)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeWrappedException.cs (1)
21: base(SR.RuntimeWrappedException)
src\libraries\System.Private.CoreLib\src\System\SystemException.cs (2)
15: base(SR.Arg_SystemException) 21: base(message)
src\libraries\System.Private.CoreLib\src\System\Threading\LockRecursionException.cs (1)
19: base(message)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskSchedulerException.cs (2)
29public TaskSchedulerException() : base(SR.TaskSchedulerException_ctor_DefaultMessage) // 38public TaskSchedulerException(string? message) : base(message ?? SR.TaskSchedulerException_ctor_DefaultMessage)
src\libraries\System.Private.CoreLib\src\System\TimeZoneNotFoundException.cs (1)
19: base(message)
System.Private.CoreLib.Generators (1)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
77throw new Exception($"Not able to find {newFullNamespaceName} namespace");
System.Private.Windows.Core (1)
System\Private\Windows\Ole\RestrictedTypeDeserializationException.cs (1)
12public RestrictedTypeDeserializationException(string? message) : base(message)
System.Private.Xml (4)
System\Xml\BinaryXml\XmlBinaryReader.cs (2)
3197throw new Exception("Prefix not interned: \'" + decl.prefix + "\'"); 3199throw new Exception("Uri not interned: \'" + decl.uri + "\'");
System\Xml\Serialization\CodeGenerator.cs (1)
1633: base(SR.Format(SR.CodeGenConvertError, reason, sourceType.ToString(), targetType.ToString()))
System\Xml\Serialization\Compilation.cs (1)
175throw new Exception(SR.Format(SR.FailLoadAssemblyUnderPregenMode, serializerName));
System.Reflection.Metadata (1)
System\Reflection\Metadata\ImageFormatLimitationException.cs (1)
16: base(message)
System.Runtime.Serialization.Primitives (1)
System\Runtime\Serialization\InvalidDataContractException.cs (1)
20: base(message)
System.ServiceModel.Federation (1)
System\IdentityModel\Security\WrapperSecurityCommunicationObject.cs (1)
143throw new Exception("ThrowIfClosedOrNotOpen: Unknown CommunicationObject.state");
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\FramingChannels.cs (1)
402throw new Exception("invalid framing client state machine");
System\ServiceModel\Channels\SessionConnectionReader.cs (1)
102throw new Exception("Receive: DecodeMessage() should consume the outstanding buffer or return a message.");
System.ServiceModel.Primitives.Tests (1)
Security\SecurityNegotiationExceptionTest.cs (1)
20Exception innerException = new Exception(exceptionMessage);
System.Text.Json (2)
System\Text\Json\JsonException.cs (2)
48public JsonException(string? message, string? path, long? lineNumber, long? bytePositionInLine) : base(message) 70public JsonException(string? message) : base(message)
System.Threading.Channels (1)
System\Threading\Channels\ChannelUtilities.cs (1)
14internal static readonly Exception s_doneWritingSentinel = new Exception(nameof(s_doneWritingSentinel));
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\TaskReplicator.cs (1)
143throw new Exception("Replicated tasks cannot yield in this single-threaded browser environment");
System.Web.Services.Description (1)
System\Web\Services\Description\ServiceDescriptions.cs (1)
55return new Exception(SR.Format(SR.WebDescriptionMissingItem, type, name.Name, name.Namespace));
System.Xaml (2)
System\Xaml\Parser\GenericTypeNameParser.cs (1)
17: base(message)
System\Xaml\XamlException.cs (1)
62:base(message) { }
Templates.Blazor.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
Templates.Mvc.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
Templates.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
Test.Utilities (1)
CodeMetricsTestsBase.cs (1)
150throw new Exception("Could not find a compatible CSharpCompilationOptions constructor via reflection.");
UIAutomationTypes (3)
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Interop\OSVersionHelper.cs (1)
318throw new Exception("OSVersionHelper.GetOsVersion Could not detect OS!");
System\Windows\Automation\NoClickablePointException.cs (1)
31public NoClickablePointException(String message) : base(message) {}
System\Windows\Automation\ProxyAssemblyNotLoadedException.cs (1)
36public ProxyAssemblyNotLoadedException(String message) : base(message) {}
VBCSCompiler (2)
src\Compilers\Server\VBCSCompiler\BuildServerController.cs (1)
49throw new Exception("Cannot calculate pipe name");
src\Compilers\Server\VBCSCompiler\NamedPipeClientConnection.cs (1)
61throw new Exception("Client identity does not match server identity.");
VBCSCompiler.UnitTests (7)
ClientConnectionHandlerTests.cs (4)
43throw new Exception(""); 67throw new Exception(""); 87throw new Exception(""); 123throw new Exception("");
NamedPipeTestUtil.cs (2)
33throw new Exception("Cannot locate the SharedServer dictionary"); 45throw new Exception("Socket is unexpectedly null");
VBCSCompilerServerTests.cs (1)
374throw new Exception("");
Wasm.Performance.ConsoleHost (1)
src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
WindowsBase.Tests (1)
Helpers.cs (1)
66throw new Exception("Not reachable.");
XmlFileLogger (1)
UnknownTaskParameterPrefixException.cs (1)
13: base(string.Format("Unknown task parameter type: {0}", prefix))
xunit.assert (1)
Sdk\AssertEqualityComparer.cs (1)
110 base(message)
xunit.console (2)
common\Json.cs (2)
559: base(message) 566: base(message)