259 references to Exception
aspire (5)
Exceptions\ChannelNotFoundException.cs (1)
17: base(message, innerException)
Exceptions\DotNetSdkNotInstalledException.cs (1)
22: base(message, innerException)
Exceptions\ProjectAlreadyExistsException.cs (1)
22: base(message, innerException)
Projects\AppHostCodeGenerationException.cs (1)
20: base(message, innerException)
Projects\ProjectUpdater.cs (1)
1555public ProjectUpdaterException(string message, System.Exception inner) : base(message, inner) { }
Aspire.Hosting (1)
DistributedApplicationException.cs (1)
32public DistributedApplicationException(string message, Exception inner) : base(message, inner) { }
Aspire.Hosting.Azure (1)
AzureProvisioningFailureDetails.cs (1)
814: base(failureDetails.ToCommandMessage(), innerException)
Aspire.Hosting.RemoteHost (2)
Ats\CapabilityException.cs (1)
28: base(error.Message, innerException)
Ats\PolyglotCapabilityInvocationException.cs (1)
24: base(message, innerException)
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\BuildErrorException.cs (1)
22public BuildErrorException(string message, Exception innerException) : base(message, innerException)
csc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
284throw new Exception(message, e);
dotnet (10)
BuildServer\BuildServerException.cs (1)
18public BuildServerException(string message, Exception innerException) : base(message, innerException)
Commands\New\MSBuildEvaluation\ProjectCapabilityConstraint.cs (3)
39throw new Exception(string.Format(CliCommandStrings.ProjectCapabilityConstraintFactory_Exception_EvaluationFailed, Type, e.Message), e); 81throw new Exception($"{CliCommandStrings.ProjectCapabilityConstraint_Error_InvalidConstraintConfiguration}:{CliCommandStrings.ProjectCapabilityConstraint_Error_InvalidJson}.", e); 154throw new Exception($"{CliCommandStrings.ProjectCapabilityConstraint_Error_InvalidConstraintConfiguration}:{ae.Message}.", ae);
Commands\Workload\Install\FileBasedInstaller.cs (2)
125throw new Exception(string.Format(CliCommandStrings.FailedToInstallWorkloadSet, workloadSetVersion, ex.Message), ex); 302throw new Exception(string.Format(CliCommandStrings.FailedToInstallWorkloadManifest, manifestUpdate.ManifestId, manifestUpdate.NewVersion, e.Message), e);
Commands\Workload\WorkloadException.cs (1)
29public WorkloadException(string? message, Exception? innerException) : base(message, innerException)
ShellShim\ShellShimException.cs (1)
18public ShellShimException(string message, Exception innerException) : base(message, innerException)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.11.0-1.26425.101\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
284throw new Exception(message, e);
ToolPackage\ToolConfigurationException.cs (1)
18public ToolConfigurationException(string message, Exception innerException) : base(message, innerException)
dotnet-getdocument (1)
src\aspnetcore\src\Tools\GetDocumentInsider\src\CommandException.cs (1)
16: base(message, innerException)
dotnet-suggest (1)
SuggestionShellScriptException.cs (1)
16public SuggestionShellScriptException(string message, Exception innerException) : base(message, innerException)
dotnet-svcutil-lib (18)
FrameworkFork\Microsoft.CodeDom\Configuration\ConfigurationErrorsException.cs (1)
19public ConfigurationErrorsException(string message, Exception innerException) : base(message, innerException)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaException.cs (1)
89base(CreateMessage(res, args), innerException)
FrameworkFork\Microsoft.Xml\Xml\XmlException.cs (2)
57base(FormatUserMessage(message, lineNumber, linePosition), innerException) 129base(CreateMessage(res, args, lineNumber, linePosition), innerException)
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathException.cs (1)
61base(CreateMessage(res, args), inner)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\InvalidDataContractException.cs (1)
20public InvalidDataContractException(String message, Exception innerException) : base(message, innerException)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SerializationException.cs (1)
14: base(message, innerException)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\FatalException.cs (1)
16public FatalException(string message, Exception innerException) : base(message, innerException)
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityMessageSerializationException.cs (1)
20: base(message, innerException)
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityTokenException.cs (1)
20: base(message, innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\InvalidChannelBindingException.cs (1)
13public InvalidChannelBindingException(string message, Exception innerException) : base(message, innerException) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\CommunicationException.cs (1)
11public CommunicationException(string message, Exception innerException) : base(message, innerException) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (1)
1927: base(string.Empty, innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InvalidBodyAccessException.cs (1)
15: base(message, innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\InvalidMessageContractException.cs (1)
23: base(message, innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\QuotaExceededException.cs (1)
23: base(message, innerException)
Metadata\MetadataExchangeException.cs (1)
18public MetadataExchangeException(string message, Exception innerException) : base(message, innerException) { }
ToolRuntimeException.cs (1)
21public ToolRuntimeException(String message, Exception innerException) : base(message, innerException)
GetDocument.Insider (1)
CommandException.cs (1)
16: base(message, innerException)
ILCompiler.Compiler (2)
Compiler\Logging\NativeAotFatalErrorException.cs (1)
31: base(message.ToString(), innerException)
src\runtime\src\coreclr\tools\Common\Compiler\InternalCompilerErrorException.cs (1)
16: base(message, innerException)
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\Compiler\InternalCompilerErrorException.cs (1)
16: base(message, innerException)
illink (2)
Microsoft.AspNetCore.Antiforgery (1)
AntiforgeryValidationException.cs (1)
28: base(message, innerException)
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationFailureException.cs (1)
29: base(message, innerException)
Microsoft.AspNetCore.Components (2)
LocationChangeException.cs (1)
17: base(message, innerException)
src\aspnetcore\src\Http\Routing\src\RouteCreationException.cs (1)
31: base(message, innerException)
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\FormDataMappingException.cs (1)
11: base(FormDataResources.MappingExceptionMessage, innerException)
Microsoft.AspNetCore.Components.Server (1)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackSerializationException.cs (1)
42: base(message, inner)
Microsoft.AspNetCore.Http.Connections.Client (1)
TransportFailedException.cs (1)
25: base($"{transportType} failed: {message}", innerException)
Microsoft.AspNetCore.Http.Extensions (1)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataMappingException.cs (1)
11: base(FormDataResources.MappingExceptionMessage, innerException)
Microsoft.AspNetCore.Identity (1)
PasskeyException.cs (1)
23: base(message, innerException)
Microsoft.AspNetCore.JsonPatch (2)
Exceptions\JsonPatchException.cs (2)
19: base(jsonPatchError.ErrorMessage, innerException) 31: base(message, innerException)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Exceptions\JsonPatchException.cs (2)
19: base(jsonPatchError.ErrorMessage, innerException) 31: base(message, innerException)
Microsoft.AspNetCore.Mvc.Abstractions (2)
Formatters\InputFormatterException.cs (1)
34: base(message, innerException)
ModelBinding\ValueProviderException.cs (1)
27: base(message, innerException)
Microsoft.AspNetCore.Routing (1)
RouteCreationException.cs (1)
31: base(message, innerException)
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\Http3\Http3PendingStreamException.cs (1)
9: base($"HTTP/3 stream error while trying to identify stream {streamId}: {message}", innerException)
src\aspnetcore\src\Shared\runtime\Http2\Hpack\HPackDecodingException.cs (1)
21public HPackDecodingException(string message, Exception innerException) : base(message, innerException)
src\aspnetcore\src\Shared\runtime\Http2\Hpack\HPackEncodingException.cs (1)
18: base(message, innerException)
src\aspnetcore\src\Shared\runtime\Http3\QPack\QPackDecodingException.cs (1)
20public QPackDecodingException(string message, Exception innerException) : base(message, innerException)
src\aspnetcore\src\Shared\runtime\Http3\QPack\QPackEncodingException.cs (1)
17: base(message, innerException)
Microsoft.AspNetCore.SignalR.Common (1)
HubException.cs (1)
41public HubException(string? message, Exception? innerException) : base(message, innerException)
Microsoft.Build (3)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
941throw new Exception(taskException.Message, taskException);
BuildCheck\Infrastructure\BuildCheckConfigurationException.cs (2)
16public BuildCheckConfigurationException(string message, Exception innerException, BuildCheckConfigurationErrorScope buildCheckConfigurationErrorScope = BuildCheckConfigurationErrorScope.SingleRule) : base(message, innerException) 26public BuildCheckConfigurationException(string message, Exception innerException) : base(message, innerException)
Microsoft.Build.Framework (2)
BuildException\BuildExceptionBase.cs (1)
29: base(message, inner)
Telemetry\CrashTelemetryRecorder.cs (1)
190: base(CrashTelemetry.TruncateMessage(original.Message) ?? original.GetType().FullName,
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
284throw new Exception(message, e);
Microsoft.Build.Tasks.Core (6)
AssemblyDependency\BadImageReferenceException.cs (1)
20: base(message, innerException)
AssemblyDependency\DependencyResolutionException.cs (1)
20: base(message, innerException)
AssemblyDependency\ReferenceResolutionException.cs (1)
20: base(message, innerException)
InvalidParameterValueException.cs (1)
32: base(message, innerException)
ResourceHandling\InputFormatNotSupportedException.cs (1)
22public InputFormatNotSupportedException(string message, Exception innerException) : base(message, innerException)
ResourceHandling\MSBuildResXException.cs (1)
21public MSBuildResXException(string message, Exception innerException) : base(message, innerException)
Microsoft.CodeAnalysis (6)
DiaSymReader\Writer\SymUnmanagedWriterException.cs (2)
30: base(message, innerException) 35: base(message, innerException)
PEWriter\PeWriter.cs (1)
30: base(inner.Message, inner)
ResourceException.cs (1)
12: base(name, inner)
RuleSet\InvalidRuleSetException.cs (1)
18public InvalidRuleSetException(string message, Exception inner) : base(message, inner) { }
SourceGeneration\UserFunction.cs (1)
19: base("User provided code threw an exception", innerException)
Microsoft.CodeAnalysis.CSharp (1)
BoundTree\BoundTreeVisitors.cs (1)
168: base(inner.Message, inner)
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
1020public CompilationTrackerValidationException(string message, Exception inner) : base(message, inner) { }
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\BuildHostProcessManager.cs (1)
134throw new Exception($"The build host was started but we were unable to connect to it's pipe. The process exited with {process.ExitCode}. Process output:{Environment.NewLine}{buildHostProcess.GetBuildHostProcessOutput()}", innerException: e);
Rpc\RpcClient.cs (1)
97completionSource.SetException(new Exception("Unable to deserialize the result", ex));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Rpc\RpcServer.cs (1)
106throw new Exception($"Failure while deserializing '{line}'", innerException: e);
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderException.cs (1)
41: base(message, innerException)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderInternalCompilerException.cs (1)
41: base(message, innerException)
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
VirtualReadException.cs (1)
35public VirtualReadException(string message, Exception innerException) : base(message, innerException)
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsClient\DiagnosticsClientExceptions.cs (1)
11public DiagnosticsClientException(string msg, Exception exception) : base(msg, exception) { }
Microsoft.DiaSymReader (2)
Writer\SymUnmanagedWriterException.cs (2)
28: base(message, innerException) 33: base(message, innerException)
Microsoft.DotNet.ApiCompat.Task (1)
src\sdk\src\Tasks\Common\BuildErrorException.cs (1)
22public BuildErrorException(string message, Exception innerException) : base(message, innerException)
Microsoft.DotNet.Cli.CoreUtils (1)
GracefulException.cs (1)
35public GracefulException(string message, Exception? innerException = null, bool isUserError = true) : base(message, innerException)
Microsoft.DotNet.Cli.Utils (1)
FilePermissionSettingException.cs (1)
16public FilePermissionSettingException(string message, Exception innerException) : base(message, innerException)
Microsoft.DotNet.Configurer (1)
ConfigurationException.cs (1)
16public ConfigurationException(string message, Exception innerException) : base(message, innerException)
Microsoft.DotNet.HotReload.Utils.Generator (1)
DiffyException.cs (1)
19public DiffyException (string message, Exception innerException, int exitStatus) : base (message, innerException) {
Microsoft.DotNet.TemplateLocator (2)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.JsonReader.cs (1)
89public JsonFormatException(string message, Exception inner) : base(message, inner) { }
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestFormatException.cs (1)
27protected WorkloadManifestException(string message, Exception inner) : base(message, inner) { }
Microsoft.Extensions.Diagnostics.ExceptionSummarization.Tests (7)
ExceptionSummarizerTests.cs (5)
83var exception = new Exception("test", new WebException("Error", (WebExceptionStatus)30)); 161var exception = new Exception("test", new WebException("test", WebExceptionStatus.RequestCanceled)); 185var exception = new Exception("test", new SocketException((int)SocketError.TimedOut)); 220var exception = new Exception("test", ex); 244var exception = new Exception("test", new TaskCanceledException());
TestException.cs (2)
20: base(message, innerException) 25: base(message, innerException)
Microsoft.Extensions.Hosting.Abstractions (1)
HostAbortedException.cs (1)
55public HostAbortedException(string? message, Exception? innerException) : base(message ?? SR.HostAbortedExceptionMessage, innerException) { }
Microsoft.Extensions.VectorData.Abstractions (1)
VectorStoreException.cs (1)
35: base(message, innerException)
Microsoft.JSInterop (1)
JSException.cs (1)
24public JSException(string message, Exception innerException) : base(message, innerException)
Microsoft.Maui (2)
Handlers\HybridWebView\HybridWebViewInvokeJavaScriptException.cs (1)
20 : base(message, innerException)
Platform\HandlerNotFoundException.cs (1)
24 public HandlerNotFoundException(string message, Exception innerException) : base(message, innerException)
Microsoft.Maui.Controls (5)
Internals\ImageParser.cs (1)
26 public GIFDecoderFormatException(string message, Exception innerException) : base(message, innerException)
InvalidNavigationException.cs (1)
24 : base(message, innerException)
UnsolvableConstraintsException.cs (1)
23 : base(message, innerException)
XamlParseException.cs (2)
26 : base(message, innerException) 46 : base(FormatMessage(message, xmlInfo), innerException)
Microsoft.Maui.Controls.Build.Tasks (1)
BuildException.cs (1)
19 : base(FormatMessage(code, xmlInfo, args), innerException)
Microsoft.Maui.Controls.SourceGen (2)
src\Controls\src\Core\XamlParseException.cs (2)
26 : base(message, innerException) 46 : base(FormatMessage(message, xmlInfo), innerException)
Microsoft.Maui.Graphics (1)
PathBuilder.cs (1)
55 throw new Exception("Error parsing a path value.", exc);
Microsoft.ML.AutoML (1)
API\InferenceException.cs (1)
41: base(message, inner)
Microsoft.NET.Build.Containers (3)
Credentials\CredentialRetrievalException.cs (1)
11: base(
DockerLoadException.cs (1)
17public DockerLoadException(string? message, Exception? innerException) : base(message, innerException)
Exceptions\InvalidAuthResponseException.cs (1)
15: base(Resource.FormatString(nameof(Strings.InvalidRegistryAuthResponse), registry, reason), innerException)
Microsoft.NET.Build.Extensions.Tasks (1)
src\sdk\src\Tasks\Common\BuildErrorException.cs (1)
22public BuildErrorException(string message, Exception innerException) : base(message, innerException)
Microsoft.NET.Build.Tasks (3)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.JsonReader.cs (1)
89public JsonFormatException(string message, Exception inner) : base(message, inner) { }
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestFormatException.cs (1)
27protected WorkloadManifestException(string message, Exception inner) : base(message, inner) { }
src\sdk\src\Tasks\Common\BuildErrorException.cs (1)
22public BuildErrorException(string message, Exception innerException) : base(message, innerException)
Microsoft.NET.HostModel (2)
ComHost\InvalidTypeLibraryException.cs (1)
19:base($"Invalid type library at '{path}'.", innerException)
ComHost\TypeLibraryDoesNotExistException.cs (1)
14:base($"Type library '{path}' does not exist.", innerException)
Microsoft.NET.Sdk.Publish.Tasks (3)
Tasks\Xdt\TransformXml.cs (3)
193throw new Exception( 217throw new Exception( 235throw new Exception(
Microsoft.NET.Sdk.WorkloadManifestReader (2)
SdkDirectoryWorkloadManifestProvider.JsonReader.cs (1)
89public JsonFormatException(string message, Exception inner) : base(message, inner) { }
WorkloadManifestFormatException.cs (1)
27protected WorkloadManifestException(string message, Exception inner) : base(message, inner) { }
Microsoft.TemplateEngine.Cli (1)
TemplatePackageCoordinator.cs (1)
873throw new Exception(string.Format(LocalizableStrings.DetailsCommand_UnableToLoadResources, currentDirectory), ex);
Microsoft.TemplateEngine.Edge (5)
Constraints\ConfigurationException.cs (1)
17public ConfigurationException(string message, Exception innerException) : base(message, innerException)
Installers\NuGet\Exceptions\DownloadException.cs (1)
22public DownloadException(string packageIdentifier, string packageVersion, IEnumerable<string> attemptedSources, Exception inner) : base($"Failed to download {packageIdentifier}@{packageVersion} from NuGet feeds {string.Join(";", attemptedSources)}", inner)
Installers\NuGet\Exceptions\InvalidNuGetPackageException.cs (1)
13public InvalidNuGetPackageException(string packagePath, Exception innerException) : base($"The NuGet package {packagePath} is invalid.", innerException)
Installers\NuGet\Exceptions\InvalidNuGetSourceException.cs (2)
16public InvalidNuGetSourceException(string message, Exception inner) : base(message, inner) { } 19: base(message + ", attempted sources: " + string.Join(", ", sources) + ".", inner)
Microsoft.TemplateEngine.Utils (3)
ContentGenerationException.cs (1)
14: base(message, innerException)
EngineInitializationException.cs (1)
15: base(message, innerException)
TemplateAuthoringException.cs (1)
19: base(message, innerException)
Microsoft.TestPlatform.CommunicationUtilities (3)
Interfaces\Communication\CommunicationException.cs (1)
37: base(message, inner)
Json\Jsonite\Jsonite.cs (1)
1378public JsonException(int offset, int line, int column, string message, Exception inner = null) : base(message, inner)
Serialization\ExceptionConverter.cs (1)
120: base(message, innerException)
Microsoft.TestPlatform.CrossPlatEngine (1)
Execution\BaseRunTests.cs (1)
231exception = new Exception(realException.Message, realException);
Microsoft.TestPlatform.PlatformAbstractions (1)
Interfaces\System\ThreadApartmentStateNotSupportedException.cs (1)
38: base(message, innerException)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (2)
TransationLayerException.cs (1)
28: base(message, innerException)
VsTestConsoleProcessManager.cs (1)
174throw new Exception(string.Format(CultureInfo.CurrentCulture, InternalResources.ProcessStartWin32Failure, consoleRunnerPath, arguments), ex);
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\FileIO\MalformedLineException.vb (2)
56MyBase.New(message, innerException) 67MyBase.New(message, innerException)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (2)
XML\XmlPersistence.cs (2)
53: base(message, innerException) 836throw new Exception($"The persistence location is invalid. Element: '{element.Name}', location: '{location}'", e);
Microsoft.VisualStudio.TestPlatform.ObjectModel (4)
Adapter\TestPlatformFormatException.cs (1)
54: base(message, innerException)
Adapter\TestsCanceledException.cs (1)
42: base(message, innerException)
ExceptionConverter.cs (1)
22: base(message, innerException)
RunSettings\SettingsException.cs (1)
42: base(message, innerException)
Microsoft.Web.XmlTransform (1)
XmlTransformationException.cs (1)
20: base(message, innerException) {
Mono.Cecil (1)
Mono.Cecil\MetadataResolver.cs (1)
63 : base ("Failed to resolve " + member.FullName, innerException)
Mono.Cecil.Mdb (1)
Mono.CompilerServices.SymbolWriter\MonoSymbolFile.cs (1)
51 : base (message, innerException)
NuGet.Commands (2)
Common\CommandException.cs (1)
30: base(message, exception)
RestoreCommand\RequestFactory\RestoreSpecException.cs (1)
21: base(message, innerException)
NuGet.Configuration (1)
Exceptions\NuGetConfigurationException.cs (1)
18: base(message, innerException)
NuGet.Credentials (2)
PluginException.cs (1)
33public PluginException(string? message, Exception? inner) : base(message, inner) { }
ProviderException.cs (1)
38public ProviderException(string? message, Exception? inner) : base(message, inner)
NuGet.Packaging (4)
Core\PackagingException.cs (2)
26: base(message, innerException) 32: base(message, innerException)
Licenses\NuGetLicenseExpressionParsingException.cs (1)
18: base(message, innerException)
NuGetExtractionFileIO.cs (1)
62throw new Exception($"Error trying to create file {path}: {exception.Message}", exception);
NuGet.ProjectModel (1)
FileFormatException.cs (1)
19: base(message, innerException)
NuGet.Protocol (3)
Exceptions\NuGetProtocolException.cs (1)
21: base(message, innerException)
Plugins\PluginException.cs (1)
30: base(message, innerException)
Plugins\ProtocolException.cs (1)
30: base(message, innerException)
PresentationFramework (5)
MS\Internal\AppModel\Journaling.cs (1)
679throw new Exception(SR.Format(SR.FailedResumePageFunction, this._typeName), ex);
MS\Internal\PtsHost\Pts.cs (1)
266internal SecondaryException(Exception e) : base(null, e) { }
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (1)
364e = new Exception(message, innerException);
System\Windows\Controls\PrintDialogException.cs (1)
49: base(message, innerException)
System\Windows\Documents\MsSpellCheckLib\Utils\RetryHelper.cs (1)
313internal RetriesExhaustedException(string message, Exception innerException) : base(message, innerException) { }
PresentationUI (1)
MS\Internal\Documents\Application\XpsViewerException.cs (1)
57: base(message, innerException)
ReachFramework (1)
Exceptions\XpsException.cs (1)
49: base(message, innerException)
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\ValidationException.cs (1)
69: base(message, innerException)
System.ComponentModel.Composition (4)
System\ComponentModel\Composition\CompositionContractMismatchException.cs (1)
55: base(message, innerException)
System\ComponentModel\Composition\CompositionException.cs (1)
92: base(message, innerException)
System\ComponentModel\Composition\ImportCardinalityMismatchException.cs (1)
58: base(message, innerException)
System\ComponentModel\Composition\Primitives\ComposablePartException.cs (1)
136: base(message, innerException)
System.Composition.Runtime (1)
System\Composition\Hosting\CompositionFailedException.cs (1)
34: base(message ?? SR.CompositionFailedDefaultExceptionMessage, innerException)
System.Configuration.ConfigurationManager (4)
System\Configuration\Provider\ProviderException.cs (1)
20: base(message, innerException)
System\Configuration\SettingsPropertyIsReadOnlyException.cs (1)
19: base(message, innerException)
System\Configuration\SettingsPropertyNotFoundException.cs (1)
19: base(message, innerException)
System\Configuration\SettingsPropertyWrongTypeException.cs (1)
19: base(message, innerException)
System.Diagnostics.EventLog (1)
System\Diagnostics\Reader\EventLogException.cs (1)
53public EventLogException(string? message, Exception? innerException) : base(message, innerException) { }
System.DirectoryServices (6)
System\DirectoryServices\ActiveDirectory\Exception.cs (6)
44public ActiveDirectoryObjectNotFoundException(string? message, Exception? inner) : base(message, inner) { } 90public ActiveDirectoryOperationException(string? message, Exception? inner, int errorCode) : base(message ?? SR.DSUnknownFailure, inner) 100public ActiveDirectoryOperationException(string? message, Exception? inner) : base(message ?? SR.DSUnknownFailure, inner) { } 130public ActiveDirectoryServerDownException(string? message, Exception? inner, int errorCode, string? name) : base(message, inner) 142public ActiveDirectoryServerDownException(string? message, Exception? inner) : base(message, inner) { } 187public ActiveDirectoryObjectExistsException(string? message, Exception? inner) : base(message, inner) { }
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\common\DirectoryException.cs (1)
22public DirectoryException(string message, Exception inner) : base(message, inner)
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnContentException.cs (1)
45: base(message ?? SR.ContentException_DefaultMessage, inner)
System.Formats.Cbor (1)
System\Formats\Cbor\CborContentException.cs (1)
30: base(message ?? SR.CborContentException_DefaultMessage, inner)
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorageException.cs (1)
33: base(message ?? SR.IsolatedStorage_Exception, inner)
System.Net.Http (5)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecodingException.cs (1)
21public HPackDecodingException(string message, Exception innerException) : base(message, innerException)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackEncodingException.cs (1)
18: base(message, innerException)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecodingException.cs (1)
20public QPackDecodingException(string message, Exception innerException) : base(message, innerException)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackEncodingException.cs (1)
17: base(message, innerException)
System\Net\Http\HttpRequestException.cs (1)
18: base(message, inner)
System.Net.Mail (1)
System\Net\Mail\SmtpException.cs (1)
97public SmtpException(string? message, Exception? innerException) : base(message, innerException)
System.Net.Security (1)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
1445: base(inputMessage, ex)
System.Private.CoreLib (15)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (3)
57: base(message ?? SR.AggregateException_ctor_DefaultMessage, innerException) 123base(message ?? SR.AggregateException_ctor_DefaultMessage, innerExceptions.Length > 0 ? innerExceptions[0] : null) 168: base(message, innerExceptionInfos.Count != 0 ? innerExceptionInfos[0].SourceException : null)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ApplicationException.cs (1)
42: base(message, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\ContractException.cs (1)
30: base(failure, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSourceException.cs (2)
31public EventSourceException(string? message, Exception? innerException) : base(message ?? SR.EventSource_ListenerWriteFailure, innerException) { } 41base(SR.EventSource_ListenerWriteFailure, innerException) { }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\UnreachableException.cs (1)
37: base(message ?? SR.Arg_UnreachableException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\InvalidTimeZoneException.cs (1)
24: base(message, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\AmbiguousImplementationException.cs (1)
26: base(message ?? SR.Arg_AmbiguousImplementationException_NoMessage, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SystemException.cs (1)
27: base(message, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LockRecursionException.cs (1)
24: base(message, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskSchedulerException.cs (2)
49: base(SR.TaskSchedulerException_ctor_DefaultMessage, innerException) 60public TaskSchedulerException(string? message, Exception? innerException) : base(message ?? SR.TaskSchedulerException_ctor_DefaultMessage, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneNotFoundException.cs (1)
24: base(message, innerException)
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\DataContract.cs (4)
438throw new Exception(ex.Message, ex); 917throw new Exception(ex.Message, ex); 935throw new Exception(ex.Message, ex); 947throw new Exception(ex.Message, ex);
System.Reflection.Metadata (1)
System\Reflection\Metadata\ImageFormatLimitationException.cs (1)
21: base(message, innerException)
System.Runtime.Serialization.Primitives (1)
System\Runtime\Serialization\InvalidDataContractException.cs (1)
25: base(message, innerException)
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\DiagnosticUtility.cs (1)
92return ThrowHelperError(new Exception(message, innerException));
System.ServiceModel.Primitives (7)
Internals\System\Runtime\FatalException.cs (1)
15public FatalException(string message, Exception innerException) : base(message, innerException)
System\IdentityModel\SecurityMessageSerializationException.cs (1)
17: base(message, innerException) { }
System\IdentityModel\Tokens\SecurityTokenException.cs (1)
14public SecurityTokenException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\CommunicationException.cs (1)
14public CommunicationException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\Dispatcher\InvalidBodyAccessException.cs (1)
13protected InvalidBodyAccessException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\InvalidMessageContractException.cs (1)
14public InvalidMessageContractException(String message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\QuotaExceededException.cs (1)
14public QuotaExceededException(string message, Exception innerException) : base(message, innerException) { }
System.Text.Json (2)
System\Text\Json\JsonException.cs (2)
30public JsonException(string? message, string? path, long? lineNumber, long? bytePositionInLine, Exception? innerException) : base(message, innerException) 61public JsonException(string? message, Exception? innerException) : base(message, innerException)
System.Threading (1)
System\Threading\Barrier.cs (1)
60: base(message is null ? SR.BarrierPostPhaseException : message, innerException)
System.Xaml (2)
System\Xaml\XamlException.cs (2)
15: base(message, innerException) 22: base(message, innerException)
UIAutomationTypes (2)
System\Windows\Automation\NoClickablePointException.cs (1)
38public NoClickablePointException(string message, Exception innerException) : base(message, innerException) {}
System\Windows\Automation\ProxyAssemblyNotLoadedException.cs (1)
43public ProxyAssemblyNotLoadedException(string message, Exception innerException) : base(message, innerException) {}
vbc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
284throw new Exception(message, e);
VBCSCompiler (2)
src\roslyn\src\Compilers\Server\VBCSCompiler\NamedPipeClientConnectionHost.cs (1)
148throw new Exception("Error occurred listening for connections", listenResult.Exception);
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
284throw new Exception(message, e);
vstest.console (2)
CommandLine\CommandLineException.cs (1)
36: base(message, innerException)
CommandLine\TestSourceException.cs (1)
36: base(message, innerException)
vstest.console.arm64 (2)
src\vstest\src\vstest.console\CommandLine\CommandLineException.cs (1)
36: base(message, innerException)
src\vstest\src\vstest.console\CommandLine\TestSourceException.cs (1)
36: base(message, innerException)