851 references to Exception
aspire (7)
Exceptions\ChannelNotFoundException.cs (1)
12: base(message)
Exceptions\DotNetSdkNotInstalledException.cs (2)
12: base(".NET SDK is not installed or doesn't meet the minimum version requirement.") 17: base(message)
Exceptions\ProjectAlreadyExistsException.cs (2)
12: base("The output folder already contains files from a previous project.") 17: base(message)
Interaction\NonInteractiveException.cs (1)
13: base($"Required input {symbolDisplayName} was not provided in non-interactive mode.")
Projects\ProjectUpdater.cs (1)
1554public ProjectUpdaterException(string message) : base(message) { }
Aspire.Hosting (1)
DistributedApplicationException.cs (1)
23public DistributedApplicationException(string message) : base(message) { }
Aspire.Hosting.RemoteHost (1)
Ats\CapabilityException.cs (1)
17: base(error.Message)
Client.ExpectedExceptions.IntegrationTests (1)
ExpectedExceptionTests.4.0.0.cs (1)
403throw new Exception(exceptionMsg);
Contract.Fault.IntegrationTests (1)
FaultExceptionTests.cs (1)
78throw new Exception("Expected TestFaultWithKnownType in the ClientOperations, Actual: TestFaultWithKnownType NOT Found");
crossgen2 (7)
Program.cs (6)
418throw new Exception(string.Format(SR.ErrorMultipleInputFilesCompositeModeOnly, string.Join("; ", inputModules))); 430throw new Exception(string.Format(SR.ErrorContainerFormatRequiresComposite, format)); 437throw new Exception(SR.ErrorReadyToRunHeaderSymbolNameRequiresComposite); 442throw new Exception(SR.ErrorReadyToRunHeaderSymbolNameEmpty); 627throw new Exception(string.Format(SR.ErrorCompositeKeyFileNotPublicKey)); 706throw new Exception("Determinism Check Failed");
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
18public CommandLineException(string message) : base(message) { }
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\BuildErrorException.cs (1)
18public BuildErrorException(string message) : base(message)
dotnet (15)
BuildServer\BuildServerException.cs (1)
14public BuildServerException(string message) : base(message)
CommandFactory\CommandResolution\PackagedCommandSpecFactory.cs (1)
128throw new Exception(LocalizableStrings.UnableToLocateDotnetMultiplexer);
CommandFactory\CommandResolution\PublishPathCommandSpecFactory.cs (1)
57throw new Exception(LocalizableStrings.UnableToLocateDotnetMultiplexer);
CommandNotAvailableInAotException.cs (1)
13: base("This command is not available in AOT mode.")
CommandParsingException.cs (1)
11: base(message)
Commands\New\MSBuildEvaluation\ProjectCapabilityConstraint.cs (3)
28throw new Exception(string.Format(CliCommandStrings.ProjectCapabilityConstraintFactory_Exception_NoEvaluator, Type, nameof(MSBuildEvaluator))); 92throw new Exception($"{CliCommandStrings.ProjectCapabilityConstraint_Error_InvalidConstraintConfiguration}: {CliCommandStrings.ProjectCapabilityConstraint_Error_ArgumentShouldNotBeEmpty}."); 99throw new Exception($"{CliCommandStrings.ProjectCapabilityConstraint_Error_InvalidConstraintConfiguration}: {CliCommandStrings.ProjectCapabilityConstraint_Error_ArgumentShouldBeString}.");
Commands\Workload\Install\FileBasedInstaller.cs (2)
183throw new Exception(string.Format(CliCommandStrings.CacheMissingPackage, packInfo.ResolvedPackageId, packInfo.Version, offlineCache)); 325throw new Exception(string.Format(CliCommandStrings.CacheMissingPackage, packageId, packageVersion, offlineCache));
Commands\Workload\Uninstall\WorkloadUninstallCommand.cs (1)
67throw new Exception(string.Format(CliCommandStrings.WorkloadNotInstalled, string.Join(" ", unrecognizedWorkloads)));
Commands\Workload\WorkloadException.cs (2)
19public WorkloadException(string? message) : base(message) 24public WorkloadException(uint error, string? message) : base(message)
ShellShim\ShellShimException.cs (1)
14public ShellShimException(string message) : base(message)
ToolPackage\ToolConfigurationException.cs (1)
14public ToolConfigurationException(string message) : base(message)
dotnet-aot (3)
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\PublishPathCommandSpecFactory.cs (1)
57throw new Exception(LocalizableStrings.UnableToLocateDotnetMultiplexer);
src\sdk\src\Cli\dotnet\CommandNotAvailableInAotException.cs (1)
13: base("This command is not available in AOT mode.")
src\sdk\src\Cli\dotnet\CommandParsingException.cs (1)
11: base(message)
dotnet-dev-certs (1)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
dotnet-format (4)
CodeFormatter.cs (2)
136throw new Exception("Restore operation failed."); 229throw new Exception($"Unable to get a syntax tree for '{document.Name}'");
Commands\FormatCommandCommon.cs (1)
333throw new Exception($"Unable to find folder at '{workspaceFilePath}'");
Formatters\CharsetFormatter.cs (1)
48throw new System.Exception($"source text did not have an identifiable encoding");
dotnet-getdocument (2)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
src\aspnetcore\src\Tools\GetDocumentInsider\src\CommandException.cs (1)
11: base(message)
dotnet-openapi (1)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
dotnet-sql-cache (1)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
dotnet-suggest (1)
SuggestionShellScriptException.cs (1)
12public SuggestionShellScriptException(string message) : 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\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
dotnet-user-secrets (1)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
dotnet-watch (1)
Program.cs (1)
387throw new Exception($"Found a version of {assembly.Name} that was lower than the target version of {assembly.Version}");
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
70FatalError.ReportNonFatalError(new Exception("The SynchronizationContext was changed since it was applied."));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
183: base(message)
GetDocument.Insider (2)
CommandException.cs (1)
11: base(message)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
11: base(message)
ilc (8)
Program.cs (3)
195throw new Exception("Multiple EXE modules"); 225throw new Exception("No entrypoint module"); 720throw new Exception("Scanning failure");
RdXmlRootProvider.cs (4)
59throw new Exception("The \"Name\" attribute is required on the \"Assembly\" Runtime Directive."); 94throw new Exception("The \"Name\" attribute is required on the \"Type\" Runtime Directive."); 143throw new Exception("The \"Name\" attribute is required on the \"Method\" Runtime Directive."); 206throw new Exception($"Could not find Method(s) {containingType}.{methodName}{instantiationString}{parameterString} specified by a Runtime Directive.");
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
18public CommandLineException(string message) : base(message) { }
ILCompiler.Compiler (11)
Compiler\Logging\NativeAotFatalErrorException.cs (1)
21: base(message.ToString())
Compiler\MainMethodRootProvider.cs (1)
41throw new Exception("No managed entrypoint defined for executable module");
IL\Stubs\StartupCode\StartupCodeMainMethod.cs (1)
134throw new Exception("Main() has parameters, but the class library doesn't support them");
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmInstructions.cs (1)
363throw new Exception($"Unknown WASM reloc type : {_relocType}");
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (5)
382throw new Exception("Unknown Type"); 387throw new Exception("Partial Instrumentation Data"); 594throw new Exception("Unable to merge pgo data. Invalid format"); 620throw new Exception($"Unable to merge ValueHistogram {mergedElem.DataObject} " + 630_ => throw new Exception("ValueHistogram is expected to be either int[] or long[]")
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (2)
408throw new Exception("Unknown primitive type"); 481throw new Exception("Unexpected type");
ILCompiler.Diagnostics (3)
PdbWriter.cs (3)
434throw new Exception("Unknown target architecture"); 450throw new Exception("No AssemblyFileVersionAttribute present"); 467throw new Exception("No AssemblyInformationalVersionAttribute present");
ILCompiler.ReadyToRun (39)
Compiler\DependencyAnalysis\ReadyToRun\ImportSectionNode.cs (1)
79throw new Exception("Cannot call AddImport after MaterializeSignature");
Compiler\DependencyAnalysis\ReadyToRun\InstrumentationDataTableNode.cs (2)
118throw new Exception("Unexpected high index for table import"); 162throw new Exception("Unexpected high index for table import");
Compiler\DependencyAnalysis\ReadyToRun\MethodGCInfoNode.cs (1)
62throw new Exception("Did not properly initialize deduplicator");
Compiler\DependencyAnalysis\ReadyToRun\WasmImportThunk.cs (2)
312throw new System.Exception("Unexpected wasm type arg"); 445throw new System.Exception("Unexpected wasm type arg");
Compiler\DependencyAnalysis\ReadyToRun\WasmInterpreterToR2RThunkNode.cs (2)
267throw new Exception("Unexpected wasm type for interpreter-to-R2R arg"); 312throw new Exception("Unexpected wasm return type for interpreter-to-R2R");
Compiler\DependencyAnalysis\ReadyToRun\WasmR2RToInterpreterThunkNode.cs (2)
302throw new Exception("Unexpected wasm type arg"); 407throw new Exception("Unexpected wasm return type");
IBC\IBCDataModel.cs (1)
13public IBCException(string message) : base(message) { }
IBC\IBCProfileParser.cs (12)
46throw new Exception("Unsupported V1 IBC Format"); 124throw new Exception($"Missing blob entry for ibcMethodSpec {entry.Token:x}"); 127throw new Exception($"Blob entry for {entry.Token:x} is invalid"); 316throw new Exception($"Ibc TypeToken {ibcToken:x} has both Namespace and NestedClass tokens"); 321throw new Exception($"Ibc TypeToken {ibcToken:x} has Namespace tokens that is not a ibcExternalNamespace"); 338throw new Exception($"Ibc TypeToken {ibcToken:x} has NestedClass token which does not resolve to a type definition"); 409throw new Exception($"Ibc MethodToken {ibcToken:x} incosistent classToken '{ibcToken:x}' with specified exact type '{ecmaType}'"); 520throw new Exception("Attempt to parse ELEMENT_TYPE_VAR or ELEMENT_TYPE_MVAR in an IBC ZapSig"); 580throw new Exception($"Invalid element type {typ:x} in IBC ZapSig"); 618throw new Exception("Attempt to parse ELEMENT_TYPE_VAR or ELEMENT_TYPE_MVAR in an IBC ZapSig"); 657throw new Exception($"Invalid element type {typ:x} in IBC ZapSig"); 682throw new Exception("Invalid token found while parsing IBC ZapSig generic instantiation");
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
471: base(reason.ToString())
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmInstructions.cs (1)
363throw new Exception($"Unknown WASM reloc type : {_relocType}");
src\runtime\src\coreclr\tools\Common\Internal\Runtime\ReadyToRunInstructionSetHelper.cs (6)
67default: throw new Exception("Unknown instruction set"); 81default: throw new Exception("Unknown instruction set"); 93default: throw new Exception("Unknown instruction set"); 148default: throw new Exception("Unknown instruction set"); 203default: throw new Exception("Unknown instruction set"); 207default: throw new Exception("Unknown architecture");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
401throw new Exception(message);
src\runtime\src\coreclr\tools\Common\Pgo\PgoFormat.cs (5)
382throw new Exception("Unknown Type"); 387throw new Exception("Partial Instrumentation Data"); 594throw new Exception("Unable to merge pgo data. Invalid format"); 620throw new Exception($"Unable to merge ValueHistogram {mergedElem.DataObject} " + 630_ => throw new Exception("ValueHistogram is expected to be either int[] or long[]")
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (2)
408throw new Exception("Unknown primitive type"); 481throw new Exception("Unexpected type");
ILCompiler.RyuJit (2)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\IBCDataModel.cs (1)
13public IBCException(string message) : base(message) { }
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
401throw new Exception(message);
illink (2)
Infrastructure.Common (3)
ServiceUtilHelper.cs (3)
583throw new Exception($"Got Status code {response.StatusCode} from {requestUri}."); 602throw new Exception($"Got Status code {response.StatusCode} from {requestUri}."); 621throw new Exception($"Got Status code {response.StatusCode} from {requestUri}.");
Infrastructure.Tests (1)
PowerShellScripts\PowerShellCommand.cs (1)
294public CommandException(string message, CommandResult result) : base(message)
Microsoft.Analyzers.Local (2)
JsonParseException.cs (2)
36: base(GetMessage(ParsingError.Unknown)) 57: base(message)
Microsoft.Arcade.Common (1)
CommandResult.cs (1)
46throw new Exception(message.ToString());
Microsoft.AspNetCore (1)
Internal\CsrfValidationException.cs (1)
13: base(message)
Microsoft.AspNetCore.Antiforgery (1)
AntiforgeryValidationException.cs (1)
17: base(message)
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationFailureException.cs (1)
17: base(message)
Microsoft.AspNetCore.Components (2)
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternException.cs (1)
32: base(message)
src\aspnetcore\src\Http\Routing\src\RouteCreationException.cs (1)
20: base(message)
Microsoft.AspNetCore.Components.Server (1)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackSerializationException.cs (1)
32: base(message)
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
Services\AccessTokenNotAvailableException.cs (1)
25: base(message: "Unable to provision an access token for the requested scopes: " +
Microsoft.AspNetCore.Http.Connections.Client (1)
NoTransportSupportedException.cs (1)
18: base(message)
Microsoft.AspNetCore.Identity (1)
PasskeyException.cs (1)
15: base(message)
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.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.Razor.RuntimeCompilation (1)
CompilationFailedException.cs (1)
13: base(FormatMessage(compilationFailures))
Microsoft.AspNetCore.ResponseCaching (1)
CacheKeyDelimiterException.cs (1)
9: base("The value contains invalid characters to cache.")
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.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.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\aspnetcore\src\Shared\runtime\Http2\Hpack\HPackDecodingException.cs (1)
17public HPackDecodingException(string message) : base(message)
src\aspnetcore\src\Shared\runtime\Http2\Hpack\HPackEncodingException.cs (1)
13: base(message)
src\aspnetcore\src\Shared\runtime\Http2\Hpack\HuffmanDecodingException.cs (1)
18: base(message)
src\aspnetcore\src\Shared\runtime\Http3\QPack\QPackDecodingException.cs (1)
16public QPackDecodingException(string message) : base(message)
src\aspnetcore\src\Shared\runtime\Http3\QPack\QPackEncodingException.cs (1)
13: base(message)
src\aspnetcore\src\Shared\ServerInfrastructure\Http2\Http2ConnectionErrorException.cs (1)
11: base($"HTTP/2 connection error ({errorCode}): {message}")
src\aspnetcore\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.Transport.DirectTls (1)
TlsException.cs (1)
8public TlsException(string message) : base(message) { }
Microsoft.AspNetCore.SignalR.Common (1)
HubException.cs (1)
31public HubException(string? message) : base(message)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\aspnetcore\src\SignalR\common\testassets\Tests.Utils\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.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
3671throw new Exception(message);
BuildCheck\Infrastructure\BuildCheckConfigurationException.cs (1)
21public BuildCheckConfigurationException(string message, BuildCheckConfigurationErrorScope buildCheckConfigurationErrorScope = BuildCheckConfigurationErrorScope.SingleRule) : base(message)
Microsoft.Build.Framework (1)
BuildException\BuildExceptionBase.cs (1)
23: base(message)
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
839_ => throw new Exception($"Unexpected value {kind}"),
Microsoft.Build.Tasks.Core (4)
GenerateResource.cs (1)
4069: base(message)
RedistList.cs (1)
624allowListErrors.Add(new Exception(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ResolveAssemblyReference.NoSubSetRedistListName", info.Path.OriginalValue)));
ResourceHandling\InputFormatNotSupportedException.cs (1)
18public InputFormatNotSupportedException(string message) : base(message)
ResourceHandling\MSBuildResXException.cs (1)
17public MSBuildResXException(string message) : base(message)
Microsoft.CodeAnalysis (5)
CodeGen\PermissionSetAttribute.cs (1)
195: base(message)
DiaSymReader\Writer\SymUnmanagedWriterException.cs (1)
25public SymUnmanagedWriterException(string message) : base(message)
InternalUtilities\SpecializedSyncContext.cs (1)
70FatalError.ReportNonFatalError(new Exception("The SynchronizationContext was changed since it was applied."));
RuleSet\InvalidRuleSetException.cs (1)
17public InvalidRuleSetException(string message) : base(message) { }
Syntax\SyntaxNode.cs (1)
1446: base(Text)
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
70FatalError.ReportNonFatalError(new Exception("The SynchronizationContext was changed since it was applied."));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
183: base(message)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
70FatalError.ReportNonFatalError(new Exception("The SynchronizationContext was changed since it was applied."));
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
70FatalError.ReportNonFatalError(new Exception("The SynchronizationContext was changed since it was applied."));
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
183: base(message)
Microsoft.CodeAnalysis.CSharp (2)
Lowering\SyntheticBoundNodeFactory.cs (1)
36public MissingPredefinedMember(Diagnostic error) : base(error.ToString())
Parser\LanguageParser.cs (1)
14339get { throw new Exception("Use IsIncrementalAndFactoryContextMatches"); }
Microsoft.CodeAnalysis.Features (2)
Diagnostics\Service\DocumentAnalysisExecutor.cs (1)
323FatalError.ReportAndCatch(new Exception("Bug in GetDiagnostics"));
ExtractMethod\ExtractMethodMatrix.cs (1)
98FatalError.ReportAndCatch(new Exception($"extract method encountered unknown states: {key.ToString()}"), ErrorSeverity.Critical);
Microsoft.CodeAnalysis.Rebuild (2)
CompilationOptionsReader.cs (1)
106throw new Exception(RebuildResources.Invalid_language_name);
VisualBasicCompilationFactory.cs (1)
82throw new Exception(string.Format(RebuildResources.Cannot_create_compilation_options_0, diagnostic));
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
70FatalError.ReportNonFatalError(new Exception("The SynchronizationContext was changed since it was applied."));
Microsoft.CodeAnalysis.Scripting (1)
CompilationErrorException.cs (1)
23: base(message)
Microsoft.CodeAnalysis.Workspaces (5)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
70FatalError.ReportNonFatalError(new Exception("The SynchronizationContext was changed since it was applied."));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
183: 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)
1019public CompilationTrackerValidationException(string message) : base(message) { }
Workspace\Solution\SolutionState.cs (1)
1367FatalError.ReportAndCatch(new Exception("GetDocumentIdsWithFilePath returned a document in a project that does not exist."));
Microsoft.CodeAnalysis.Workspaces.MSBuild (6)
MSBuild\BuildHostProcessManager.cs (2)
330throw new Exception(string.Format(WorkspaceMSBuildResources.The_build_host_could_not_be_found_at_0, buildHostPath)); 475throw new Exception("Ownership of BuildHost pipe is incorrect.");
MSBuild\MSBuildProjectLoader.Worker.cs (1)
323throw new Exception(message);
MSBuild\SolutionFileReader.cs (2)
31throw new Exception(string.Format(WorkspaceMSBuildResources.Failed_to_load_solution_filter_0, solutionFilePath)); 37throw new Exception(string.Format(WorkspaceMSBuildResources.Failed_to_load_solution_0, absoluteSolutionPath));
Rpc\RpcClient.cs (1)
110request.SetException(processingException ?? new System.Exception("The server disconnected unexpectedly."));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
70FatalError.ReportNonFatalError(new Exception("The SynchronizationContext was changed since it was applied."));
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.Diagnostics.DataContractReader.Abstractions (2)
ContractNotAvailableException.cs (1)
27: base(message)
VirtualReadException.cs (1)
25public VirtualReadException(string message) : base(message)
Microsoft.Diagnostics.NETCore.Client (2)
DiagnosticsClient\DiagnosticsClientExceptions.cs (1)
10public DiagnosticsClientException(string msg) : base(msg) { }
DiagnosticsIpc\IpcAdvertise.cs (1)
65throw new Exception("Invalid advertise message from client connection");
Microsoft.DiaSymReader (1)
Writer\SymUnmanagedWriterException.cs (1)
23public SymUnmanagedWriterException(string message) : base(message)
Microsoft.DotNet.ApiCompat.Task (3)
src\sdk\src\Compatibility\ApiCompat\Microsoft.DotNet.ApiCompat.Shared\RoslynResolver.cs (1)
54throw new Exception(string.Format(CommonResources.UpdateSdkVersion, resolvedVersion, name.Version));
src\sdk\src\Compatibility\ApiCompat\Microsoft.DotNet.ApiCompat.Shared\ValidateAssemblies.cs (1)
36throw new Exception(CommonResources.CreateWorkItemPerAssemblyAssembliesNotEqual);
src\sdk\src\Tasks\Common\BuildErrorException.cs (1)
18public BuildErrorException(string message) : base(message)
Microsoft.DotNet.Build.Tasks.Workloads (5)
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)
91throw new Exception(string.Format(Strings.RelativePackagePathTooLong, MaxRelativePackagePath, relativePackagePath));
WorkloadPackageBase.cs (1)
344throw new Exception(string.Format(Strings.NoInstallerVersion, taskName,
Microsoft.DotNet.Cli.CoreUtils (1)
GracefulException.cs (1)
15public GracefulException(string message) : base(message)
Microsoft.DotNet.Cli.Utils (2)
ExponentialRetry.cs (1)
58throw new Exception($"Timer for task {taskDescription} should not be exhausted.");
FilePermissionSettingException.cs (1)
12public FilePermissionSettingException(string message) : base(message)
Microsoft.DotNet.Configurer (1)
ConfigurationException.cs (1)
12public ConfigurationException(string message) : base(message)
Microsoft.DotNet.GenFacades (1)
RoslynBuildTask.cs (1)
49throw 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.HotReload.Utils.Generator (4)
BaselineProject.cs (1)
75throw new Exception ("could not consume baseline");
DeltaProject.cs (2)
81throw new Exception ("Unexpectedly, project Id of the delta != base project Id"); 83throw new Exception ("Unexpectedly, document Id of the delta != base document Id");
DiffyException.cs (1)
15public DiffyException (string message, int exitStatus) : base (message) {
Microsoft.DotNet.HotReload.Utils.Generator.Tasks (1)
HotReloadDeltaGeneratorComputeScriptOutputs.cs (1)
113_ => throw new Exception("unexpected")
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.NativeWrapper (1)
HostFxrResolutionException.cs (1)
18: base(message)
Microsoft.DotNet.TemplateLocator (8)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.JsonReader.cs (2)
87public JsonFormatException(string messageFormat, params object?[] args) : base(string.Format(messageFormat, args)) { } 88public JsonFormatException(string message) : base(message) { }
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestFormatException.cs (2)
25protected WorkloadManifestException(string messageFormat, params object?[] args) : base(string.Format(messageFormat, args)) { } 26protected WorkloadManifestException(string message) : base(message) { }
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (4)
397throw new Exception($"Workload not found: {workloadId}. Known workloads: {string.Join(" ", _workloads.Select(workload => workload.Key.ToString()))}"); 655return _manifestProvider?.GetSdkFeatureBand() ?? throw new Exception("Cannot get SDK feature band from ManifestProvider"); 749throw new Exception(string.Format(Strings.ManifestDoesNotExist, manifestId)); 760throw new Exception(string.Format(Strings.ManifestDoesNotExist, manifestId));
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.Extensions.AI.Abstractions.Tests (1)
Functions\DelegatingAIFunctionTests.cs (1)
68throw new Exception("uh oh");
Microsoft.Extensions.Caching.Hybrid.Tests (1)
SizeTests.cs (1)
271: base(message)
Microsoft.Extensions.DataIngestion.Tests (1)
Utils\ExpectedException.cs (1)
13: base(ExceptionMessage)
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (1)
TestException.cs (1)
15: base(message)
Microsoft.Extensions.Hosting.Abstractions (2)
HostAbortedException.cs (2)
23public HostAbortedException() : base(SR.HostAbortedExceptionMessage) { } 37public HostAbortedException(string? message) : base(message ?? SR.HostAbortedExceptionMessage) { }
Microsoft.Extensions.VectorData.Abstractions (1)
VectorStoreException.cs (1)
25: base(message)
Microsoft.Interop.ComInterfaceGenerator (1)
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\UnreachableException.cs (1)
17public UnreachableException(string message) : base(message) { }
Microsoft.Interop.JavaScript.JSImportGenerator (1)
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\UnreachableException.cs (1)
17public UnreachableException(string message) : base(message) { }
Microsoft.Interop.LibraryImportGenerator (1)
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\UnreachableException.cs (1)
17public UnreachableException(string message) : base(message) { }
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\UnreachableException.cs (1)
17public UnreachableException(string message) : base(message) { }
Microsoft.Interop.SourceGeneration (1)
src\runtime\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.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.NET.Build.Containers (8)
BaseImageNotFoundException.cs (1)
9: base($"The RuntimeIdentifier '{specifiedRuntimeIdentifier}' is not supported by {repositoryName}:{reference}. The supported RuntimeIdentifiers are {String.Join(",", supportedRuntimeIdentifiers)}")
DockerLoadException.cs (1)
13public DockerLoadException(string? message) : base(message)
Exceptions\ContainerHttpException.cs (1)
13: base($"{ErrorPrefix} {message}\nURI: {targetUri ?? "Unknown"}\nHTTP status code: {statusCode?.ToString() ?? "Unknown"}")
Exceptions\InvalidDigestException.cs (1)
11: base(message)
Exceptions\RepositoryNotFoundException.cs (1)
9: base(string.Format("Unable to find the repository '{0}' at tag '{1}' in the registry '{2}'. Please confirm that this name and tag are present in the registry.", repositoryName, reference, registry))
Exceptions\UnableToAccessRepositoryException.cs (2)
9: base(string.Format("Unable to access the registry '{0}'. Please confirm your credentials are correct and that you have access to this registry.", registry)) 13: base(string.Format("Unable to access the repository '{0}' in the registry '{1}'. Please confirm your credentials are correct and that you have access to this repository and registry.", repository, registry))
Exceptions\UnableToDownloadFromRepositoryException.cs (1)
9: base($"The download of the image from repository { repository } has failed.")
Microsoft.NET.Build.Extensions.Tasks (1)
src\sdk\src\Tasks\Common\BuildErrorException.cs (1)
18public BuildErrorException(string message) : base(message)
Microsoft.NET.Build.Tasks (9)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.JsonReader.cs (2)
87public JsonFormatException(string messageFormat, params object?[] args) : base(string.Format(messageFormat, args)) { } 88public JsonFormatException(string message) : base(message) { }
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestFormatException.cs (2)
25protected WorkloadManifestException(string messageFormat, params object?[] args) : base(string.Format(messageFormat, args)) { } 26protected WorkloadManifestException(string message) : base(message) { }
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (4)
397throw new Exception($"Workload not found: {workloadId}. Known workloads: {string.Join(" ", _workloads.Select(workload => workload.Key.ToString()))}"); 655return _manifestProvider?.GetSdkFeatureBand() ?? throw new Exception("Cannot get SDK feature band from ManifestProvider"); 749throw new Exception(string.Format(Strings.ManifestDoesNotExist, manifestId)); 760throw new Exception(string.Format(Strings.ManifestDoesNotExist, manifestId));
src\sdk\src\Tasks\Common\BuildErrorException.cs (1)
18public BuildErrorException(string message) : base(message)
Microsoft.NET.HostModel (1)
AppHost\AppHostExceptions.cs (1)
15: base(message)
Microsoft.NET.Sdk.Publish.Tasks (2)
WebConfigTransform.cs (2)
181throw new Exception(Resources.WebConfigTransform_InvalidHostingOption); 189throw new Exception(Resources.WebConfigTransform_HostingModel_Error);
Microsoft.NET.Sdk.WorkloadManifestReader (8)
SdkDirectoryWorkloadManifestProvider.JsonReader.cs (2)
87public JsonFormatException(string messageFormat, params object?[] args) : base(string.Format(messageFormat, args)) { } 88public JsonFormatException(string message) : base(message) { }
WorkloadManifestFormatException.cs (2)
25protected WorkloadManifestException(string messageFormat, params object?[] args) : base(string.Format(messageFormat, args)) { } 26protected WorkloadManifestException(string message) : base(message) { }
WorkloadResolver.cs (4)
397throw new Exception($"Workload not found: {workloadId}. Known workloads: {string.Join(" ", _workloads.Select(workload => workload.Key.ToString()))}"); 655return _manifestProvider?.GetSdkFeatureBand() ?? throw new Exception("Cannot get SDK feature band from ManifestProvider"); 749throw new Exception(string.Format(Strings.ManifestDoesNotExist, manifestId)); 760throw new Exception(string.Format(Strings.ManifestDoesNotExist, manifestId));
Microsoft.Private.Windows.Core (1)
System\Private\Windows\Ole\RestrictedTypeDeserializationException.cs (1)
12public RestrictedTypeDeserializationException(string? message) : base(message)
Microsoft.Svcutil.NamedPipeMetadataImporter (1)
NamedPipeMetadataImporter.cs (1)
93tcs.SetException(new Exception("Fault response received."));
Microsoft.TemplateEngine.Cli (9)
CliTemplateInfo.cs (1)
102throw new Exception($"Template {Identity} defines {parameter.Name} twice.");
CliTemplateParameter.cs (1)
235_ => throw new Exception($"Unexpected value for {nameof(ParameterType)}: {Type}.")
Commands\create\TemplateCommandArgs.cs (1)
137return currentCommand as NewCommand ?? throw new Exception($"Command structure is not correct: {nameof(NewCommand)} is not found.");
Commands\Example.cs (1)
72throw new Exception($"Command structure is not correct: {nameof(T)} is not found.");
Commands\GlobalArgs.cs (1)
64throw new Exception($"Command structure is not correct: {nameof(NewCommand)} is not found as part of parse result.");
TemplateGroup.cs (1)
225throw new Exception($"{nameof(Templates)} cannot be empty collection");
TemplatePackageCoordinator.cs (2)
880throw new Exception(LocalizableStrings.DetailsCommand_NoNuGetSources); 909throw new Exception(LocalizableStrings.DetailsCommand_NoNuGetSources);
TemplateResolution\BaseTemplateResolver.cs (1)
52throw new Exception($"Both {nameof(_templateList)} and {nameof(_templatePackageManager)} cannot be null.");
Microsoft.TemplateEngine.Core (12)
Expressions\OperatorSetBuilder.cs (12)
356throw new Exception($"Unable to logical and {left?.GetType()} and {right?.GetType()}"); 366throw new Exception($"Unable to bitwise and {left?.GetType()} and {right?.GetType()}"); 376throw new Exception($"Unable to bitwise or {left?.GetType()} and {right?.GetType()}"); 409throw new Exception($"Cannot divide {left?.GetType()} and {right?.GetType()}"); 442throw new Exception($"Cannot exponentiate {left?.GetType()} and {right?.GetType()}"); 452throw new Exception($"Unable to left shift {left?.GetType()} and {right?.GetType()}"); 485throw new Exception($"Cannot multiply {left?.GetType()} and {right?.GetType()}"); 495throw new Exception($"Unable to logical not {operand?.GetType()}"); 515throw new Exception($"Unable to logical or {left?.GetType()} and {right?.GetType()}"); 525throw new Exception($"Unable to right shift {left?.GetType()} and {right?.GetType()}"); 566throw new Exception($"Cannot subtract {left?.GetType()} and {right?.GetType()}"); 604throw new Exception($"Can't xor {left?.GetType()} and {right?.GetType()}");
Microsoft.TemplateEngine.Edge (13)
Constraints\ConfigurationException.cs (1)
13public ConfigurationException(string message) : base(message)
Installers\NuGet\Exceptions\DownloadException.cs (2)
8public DownloadException(string packageIdentifier, string packageVersion, string filePath) : base($"Failed to download {packageIdentifier}@{packageVersion} from {filePath}") 15public DownloadException(string packageIdentifier, string packageVersion, IEnumerable<string> attemptedSources) : base($"Failed to download {packageIdentifier}@{packageVersion} from NuGet feeds {string.Join(";", attemptedSources)}")
Installers\NuGet\Exceptions\InvalidNuGetPackageException.cs (1)
8public InvalidNuGetPackageException(string packagePath) : base($"The NuGet package {packagePath} is invalid.")
Installers\NuGet\Exceptions\InvalidNuGetSourceException.cs (2)
8public InvalidNuGetSourceException(string message) : base(message) { } 11: base(message + ", attempted sources: " + string.Join(", ", sources) + ".")
Installers\NuGet\Exceptions\PackageNotFoundException.cs (2)
10public PackageNotFoundException(string packageIdentifier, IEnumerable<string> attemptedSources) : base($"{packageIdentifier} was not found in NuGet feeds {string.Join(";", attemptedSources)}") 16public PackageNotFoundException(string packageIdentifier, NuGetVersion packageVersion, IEnumerable<string> attemptedSources) : base($"{packageIdentifier}@{packageVersion} was not found in NuGet feeds {string.Join(";", attemptedSources)}")
Installers\NuGet\Exceptions\VulnerablePackageException.cs (1)
11: base(message)
Settings\Scanner.cs (1)
129throw new Exception(string.Format(LocalizableStrings.Scanner_Error_TemplatePackageLocationIsNotSupported, sourceLocation));
Template\InputDataSetExtensions.cs (1)
81throw new Exception(
Template\ParameterSetBuilder.cs (2)
32throw new Exception("ParameterDefinitionSet with errors encountered: " + errors.ToCsvString()); 291throw new Exception(LocalizableStrings.ConditionEvaluation_Error_TopologicalSort);
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (3)
ConfigModel\SymbolValueFormsModel.cs (1)
53throw new Exception("Malformed global value forms.");
LocalizationModelDeserializer.cs (1)
32.Select(p => p.Value?.GetValueKind() == JsonValueKind.String ? (p.Key, p.Value.GetValue<string>()) : throw new Exception(LocalizableStrings.Authoring_InvalidJsonElementInLocalizationFile))
OperationConfig\ConditionalConfig.cs (1)
101throw new Exception($"Unrecognized conditional type {style}");
Microsoft.TemplateEngine.Utils (4)
ContentGenerationException.cs (1)
9: base(message)
EngineInitializationException.cs (1)
9: base(message)
TemplateAuthoringException.cs (2)
8public TemplateAuthoringException(string message) : base(message) 13: base(message)
Microsoft.TemplateSearch.Common (8)
Providers\NuGetMetadataSearchProvider.cs (2)
102throw new Exception(string.Format(LocalizableStrings.BlobStoreSourceFileProvider_Exception_LocalCacheDoesNotExist, localOverridePath)); 119throw new Exception(string.Format(LocalizableStrings.BlobStoreSourceFileProvider_Exception_LocalCacheDoesNotExist, preferredMetadataLocation));
TemplateDiscoveryMetadata\LegacySearchCacheReader.cs (2)
170string? version = versionNode.ToString() ?? throw new Exception("Version value is null."); 180throw new Exception("Identity value is null.");
TemplateSearchCache\TemplatePackageSearchData.Json.cs (1)
52throw new Exception($"Unexpected data in template package cache data, property: {nameof(Templates)}.");
TemplateSearchCache\TemplateSearchCache.Json.cs (3)
46throw new Exception(LocalizableStrings.TemplateSearchCache_Exception_NotValid); 53?? throw new Exception(LocalizableStrings.TemplateSearchCache_Exception_NotValid); 61throw new Exception($"Unexpected data in template search cache data, property: {nameof(TemplatePackages)}, value: {templatePackage}");
Microsoft.TestPlatform.AdapterUtilities (1)
ManagedNameUtilities\InvalidManagedNameException.cs (1)
12public InvalidManagedNameException(string? message) : base(message) { }
Microsoft.TestPlatform.CommunicationUtilities (1)
Interfaces\Communication\CommunicationException.cs (1)
26: base(message)
Microsoft.TestPlatform.CrossPlatEngine (1)
Discovery\DiscovererEnumerator.cs (1)
218throw new Exception($@"DefaultExecutorUri is null, did you decorate the discoverer class with [DefaultExecutorUri()] attribute? For example [DefaultExecutorUri(""executor://example.testadapter"")].");
Microsoft.TestPlatform.PlatformAbstractions (1)
Interfaces\System\ThreadApartmentStateNotSupportedException.cs (1)
27: base(message)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (2)
TransationLayerException.cs (1)
18: base(message)
VsTestConsoleProcessManager.cs (1)
91throw new Exception(string.Format(CultureInfo.CurrentCulture, Resources.InvalidFilePath, vstestConsolePath));
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.TestPlatform.Common (2)
Utilities\SimpleJSON.cs (2)
592throw new Exception("JSON Parse: Too many closing brackets"); 706throw new Exception("JSON Parse: Quotation marks seems to be messed up.");
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (5)
ObjectModel\TestRun.cs (2)
179throw new Exception(TrxLoggerResources.Common_MissingRunConfigInRun); 185throw new Exception(TrxLoggerResources.Common_MissingRunDeploymentRootInRunConfig);
Utility\EqtAssert.cs (1)
36throw new Exception(comment);
Utility\TrxFileHelper.cs (2)
162throw new Exception(string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.Common_CannotGetNextTimestampFileName, fileName, directoryName, timestampFormat)); 326throw new Exception(string.Format(CultureInfo.CurrentCulture, TrxLoggerResources.Common_CannotGetNextIterationName, originalName, baseDirectoryName));
Microsoft.VisualStudio.TestPlatform.ObjectModel (7)
Adapter\TestPlatformFormatException.cs (2)
33: base(message) 43: base(message)
Adapter\TestsCanceledException.cs (1)
32: base(message)
ExceptionConverter.cs (1)
17: base(message)
Navigation\PortablePdbReader.cs (1)
48throw new Exception("Given stream is not portable stream");
Nuget.Frameworks\FrameworkException.cs (1)
13: base(message)
RunSettings\SettingsException.cs (1)
32: base(message)
Microsoft.Web.XmlTransform (1)
XmlTransformationException.cs (1)
16: base(message) {
Mono.Cecil (2)
Mono.Cecil\GenericParameterResolver.cs (1)
70 throw new Exception ("Unexpected generic parameter.");
Mono.Cecil\MetadataResolver.cs (1)
54 : base ("Failed to resolve " + member.FullName)
Mono.Cecil.Mdb (1)
Mono.CompilerServices.SymbolWriter\MonoSymbolFile.cs (1)
46 : base (String.Format (message, args))
Mono.Cecil.Pdb (2)
Microsoft.Cci.Pdb\PdbScope.cs (2)
107throw new Exception("Not at S_END"); 116throw new Exception("Missing S_END");
MSBuild (2)
CommandLine\CommandLineSwitchException.cs (1)
28base(message)
InitializationException.cs (1)
34base(message)
NuGet.CommandLine.XPlat (2)
Commands\Package\Update\PackageUpdateIO.cs (1)
123if (process is null) throw new System.Exception("Unexpected error starting child process. Process.Start returned null.");
Commands\PushCommand.cs (1)
166throw new AggregateException(ex, new Exception(Strings.Push_Timeout_Error));
NuGet.Commands (6)
Common\CommandException.cs (2)
20: base(message) 25: base(string.Format(CultureInfo.CurrentCulture, format, args))
RestoreCommand\RestoreCommandException.cs (1)
19: base(logMessage?.Message)
RestoreCommand\Utility\PackageSpecFactory.cs (2)
202if (projectName is null) throw new Exception("Something went wrong. MSBuildProjectName should always have a value, but did not."); 556throw new Exception("Something went wrong. MSBuildProjectName should always have a value, but did not.");
SignCommand\SignCommandException.cs (1)
19: base(logMessage?.Message)
NuGet.Common (1)
CommandLineArgumentCombinationException.cs (1)
13: base(message)
NuGet.Configuration (1)
Exceptions\NuGetConfigurationException.cs (1)
13: base(message)
NuGet.Credentials (2)
PluginException.cs (1)
26public PluginException(string? message) : base(message) { }
ProviderException.cs (1)
29public ProviderException(string? message) : base(message)
NuGet.Frameworks (1)
FrameworkException.cs (1)
13: base(message)
NuGet.PackageManagement (1)
Utility\PackageAlreadyInstalledException.cs (1)
14: base(message)
NuGet.Packaging (8)
ContentModel\Infrastructure\Parser.cs (1)
180throw new Exception(string.Format(CultureInfo.CurrentCulture, "Unable to find property definition for {{{0}}}", _token));
ContentModel\SelectionCriteriaBuilder.cs (3)
50throw new Exception("Undefined property used for criteria"); 65throw new Exception("Undefined value used for criteria"); 79throw new Exception("Undefined property used for criteria");
Core\PackagingException.cs (2)
14: base(message) 20: base(message)
Licenses\NuGetLicenseExpressionParsingException.cs (1)
13: base(message)
PackageCreation\Authoring\Manifest.cs (1)
288throw new Exception(message);
NuGet.ProjectModel (3)
FileFormatException.cs (1)
14: base(message)
ProjectLockFile\PackagesLockFileUtilities.cs (2)
268throw new Exception(string.Format(CultureInfo.CurrentCulture, Strings.PackagesLockFile_RestoreMetadataMissingTfms)); 283throw new Exception(string.Format(
NuGet.Protocol (3)
Exceptions\NuGetProtocolException.cs (1)
16: base(message)
Plugins\PluginException.cs (1)
20: base(message)
Plugins\ProtocolException.cs (1)
20: base(message)
NuGet.Resolver (1)
Exceptions\NuGetResolverException.cs (1)
15: base(message)
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))); 734Exception compilerException = new Exception(message);
PresentationCore (7)
MS\Internal\TextFormatting\LineServicesCallbacks.cs (1)
3395Exception e = new System.Exception(SR.NonCLSException);
src\wpf\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)
643throw 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\wpf\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)
1271throw 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))); 595throw new Exception(SR.Format(SR.LoopDetected, _currentCleanSource)); 2629throw new Exception(SR.Format(SR.GetResponseFailed, requestUri.ToString())); 2862throw new Exception(SR.Format(SR.GetStreamFailed, requestUri.ToString()));
System\Windows\Standard\NativeMethods.cs (1)
1545throw 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)
ReachFramework (1)
Exceptions\XpsException.cs (1)
35: base(message)
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
70FatalError.ReportNonFatalError(new Exception("The SynchronizationContext was changed since it was applied."));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
183: base(message)
rzc (3)
CommandLine\CommandParsingException.cs (1)
9: base(message)
ConnectionHost.cs (1)
70throw new Exception("Insufficient resources to process new connection.");
Program.cs (1)
75throw new Exception($"Found a version of {assembly.Name} that was lower than the target version of {assembly.Version}");
ScenarioTests.Common.Tests (2)
ScenarioTestTypes.cs (2)
710throw new Exception(input); 1283throw new Exception
sdk-tasks (4)
ReplaceFileContents.cs (3)
49throw new Exception($"ReplaceFileContents was called with no replacement values. Either pass ReplacementItems or ReplacementPatterns/ReplacementStrings properties."); 58throw new Exception($"Expected {nameof(ReplacementPatterns)} (length {ReplacementPatterns.Length}) and {nameof(ReplacementStrings)} (length {ReplacementStrings.Length}) to have the same length."); 63throw new Exception($"Expected {nameof(InputFiles)} (length {InputFiles.Length}) and {nameof(DestinationFiles)} (length {DestinationFiles.Length}) to have the same length.");
ZipFileCreateFromDirectory.cs (1)
118throw new Exception(string.Format("'{0}' is not a subdirectory of '{1}'.", subdirectory, root));
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.");
SuperFileCheck (1)
Program.cs (1)
20public SuperFileCheckException(string message): 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\runtime\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)
63throw new Exception(SR.Diagnostic_InternalExceptionMessage); 124throw new Exception(SR.Expecting_Empty_Queue); 240throw new Exception(SR.Expecting_Generic_Type); 262throw new Exception(SR.Expecting_AtleastOne_Type); 299throw new Exception(SR.Expecting_Empty_Queue); 343throw 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)
220throw 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)
67throw 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\runtime\src\libraries\Common\src\System\Composition\Diagnostics\CompositionTrace.cs (2)
13throw new Exception(SR.Diagnostic_InternalExceptionMessage); 26throw new Exception(SR.Diagnostic_InternalExceptionMessage);
src\runtime\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\runtime\src\libraries\Common\src\System\Composition\Diagnostics\CompositionTrace.cs (2)
13throw new Exception(SR.Diagnostic_InternalExceptionMessage); 26throw new Exception(SR.Diagnostic_InternalExceptionMessage);
src\runtime\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.Diagnostics.EventLog (1)
System\Diagnostics\Reader\EventLogException.cs (1)
52public EventLogException(string? message) : base(message) { }
System.DirectoryServices (8)
System\DirectoryServices\ActiveDirectory\Exception.cs (8)
38public ActiveDirectoryObjectNotFoundException(string? message, Type? type, string? name) : base(message) 46public ActiveDirectoryObjectNotFoundException(string? message) : base(message) { } 95public ActiveDirectoryOperationException(string? message, int errorCode) : base(message ?? SR.DSUnknownFailure) 102public ActiveDirectoryOperationException(string? message) : base(message ?? SR.DSUnknownFailure) { } 104public ActiveDirectoryOperationException() : base(SR.DSUnknownFailure) { } 136public ActiveDirectoryServerDownException(string? message, int errorCode, string? name) : base(message) 144public ActiveDirectoryServerDownException(string? message) : base(message) { } 189public ActiveDirectoryObjectExistsException(string? message) : base(message) { }
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\common\DirectoryException.cs (1)
26public DirectoryException(string message) : 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\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecodingException.cs (1)
17public HPackDecodingException(string message) : base(message)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackEncodingException.cs (1)
13: base(message)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HuffmanDecodingException.cs (1)
18: base(message)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecodingException.cs (1)
16public QPackDecodingException(string message) : base(message)
src\runtime\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.Http.WinHttpHandler (1)
System\Net\Http\CachedCertificateValue.cs (1)
40throw new Exception("Unreachable");
System.Net.Mail (5)
System\Net\Mail\SmtpException.cs (5)
79public SmtpException(SmtpStatusCode statusCode) : base(GetMessageForStatus(statusCode)) 84public SmtpException(SmtpStatusCode statusCode, string? message) : base(message) 93public SmtpException(string? message) : base(message) 108internal SmtpException(SmtpStatusCode statusCode, string? serverMessage, bool _) : base(GetMessageForStatus(statusCode, serverMessage)) 113internal SmtpException(string message, string? serverResponse) : base(message + " " + SR.Format(SR.MailServerResponse, serverResponse))
System.Net.Security (4)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssApiException.cs (3)
28public GssApiException(string message) : base(message) 33: base(GetGssApiDisplayStatus(majorStatus, minorStatus, null)) 40: base(GetGssApiDisplayStatus(majorStatus, minorStatus, helpText))
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
1440: base(inputMessage)
System.Private.CoreLib (18)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
43: base(message ?? SR.AggregateException_ctor_DefaultMessage)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ApplicationException.cs (2)
26: base(SR.Arg_ApplicationException) 36: base(message)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebugProvider.cs (1)
80base(Terminate(message) + Terminate(detailMessage) + stackTrace)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\UnreachableException.cs (2)
15: base(SR.Arg_UnreachableException) 25: base(message ?? SR.Arg_UnreachableException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\InvalidTimeZoneException.cs (1)
19: base(message)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeWrappedException.cs (1)
21: base(SR.RuntimeWrappedException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SystemException.cs (2)
15: base(SR.Arg_SystemException) 21: base(message)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LockRecursionException.cs (1)
19: base(message)
src\runtime\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\runtime\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.TypeLoader (1)
Internal\Runtime\TypeLoader\TypeBuilder.cs (1)
45: base("Template is missing") { }
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)
1663: base(SR.Format(SR.CodeGenConvertError, reason, sourceType.ToString(), targetType.ToString()))
System\Xml\Serialization\Compilation.cs (1)
176throw new Exception(SR.Format(SR.FailLoadAssemblyUnderPregenMode, serializerName));
System.Reflection.Metadata (1)
System\Reflection\Metadata\ImageFormatLimitationException.cs (1)
16: base(message)
System.Runtime.InteropServices.JavaScript (2)
System\Runtime\InteropServices\JavaScript\JSException.cs (2)
22public JSException(string msg) : base(msg) 28internal JSException(string msg, JSObject? jsException) : base(msg)
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 (6)
Internals\System\Runtime\FatalException.cs (1)
13public FatalException(string message) : base(message) { }
System\IdentityModel\SecurityMessageSerializationException.cs (1)
14public SecurityMessageSerializationException(string message) : base(message) { }
System\IdentityModel\Tokens\SecurityTokenException.cs (1)
13public SecurityTokenException(string message) : base(message) { }
System\ServiceModel\CommunicationException.cs (1)
13public CommunicationException(string message) : base(message) { }
System\ServiceModel\InvalidMessageContractException.cs (1)
13public InvalidMessageContractException(string message) : base(message) { }
System\ServiceModel\QuotaExceededException.cs (1)
13public QuotaExceededException(string message) : base(message) { }
System.ServiceModel.Primitives.Tests (1)
Security\SecurityNegotiationExceptionTest.cs (1)
20Exception innerException = new Exception(exceptionMessage);
System.Speech (1)
Internal\Synthesis\AudioException.cs (1)
16internal AudioException(Interop.WinMM.MMSYSERR errorCode) : base(string.Format(System.Globalization.CultureInfo.InvariantCulture, "{0} - Error Code: 0x{1:x}", SR.Get(SRID.AudioDeviceError), (int)errorCode))
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.Xaml (2)
System\Xaml\Parser\GenericTypeNameParser.cs (1)
17: base(message)
System\Xaml\XamlException.cs (1)
62:base(message) { }
testhost (1)
src\vstest\src\testhost.x86\DebugAssertException.cs (1)
10public DebugAssertException(string? message, string? stackTrace) : base(message)
testhost.arm64 (1)
src\vstest\src\testhost.x86\DebugAssertException.cs (1)
10public DebugAssertException(string? message, string? stackTrace) : base(message)
testhost.x86 (1)
DebugAssertException.cs (1)
10public DebugAssertException(string? message, string? stackTrace) : base(message)
UIAutomationTypes (3)
src\wpf\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 (3)
src\roslyn\src\Compilers\Server\VBCSCompiler\BuildServerController.cs (2)
110throw new Exception("Cannot calculate pipe name"); 162throw new Exception("Cannot calculate pipe name");
src\roslyn\src\Compilers\Server\VBCSCompiler\NamedPipeClientConnection.cs (1)
61throw new Exception("Client identity does not match server identity.");
vstest.console (1)
CommandLine\CommandLineException.cs (1)
26: base(message)
vstest.console.arm64 (1)
src\vstest\src\vstest.console\CommandLine\CommandLineException.cs (1)
26: base(message)