339 types derived from Exception
aspire (12)
Backchannel\AppHostIncompatibleException.cs (1)
6internal class AppHostIncompatibleException(string message, string requiredCapability, string? aspireHostingVersion = null) : Exception(message)
Backchannel\ExtensionIncompatibleException.cs (1)
6internal class ExtensionIncompatibleException(string message, string requiredCapability) : Exception(message)
Backchannel\FailedToConnectBackchannelConnection.cs (1)
6internal sealed class FailedToConnectBackchannelConnection(string message, Exception innerException) : Exception(message, innerException)
Certificates\CertificateGeneration\CertificateManager.cs (1)
1563internal sealed class UserCancelledTrustException : Exception
Certificates\CertificateService.cs (1)
135internal sealed class CertificateServiceException(string message) : Exception(message)
Exceptions\ChannelNotFoundException.cs (1)
9internal sealed class ChannelNotFoundException : Exception
Exceptions\DotNetSdkNotInstalledException.cs (1)
9internal sealed class DotNetSdkNotInstalledException : Exception
Exceptions\ProjectAlreadyExistsException.cs (1)
9internal sealed class ProjectAlreadyExistsException : Exception
Interaction\EmptyChoicesException.cs (1)
6internal sealed class EmptyChoicesException(string message) : Exception(message)
NuGet\NuGetPackageCache.cs (1)
162internal sealed class NuGetPackageCacheException(string message) : Exception(message)
Projects\ProjectLocator.cs (1)
496internal class ProjectLocatorException(string message, ProjectLocatorFailureReason failureReason) : System.Exception(message)
Projects\ProjectUpdater.cs (1)
1164internal sealed class ProjectUpdaterException : System.Exception
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\ToolCommandException.cs (1)
6public class ToolCommandException : Exception
Aspire.Hosting (1)
DistributedApplicationException.cs (1)
9public class DistributedApplicationException : Exception
Aspire.Hosting.Azure.Kusto.Tests (1)
KustoFunctionalTests.cs (1)
293private sealed class RetryableTestException(string message) : Exception(message)
Aspire.Hosting.RemoteHost (1)
Ats\CapabilityException.cs (1)
10internal sealed class CapabilityException : Exception
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\ToolCommandException.cs (1)
6public class ToolCommandException : Exception
crossgen2 (1)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
16internal sealed class CommandLineException : Exception
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\BuildErrorException.cs (1)
12internal class BuildErrorException : Exception
dotnet (7)
BuildServer\BuildServerException.cs (1)
8internal class BuildServerException : Exception
CommandNotAvailableInAotException.cs (1)
10internal sealed class CommandNotAvailableInAotException : Exception
CommandParsingException.cs (1)
8internal class CommandParsingException : Exception
Commands\Workload\WorkloadException.cs (1)
6internal class WorkloadException : Exception
ShellShim\ShellShimException.cs (1)
8internal class ShellShimException : Exception
ToolPackage\ResolverCacheInconsistentException.cs (1)
8internal class ResolverCacheInconsistentException(string message) : Exception(message)
ToolPackage\ToolConfigurationException.cs (1)
8internal class ToolConfigurationException : Exception
dotnet-dev-certs (2)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
1461internal sealed class UserCancelledTrustException : Exception
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
8internal sealed class CommandParsingException : Exception
dotnet-suggest (1)
SuggestionShellScriptException.cs (1)
6public class SuggestionShellScriptException : Exception
dotnet-svcutil-lib (24)
Bootstrapper\BootstrapException.cs (1)
12internal class BootstrapException : Exception
FrameworkFork\Microsoft.CodeDom\Configuration\ConfigurationErrorsException.cs (1)
9internal class ConfigurationErrorsException : Exception
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (1)
23internal class UpaException : Exception
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaException.cs (1)
17public class XmlSchemaException : System.Exception
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (1)
2889internal class CodeGeneratorConversionException : Exception
FrameworkFork\Microsoft.Xml\Xml\XmlException.cs (1)
19public class XmlException : System.Exception
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathException.cs (1)
16public class XPathException : System.Exception
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\InvalidDataContractException.cs (1)
10public class InvalidDataContractException : Exception
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SerializationException.cs (1)
9public class SerializationException : Exception
FrameworkFork\System.ServiceModel\Internals\System\Runtime\FatalException.cs (1)
7internal class FatalException : Exception
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (1)
1003internal class InternalException : Exception
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityMessageSerializationException.cs (1)
7public class SecurityMessageSerializationException : Exception
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityTokenException.cs (1)
7public class SecurityTokenException : Exception
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\InvalidChannelBindingException.cs (1)
9public class InvalidChannelBindingException : Exception
FrameworkFork\System.ServiceModel\System\ServiceModel\CommunicationException.cs (1)
7public class CommunicationException : Exception
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ImportedPolicyConversionContext.cs (1)
215internal class MaxItemsEnumeratorExceededMaxItemsException : Exception { }
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
1036internal class ParameterModeException : Exception
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (1)
1921private class WsdlImportException : Exception
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InvalidBodyAccessException.cs (1)
7internal abstract class InvalidBodyAccessException : Exception
FrameworkFork\System.ServiceModel\System\ServiceModel\InvalidMessageContractException.cs (1)
10public class InvalidMessageContractException : Exception
FrameworkFork\System.ServiceModel\System\ServiceModel\QuotaExceededException.cs (1)
10public class QuotaExceededException : Exception
Metadata\MetadataExchangeException.cs (1)
14public class MetadataExchangeException : Exception
Shared\Utilities\ProcessRunner.cs (1)
19public class ProcessException : Exception
ToolRuntimeException.cs (1)
9internal class ToolRuntimeException : Exception
dotnet-user-jwts (1)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
8internal sealed class CommandParsingException : Exception
dotnet-user-secrets (1)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandParsingException.cs (1)
8internal sealed class CommandParsingException : Exception
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
174private sealed class NonEquivalentTreeException : Exception
ilc (1)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (1)
16internal sealed class CommandLineException : Exception
ILCompiler.Compiler (2)
Compiler\Logging\NativeAotFatalErrorException.cs (1)
15public class NativeAotFatalErrorException : Exception
src\runtime\src\coreclr\tools\Common\Compiler\InternalCompilerErrorException.cs (1)
8public class InternalCompilerErrorException : Exception
ILCompiler.ReadyToRun (4)
IBC\IBCDataModel.cs (1)
11public class IBCException : Exception
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
468public class RequiresRuntimeJitException : Exception
src\runtime\src\coreclr\tools\Common\Compiler\InternalCompilerErrorException.cs (1)
8public class InternalCompilerErrorException : Exception
TypeSystem\Mutable\MutableModule.cs (1)
303class DisableNewTokensException : Exception { }
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\IBC\IBCDataModel.cs (1)
11public class IBCException : Exception
ILCompiler.TypeSystem (2)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemException.cs (1)
12public abstract partial class TypeSystemException : Exception
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemException.Resources.cs (1)
13public partial class TypeSystemException : Exception
illink (2)
Infrastructure.Tests (1)
PowerShellScripts\PowerShellCommand.cs (1)
289public class CommandException : Exception
Microsoft.Analyzers.Local (1)
ApiLifecycle\Json\JsonParseException.cs (1)
17public sealed class JsonParseException : Exception
Microsoft.AspNetCore.Antiforgery (1)
AntiforgeryValidationException.cs (1)
9public class AntiforgeryValidationException : Exception
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationFailureException.cs (1)
9public class AuthenticationFailureException : Exception
Microsoft.AspNetCore.Components (4)
LocationChangeException.cs (1)
9public sealed class LocationChangeException : Exception
NavigationException.cs (1)
9public class NavigationException : Exception
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternException.cs (1)
16internal sealed class RoutePatternException : Exception
src\aspnetcore\src\Http\Routing\src\RouteCreationException.cs (1)
12internal class RouteCreationException : Exception
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\FormDataMappingException.cs (1)
6internal class FormDataMappingException : Exception
Microsoft.AspNetCore.Components.Server (1)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackSerializationException.cs (1)
17class MessagePackSerializationException : Exception
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
1461internal sealed class UserCancelledTrustException : Exception
Microsoft.AspNetCore.Http.Extensions (1)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataMappingException.cs (1)
6internal class FormDataMappingException : Exception
Microsoft.AspNetCore.Identity (2)
PasskeyException.cs (1)
9public sealed class PasskeyException : Exception
SignInManager.cs (1)
1383private sealed class IdentityResultException : Exception
Microsoft.AspNetCore.Mvc.Abstractions (3)
Formatters\InputFormatterException.cs (1)
9public class InputFormatterException : Exception
ModelBinding\TooManyModelErrorsException.cs (1)
9public class TooManyModelErrorsException : Exception
ModelBinding\ValueProviderException.cs (1)
9public sealed class ValueProviderException : Exception
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\UnsupportedContentTypeException.cs (1)
12public class UnsupportedContentTypeException : Exception
Microsoft.AspNetCore.ResponseCaching (1)
CacheKeyDelimiterException.cs (1)
6internal sealed class CacheKeyDelimiterException : Exception
Microsoft.AspNetCore.Routing (3)
Matching\AmbiguousMatchException.cs (1)
12internal sealed class AmbiguousMatchException : Exception
Patterns\RoutePatternException.cs (1)
14public sealed class RoutePatternException : Exception
RouteCreationException.cs (1)
10public class RouteCreationException : Exception
Microsoft.AspNetCore.Server.Kestrel.Core (12)
Internal\Http2\Http2StreamErrorException.cs (1)
6internal sealed class Http2StreamErrorException : Exception
Internal\Http3\Http3ConnectionErrorException.cs (1)
8internal sealed class Http3ConnectionErrorException : Exception
Internal\Http3\Http3PendingStreamException.cs (1)
6internal sealed class Http3PendingStreamException : Exception
Internal\Http3\Http3StreamErrorException.cs (1)
8internal sealed class Http3StreamErrorException : Exception
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
1461internal sealed class UserCancelledTrustException : Exception
src\aspnetcore\src\Shared\runtime\Http2\Hpack\HPackDecodingException.cs (1)
11internal sealed class HPackDecodingException : Exception
src\aspnetcore\src\Shared\runtime\Http2\Hpack\HPackEncodingException.cs (1)
6internal sealed class HPackEncodingException : Exception
src\aspnetcore\src\Shared\runtime\Http2\Hpack\HuffmanDecodingException.cs (1)
11internal sealed class HuffmanDecodingException : Exception, ISerializable
src\aspnetcore\src\Shared\runtime\Http3\QPack\QPackDecodingException.cs (1)
10internal sealed class QPackDecodingException : Exception
src\aspnetcore\src\Shared\runtime\Http3\QPack\QPackEncodingException.cs (1)
10internal sealed class QPackEncodingException : Exception
src\aspnetcore\src\Shared\ServerInfrastructure\Http2\Http2ConnectionErrorException.cs (1)
8internal sealed class Http2ConnectionErrorException : Exception
src\aspnetcore\src\Shared\ServerInfrastructure\Http2\Http2SettingsParameterOutOfRangeException.cs (1)
8internal sealed class Http2SettingsParameterOutOfRangeException : Exception
Microsoft.AspNetCore.SignalR.Common (1)
HubException.cs (1)
17public class HubException : Exception
Microsoft.Build (1)
BuildCheck\Infrastructure\BuildCheckConfigurationException.cs (1)
8internal sealed class BuildCheckConfigurationException : Exception
Microsoft.Build.Framework (2)
BuildException\BuildExceptionBase.cs (1)
13public abstract class BuildExceptionBase : Exception
Telemetry\CrashTelemetryRecorder.cs (1)
186internal sealed class SanitizedException : Exception
Microsoft.Build.Tasks.Core (9)
AssemblyDependency\BadImageReferenceException.cs (1)
14internal sealed class BadImageReferenceException : Exception
AssemblyDependency\DependencyResolutionException.cs (1)
14internal sealed class DependencyResolutionException : Exception
AssemblyDependency\InvalidReferenceAssemblyNameException.cs (1)
16internal sealed class InvalidReferenceAssemblyNameException : Exception
AssemblyDependency\ReferenceResolutionException.cs (1)
14internal sealed class ReferenceResolutionException : Exception
GenerateResource.cs (1)
3977internal sealed class TextFileException : Exception
InvalidParameterValueException.cs (1)
18internal sealed class InvalidParameterValueException : Exception
ResourceHandling\InputFormatNotSupportedException.cs (1)
12internal class InputFormatNotSupportedException : Exception
ResourceHandling\MSBuildResXException.cs (1)
11internal class MSBuildResXException : Exception
ResourceHandling\PreserializedResourceWriterRequiredException.cs (1)
11internal sealed class PreserializedResourceWriterRequiredException : Exception
Microsoft.CodeAnalysis (9)
CodeGen\PermissionSetAttribute.cs (1)
190internal class PermissionSetFileReadException : Exception
DiaSymReader\Writer\SymUnmanagedWriterException.cs (1)
14internal sealed class SymUnmanagedWriterException : Exception
MetadataReader\UnsupportedSignatureContent.cs (1)
11: Exception
PEWriter\PeWriter.cs (1)
27internal sealed class PeWritingException : Exception
ResourceException.cs (1)
9internal sealed class ResourceException : Exception
RuleSet\InvalidRuleSetException.cs (1)
14internal class InvalidRuleSetException : Exception
SourceGeneration\UserFunction.cs (1)
14internal sealed class UserFunctionException : Exception
StrongName\DesktopStrongNameProvider.cs (1)
32internal sealed class ClrStrongNameMissingException : Exception
Syntax\SyntaxNode.cs (1)
1441private protected sealed class SerializationDeprecationException : Exception
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
174private sealed class NonEquivalentTreeException : Exception
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
174private sealed class NonEquivalentTreeException : Exception
Microsoft.CodeAnalysis.CSharp (4)
Binder\PatternExplainer.cs (1)
21private class NoRemainingValuesException : Exception { }
BoundTree\BoundTreeVisitors.cs (1)
163public class CancelledByStackGuardException : Exception
CodeGen\EmitExpression.cs (1)
26private class EmitCancelledException : Exception
Lowering\SyntheticBoundNodeFactory.cs (1)
34public class MissingPredefinedMember : Exception
Microsoft.CodeAnalysis.Features (2)
CodeRefactorings\SyncNamespace\SyncNamespaceDocumentsNotInSolutionException.cs (1)
11internal sealed class SyncNamespaceDocumentsNotInSolutionException(ImmutableArray<DocumentId> documentIds) : Exception
Wrapping\Edit.cs (1)
73private sealed class InvalidEditException(SyntaxToken left, SyntaxToken right) : Exception($"Left token had an end '{left.Span.End}' past the start of right token '{right.Span.Start}'")
Microsoft.CodeAnalysis.Scripting (1)
CompilationErrorException.cs (1)
15public sealed class CompilationErrorException : Exception
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
174private sealed class NonEquivalentTreeException : Exception
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
1016public sealed class CompilationTrackerValidationException : Exception
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Rpc\RemoteInvocationException.cs (1)
9internal sealed class RemoteInvocationException(string message, string? stackTrace) : Exception(message)
Microsoft.CSharp (4)
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (2)
19internal sealed class DynamicBindingFailedException : Exception 481internal sealed class DynamicDebugViewEmptyException : Exception
Microsoft\CSharp\RuntimeBinder\RuntimeBinderException.cs (1)
16public class RuntimeBinderException : Exception
Microsoft\CSharp\RuntimeBinder\RuntimeBinderInternalCompilerException.cs (1)
16public class RuntimeBinderInternalCompilerException : Exception
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
VirtualReadException.cs (1)
11public class VirtualReadException : Exception
Microsoft.Diagnostics.NETCore.Client (1)
DiagnosticsClient\DiagnosticsClientExceptions.cs (1)
8public class DiagnosticsClientException : Exception
Microsoft.DiaSymReader (1)
Writer\SymUnmanagedWriterException.cs (1)
12public sealed class SymUnmanagedWriterException : Exception
Microsoft.DotNet.ApiCompat.Task (1)
src\sdk\src\Tasks\Common\BuildErrorException.cs (1)
12internal class BuildErrorException : Exception
Microsoft.DotNet.Cli.CoreUtils (1)
GracefulException.cs (1)
6public class GracefulException : Exception
Microsoft.DotNet.Cli.Utils (1)
FilePermissionSettingException.cs (1)
6internal class FilePermissionSettingException : Exception
Microsoft.DotNet.Configurer (1)
ConfigurationException.cs (1)
6internal class ConfigurationException : Exception
Microsoft.DotNet.HotReload.Utils.Generator (1)
DiffyException.cs (1)
8public class DiffyException : Exception {
Microsoft.DotNet.HotReload.Watch (1)
Build\ProjectGraphFactory.cs (1)
155private sealed class ProjectCreationFailedException() : Exception();
Microsoft.DotNet.NativeWrapper (1)
HostFxrResolutionException.cs (1)
10public class HostFxrResolutionException : Exception
Microsoft.DotNet.TemplateLocator (2)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.JsonReader.cs (1)
84public class JsonFormatException : Exception
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestFormatException.cs (1)
22public abstract class WorkloadManifestException : Exception
Microsoft.DotNet.XliffTasks (1)
Tasks\BuildErrorException.cs (1)
8internal sealed class BuildErrorException : Exception
Microsoft.Extensions.Caching.Hybrid.Tests (1)
SizeTests.cs (1)
268public class KnownFailureException : Exception
Microsoft.Extensions.DataIngestion.Tests (1)
Utils\ExpectedException.cs (1)
8internal sealed class ExpectedException : Exception
Microsoft.Extensions.Hosting.Abstractions (1)
HostAbortedException.cs (1)
12public sealed class HostAbortedException : Exception
Microsoft.Extensions.Options (1)
OptionsValidationException.cs (1)
12public class OptionsValidationException : Exception
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Microsoft.Gen.Metrics\Exceptions\TransitiveTypeCycleException.cs (1)
11internal sealed class TransitiveTypeCycleException : Exception
Microsoft.Gen.Metrics (1)
Exceptions\TransitiveTypeCycleException.cs (1)
11internal sealed class TransitiveTypeCycleException : Exception
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Exceptions\TransitiveTypeCycleException.cs (1)
11internal sealed class TransitiveTypeCycleException : Exception
Microsoft.Interop.ComInterfaceGenerator (1)
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\UnreachableException.cs (1)
13internal sealed class UnreachableException : Exception
Microsoft.Interop.JavaScript.JSImportGenerator (1)
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\UnreachableException.cs (1)
13internal sealed class UnreachableException : Exception
Microsoft.Interop.LibraryImportGenerator (1)
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\UnreachableException.cs (1)
13internal sealed class UnreachableException : Exception
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\UnreachableException.cs (1)
13internal sealed class UnreachableException : Exception
Microsoft.Interop.SourceGeneration (2)
MarshallingInfoParser.cs (1)
356private sealed class CyclicalElementInfoException : Exception
src\runtime\src\libraries\System.Runtime.InteropServices\gen\Common\UnreachableException.cs (1)
13internal sealed class UnreachableException : Exception
Microsoft.JSInterop (2)
JSDisconnectedException.cs (1)
9public sealed class JSDisconnectedException : Exception
JSException.cs (1)
9public class JSException : Exception
Microsoft.Maui (2)
Handlers\HybridWebView\HybridWebViewInvokeJavaScriptException.cs (1)
5internal class HybridWebViewInvokeJavaScriptException : Exception
Platform\HandlerNotFoundException.cs (1)
8 class HandlerNotFoundException : System.Exception
Microsoft.Maui.Controls (4)
Internals\ImageParser.cs (1)
11 public class GIFDecoderFormatException : Exception
InvalidNavigationException.cs (1)
9 public class InvalidNavigationException : Exception
UnsolvableConstraintsException.cs (1)
8 public class UnsolvableConstraintsException : Exception
XamlParseException.cs (1)
9 public class XamlParseException : Exception
Microsoft.Maui.Controls.Build.Tasks (1)
BuildException.cs (1)
8 class BuildException : Exception
Microsoft.Maui.Controls.SourceGen (1)
src\Controls\src\Core\XamlParseException.cs (1)
9 public class XamlParseException : Exception
Microsoft.ML.AutoML (1)
API\InferenceException.cs (1)
28public sealed class InferenceException : Exception
Microsoft.ML.FastTree (1)
Training\TreeLearners\TreeLearner.cs (1)
43internal class TreeLearnerException : Exception
Microsoft.ML.StandardTrainers (1)
Optimizer\Optimizer.cs (1)
79public abstract class OptimizerException : Exception
Microsoft.NET.Build.Containers (9)
BaseImageNotFoundException.cs (1)
6public sealed class BaseImageNotFoundException : Exception
Credentials\CredentialRetrievalException.cs (1)
8internal sealed class CredentialRetrievalException : Exception
DockerLoadException.cs (1)
7internal sealed class DockerLoadException : Exception
Exceptions\ContainerHttpException.cs (1)
8internal sealed class ContainerHttpException : Exception
Exceptions\InvalidAuthResponseException.cs (1)
12internal sealed class InvalidAuthResponseException : Exception
Exceptions\InvalidDigestException.cs (1)
6internal sealed class InvalidDigestException : Exception
Exceptions\RepositoryNotFoundException.cs (1)
6internal sealed class RepositoryNotFoundException : Exception
Exceptions\UnableToAccessRepositoryException.cs (1)
6internal sealed class UnableToAccessRepositoryException : Exception
Exceptions\UnableToDownloadFromRepositoryException.cs (1)
6internal sealed class UnableToDownloadFromRepositoryException : Exception
Microsoft.NET.Build.Tasks (3)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.JsonReader.cs (1)
84public class JsonFormatException : Exception
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadManifestFormatException.cs (1)
22public abstract class WorkloadManifestException : Exception
src\sdk\src\Tasks\Common\BuildErrorException.cs (1)
12internal class BuildErrorException : Exception
Microsoft.NET.HostModel (6)
AppHost\AppHostExceptions.cs (1)
12public class AppHostUpdateException : Exception
ComHost\ConflictingGuidException.cs (1)
13public class ConflictingGuidException : Exception
ComHost\InvalidTypeLibraryException.cs (1)
11public class InvalidTypeLibraryException : Exception
ComHost\InvalidTypeLibraryIdException.cs (1)
11public class InvalidTypeLibraryIdException : Exception
ComHost\MissingGuidException.cs (1)
13public class MissingGuidException : Exception
ComHost\TypeLibraryDoesNotExistException.cs (1)
11public class TypeLibraryDoesNotExistException : Exception
Microsoft.NET.Sdk.Razor.Tasks (1)
ReferenceAssemblyNotFoundException.cs (1)
6internal class ReferenceAssemblyNotFoundException : Exception
Microsoft.NET.Sdk.WorkloadManifestReader (2)
SdkDirectoryWorkloadManifestProvider.JsonReader.cs (1)
84public class JsonFormatException : Exception
WorkloadManifestFormatException.cs (1)
22public abstract class WorkloadManifestException : Exception
Microsoft.Private.Windows.Core (1)
System\Private\Windows\Ole\RestrictedTypeDeserializationException.cs (1)
10internal class RestrictedTypeDeserializationException : Exception
Microsoft.TemplateEngine.Cli (1)
Commands\InvalidTemplateParametersException.cs (1)
6internal class InvalidTemplateParametersException : Exception
Microsoft.TemplateEngine.Edge (6)
Constraints\ConfigurationException.cs (1)
11internal class ConfigurationException : Exception
Installers\NuGet\Exceptions\DownloadException.cs (1)
6internal class DownloadException : Exception
Installers\NuGet\Exceptions\InvalidNuGetPackageException.cs (1)
6internal class InvalidNuGetPackageException : Exception
Installers\NuGet\Exceptions\InvalidNuGetSourceException.cs (1)
6internal class InvalidNuGetSourceException : Exception
Installers\NuGet\Exceptions\PackageNotFoundException.cs (1)
8internal class PackageNotFoundException : Exception
Installers\NuGet\Exceptions\VulnerablePackageException.cs (1)
8internal class VulnerablePackageException : Exception
Microsoft.TemplateEngine.Utils (3)
ContentGenerationException.cs (1)
6public class ContentGenerationException : Exception
EngineInitializationException.cs (1)
6public class EngineInitializationException : Exception
TemplateAuthoringException.cs (1)
6public class TemplateAuthoringException : Exception
Microsoft.TestPlatform.AdapterUtilities (1)
ManagedNameUtilities\InvalidManagedNameException.cs (1)
10public class InvalidManagedNameException : Exception, ISerializable
Microsoft.TestPlatform.CommunicationUtilities (2)
Interfaces\Communication\CommunicationException.cs (1)
11public class CommunicationException : Exception
Json\Jsonite\Jsonite.cs (1)
1376class JsonException : Exception
Microsoft.TestPlatform.PlatformAbstractions (1)
Interfaces\System\ThreadApartmentStateNotSupportedException.cs (1)
11public class ThreadApartmentStateNotSupportedException : Exception
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (1)
TransationLayerException.cs (1)
11public class TransationLayerException : Exception
Microsoft.TestUtilities (1)
XUnit\SkipTestException.cs (1)
10public class SkipTestException : Exception
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\IncompleteInitialization.vb (1)
8Inherits Global.System.Exception
Microsoft\VisualBasic\FileIO\MalformedLineException.vb (1)
18Inherits Exception
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
XML\XmlPersistence.cs (1)
35public class DuplicateKeyLoadException : Exception
Microsoft.VisualStudio.TestPlatform.ObjectModel (5)
Adapter\TestPlatformFormatException.cs (1)
18public class TestPlatformFormatException : Exception
Adapter\TestsCanceledException.cs (1)
18public class TestCanceledException : Exception
ExceptionConverter.cs (1)
14public class TestPlatformException : Exception
Nuget.Frameworks\FrameworkException.cs (1)
10internal class FrameworkException : Exception
RunSettings\SettingsException.cs (1)
18public class SettingsException : Exception
Microsoft.Web.XmlTransform (1)
XmlTransformationException.cs (1)
13public class XmlTransformationException : Exception
Mono.Cecil (1)
Mono.Cecil\MetadataResolver.cs (1)
31 public sealed class ResolutionException : Exception {
Mono.Cecil.Mdb (1)
Mono.CompilerServices.SymbolWriter\MonoSymbolFile.cs (1)
39 public class MonoSymbolFileException : Exception
MSBuild (2)
CommandLine\CommandLineSwitchException.cs (1)
20internal sealed class CommandLineSwitchException : Exception // CodeQL [SM02227] The dangerous method is called only in debug build. It's safe for release build.
InitializationException.cs (1)
25internal sealed class InitializationException : Exception // CodeQL [SM02227] The dangerous method is called only in debug build. It's safe for release build.
NuGet.Commands (4)
Common\CommandException.cs (1)
13public class CommandException : Exception
RestoreCommand\RequestFactory\RestoreSpecException.cs (1)
16public class RestoreSpecException : Exception
RestoreCommand\RestoreCommandException.cs (1)
14public class RestoreCommandException : Exception, ILogMessageException
SignCommand\SignCommandException.cs (1)
14public sealed class SignCommandException : Exception, ILogMessageException
NuGet.Common (1)
CommandLineArgumentCombinationException.cs (1)
8public class CommandLineArgumentCombinationException : Exception, ILogMessageException
NuGet.Configuration (1)
Exceptions\NuGetConfigurationException.cs (1)
10public class NuGetConfigurationException : Exception
NuGet.Credentials (2)
PluginException.cs (1)
13public class PluginException : Exception
ProviderException.cs (1)
16public class ProviderException : Exception
NuGet.Frameworks (1)
FrameworkException.cs (1)
10public class FrameworkException : Exception
NuGet.PackageManagement (1)
Utility\PackageAlreadyInstalledException.cs (1)
11public class PackageAlreadyInstalledException : Exception
NuGet.Packaging (2)
Core\PackagingException.cs (1)
9public class PackagingException : Exception, ILogMessageException
Licenses\NuGetLicenseExpressionParsingException.cs (1)
10public class NuGetLicenseExpressionParsingException : Exception
NuGet.ProjectModel (1)
FileFormatException.cs (1)
11public class FileFormatException : Exception
NuGet.Protocol (3)
Exceptions\NuGetProtocolException.cs (1)
13public abstract class NuGetProtocolException : Exception
Plugins\PluginException.cs (1)
15public sealed class PluginException : Exception
Plugins\ProtocolException.cs (1)
15public sealed class ProtocolException : Exception
NuGet.Resolver (1)
Exceptions\NuGetResolverException.cs (1)
12public class NuGetResolverException : Exception
PresentationBuildTasks (2)
MS\Internal\MarkupCompiler\AssemblyVersionParseException.cs (1)
12internal class AssemblyVersionParseException : Exception
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
2685private class MappingParseError : Exception
PresentationFramework (4)
MS\Internal\PtsHost\Pts.cs (2)
264private class SecondaryException : Exception 299private class PtsException : Exception
System\Windows\Controls\PrintDialogException.cs (1)
13public class PrintDialogException : Exception
System\Windows\Documents\MsSpellCheckLib\Utils\RetryHelper.cs (1)
309internal class RetriesExhaustedException : Exception
PresentationUI (1)
MS\Internal\Documents\Application\XpsViewerException.cs (1)
19internal class XpsViewerException : Exception
ReachFramework (1)
Exceptions\XpsException.cs (1)
13public class XpsException : Exception
RepoTasks (1)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (1)
1461internal sealed class UserCancelledTrustException : Exception
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
174private sealed class NonEquivalentTreeException : Exception
rzc (1)
CommandLine\CommandParsingException.cs (1)
6internal class CommandParsingException : Exception
SuperFileCheck (1)
Program.cs (1)
18internal class SuperFileCheckException : Exception
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\ValidationException.cs (1)
14public class ValidationException : Exception
System.ComponentModel.Composition (4)
System\ComponentModel\Composition\CompositionContractMismatchException.cs (1)
15public class CompositionContractMismatchException : Exception
System\ComponentModel\Composition\CompositionException.cs (1)
22public class CompositionException : Exception
System\ComponentModel\Composition\ImportCardinalityMismatchException.cs (1)
18public class ImportCardinalityMismatchException : Exception
System\ComponentModel\Composition\Primitives\ComposablePartException.cs (1)
17public class ComposablePartException : Exception
System.Composition.Runtime (1)
System\Composition\Hosting\CompositionFailedException.cs (1)
11public class CompositionFailedException : Exception
System.Configuration.ConfigurationManager (4)
System\Configuration\Provider\ProviderException.cs (1)
11public class ProviderException : Exception
System\Configuration\SettingsPropertyIsReadOnlyException.cs (1)
11public class SettingsPropertyIsReadOnlyException : Exception
System\Configuration\SettingsPropertyNotFoundException.cs (1)
11public class SettingsPropertyNotFoundException : Exception
System\Configuration\SettingsPropertyWrongTypeException.cs (1)
11public class SettingsPropertyWrongTypeException : Exception
System.Diagnostics.EventLog (1)
System\Diagnostics\Reader\EventLogException.cs (1)
14public class EventLogException : Exception
System.DirectoryServices (4)
System\DirectoryServices\ActiveDirectory\Exception.cs (4)
36public class ActiveDirectoryObjectNotFoundException : Exception, ISerializable 88public class ActiveDirectoryOperationException : Exception, ISerializable 128public class ActiveDirectoryServerDownException : Exception, ISerializable 185public class ActiveDirectoryObjectExistsException : Exception
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\common\DirectoryException.cs (1)
12public class DirectoryException : Exception
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnContentException.cs (1)
13public class AsnContentException : Exception
System.Formats.Cbor (1)
System\Formats\Cbor\CborContentException.cs (1)
11public class CborContentException : Exception
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorageException.cs (1)
12public class IsolatedStorageException : Exception, ISerializable
System.Linq (1)
System\Linq\DebugView.cs (1)
53internal sealed class SystemCore_EnumerableDebugViewEmptyException : Exception
System.Linq.Expressions (1)
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
200internal sealed class RethrowException : Exception
System.Net.Http (7)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecodingException.cs (1)
11internal sealed class HPackDecodingException : Exception
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackEncodingException.cs (1)
6internal sealed class HPackEncodingException : Exception
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HuffmanDecodingException.cs (1)
11internal sealed class HuffmanDecodingException : Exception, ISerializable
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecodingException.cs (1)
10internal sealed class QPackDecodingException : Exception
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackEncodingException.cs (1)
10internal sealed class QPackEncodingException : Exception
src\runtime\src\libraries\Common\src\System\Net\InternalException.cs (1)
8internal sealed class InternalException : Exception
System\Net\Http\HttpRequestException.cs (1)
6public class HttpRequestException : Exception
System.Net.Mail (1)
System\Net\Mail\SmtpException.cs (1)
11public class SmtpException : Exception
System.Net.NameResolution (1)
src\runtime\src\libraries\Common\src\System\Net\InternalException.cs (1)
8internal sealed class InternalException : Exception
System.Net.Requests (1)
src\runtime\src\libraries\Common\src\System\Net\InternalException.cs (1)
8internal sealed class InternalException : Exception
System.Net.Security (3)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssApiException.cs (1)
14internal sealed class GssApiException : Exception
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
1370internal sealed class SslException : Exception
src\runtime\src\libraries\Common\src\System\Net\InternalException.cs (1)
8internal sealed class InternalException : Exception
System.Net.Sockets (1)
src\runtime\src\libraries\Common\src\System\Net\InternalException.cs (1)
8internal sealed class InternalException : Exception
System.Private.CoreLib (13)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (1)
24public class AggregateException : Exception
src\runtime\src\libraries\System.Private.CoreLib\src\System\ApplicationException.cs (1)
20public class ApplicationException : Exception
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\ContractException.cs (1)
12public sealed class ContractException : Exception
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\DebugProvider.cs (1)
77private sealed class DebugAssertException : Exception
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSourceException.cs (1)
14public class EventSourceException : Exception
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\UnreachableException.cs (1)
9public sealed class UnreachableException : Exception
src\runtime\src\libraries\System.Private.CoreLib\src\System\InvalidTimeZoneException.cs (1)
12public class InvalidTimeZoneException : Exception
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\AmbiguousImplementationException.cs (1)
11public sealed class AmbiguousImplementationException : Exception
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeWrappedException.cs (1)
14public sealed class RuntimeWrappedException : Exception
src\runtime\src\libraries\System.Private.CoreLib\src\System\SystemException.cs (1)
12public class SystemException : Exception
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LockRecursionException.cs (1)
12public class LockRecursionException : Exception
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskSchedulerException.cs (1)
24public class TaskSchedulerException : Exception
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneNotFoundException.cs (1)
12public class TimeZoneNotFoundException : Exception
System.Private.TypeLoader (1)
Internal\Runtime\TypeLoader\TypeBuilder.cs (1)
40internal class MissingTemplateException : Exception
System.Private.Windows.Core (1)
System\Private\Windows\Ole\RestrictedTypeDeserializationException.cs (1)
10internal class RestrictedTypeDeserializationException : Exception
System.Private.Xml (2)
System\Xml\Schema\ContentValidator.cs (1)
18internal sealed class UpaException : Exception
System\Xml\Serialization\CodeGenerator.cs (1)
1653internal sealed class CodeGeneratorConversionException : Exception
System.Reflection.Metadata (2)
System\Reflection\Metadata\ImageFormatLimitationException.cs (1)
8public partial class ImageFormatLimitationException : Exception
System\Reflection\Metadata\ImageFormatLimitationException.Serialization.cs (1)
11public partial class ImageFormatLimitationException : Exception
System.Runtime.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\JSException.cs (1)
13public sealed class JSException : Exception
System.Runtime.Serialization.Primitives (1)
System\Runtime\Serialization\InvalidDataContractException.cs (1)
12public class InvalidDataContractException : Exception
System.ServiceModel.Primitives (7)
Internals\System\Runtime\FatalException.cs (1)
10internal class FatalException : Exception
System\IdentityModel\SecurityMessageSerializationException.cs (1)
10public class SecurityMessageSerializationException : Exception
System\IdentityModel\Tokens\SecurityTokenException.cs (1)
10public class SecurityTokenException : Exception
System\ServiceModel\CommunicationException.cs (1)
10public class CommunicationException : Exception
System\ServiceModel\Dispatcher\InvalidBodyAccessException.cs (1)
10internal abstract class InvalidBodyAccessException : Exception
System\ServiceModel\InvalidMessageContractException.cs (1)
10public class InvalidMessageContractException : Exception
System\ServiceModel\QuotaExceededException.cs (1)
10public class QuotaExceededException : Exception
System.Speech (1)
Internal\Synthesis\AudioException.cs (1)
10internal class AudioException : Exception
System.Text.Json (1)
System\Text\Json\JsonException.cs (1)
14public class JsonException : Exception
System.Threading (1)
System\Threading\Barrier.cs (1)
26public class BarrierPostPhaseException : Exception
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.InvalidActiveXStateException.cs (1)
8public class InvalidActiveXStateException : Exception
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ExceptionCollection.cs (1)
9public sealed class ExceptionCollection : Exception
System.Xaml (2)
System\Xaml\Parser\GenericTypeNameParser.cs (1)
14private class TypeNameParserException : Exception
System\Xaml\XamlException.cs (1)
12public class XamlException : Exception
testhost (1)
src\vstest\src\testhost.x86\DebugAssertException.cs (1)
8internal sealed class DebugAssertException : Exception
testhost.arm64 (1)
src\vstest\src\testhost.x86\DebugAssertException.cs (1)
8internal sealed class DebugAssertException : Exception
testhost.x86 (1)
DebugAssertException.cs (1)
8internal sealed class DebugAssertException : Exception
tlens (1)
src\runtime\src\tools\illink\external\Mono.Options\Options.cs (1)
762public class OptionException : Exception
UIAutomationTypes (2)
System\Windows\Automation\NoClickablePointException.cs (1)
19public class NoClickablePointException : Exception
System\Windows\Automation\ProxyAssemblyNotLoadedException.cs (1)
24public class ProxyAssemblyNotLoadedException : Exception
vstest.console (2)
CommandLine\CommandLineException.cs (1)
12public class CommandLineException : Exception
CommandLine\TestSourceException.cs (1)
12public class TestSourceException : Exception
vstest.console.arm64 (2)
src\vstest\src\vstest.console\CommandLine\CommandLineException.cs (1)
12public class CommandLineException : Exception
src\vstest\src\vstest.console\CommandLine\TestSourceException.cs (1)
12public class TestSourceException : Exception
612 instantiations of Exception
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 (6)
Program.cs (6)
411throw new Exception(string.Format(SR.ErrorMultipleInputFilesCompositeModeOnly, string.Join("; ", inputModules))); 423throw new Exception(string.Format(SR.ErrorContainerFormatRequiresComposite, format)); 430throw new Exception(SR.ErrorReadyToRunHeaderSymbolNameRequiresComposite); 435throw new Exception(SR.ErrorReadyToRunHeaderSymbolNameEmpty); 620throw new Exception(string.Format(SR.ErrorCompositeKeyFileNotPublicKey)); 702throw new Exception("Determinism Check Failed");
csc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
284throw new Exception(message, e);
dotnet (14)
CommandFactory\CommandResolution\PackagedCommandSpecFactory.cs (1)
128throw new Exception(LocalizableStrings.UnableToLocateDotnetMultiplexer);
CommandFactory\CommandResolution\PublishPathCommandSpecFactory.cs (1)
57throw new Exception(LocalizableStrings.UnableToLocateDotnetMultiplexer);
Commands\New\MSBuildEvaluation\ProjectCapabilityConstraint.cs (6)
28throw new Exception(string.Format(CliCommandStrings.ProjectCapabilityConstraintFactory_Exception_NoEvaluator, Type, nameof(MSBuildEvaluator))); 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); 92throw new Exception($"{CliCommandStrings.ProjectCapabilityConstraint_Error_InvalidConstraintConfiguration}: {CliCommandStrings.ProjectCapabilityConstraint_Error_ArgumentShouldNotBeEmpty}."); 99throw new Exception($"{CliCommandStrings.ProjectCapabilityConstraint_Error_InvalidConstraintConfiguration}: {CliCommandStrings.ProjectCapabilityConstraint_Error_ArgumentShouldBeString}."); 154throw new Exception($"{CliCommandStrings.ProjectCapabilityConstraint_Error_InvalidConstraintConfiguration}:{ae.Message}.", ae);
Commands\Workload\Install\FileBasedInstaller.cs (4)
123throw new Exception(string.Format(CliCommandStrings.FailedToInstallWorkloadSet, workloadSetVersion, ex.Message), ex); 181throw new Exception(string.Format(CliCommandStrings.CacheMissingPackage, packInfo.ResolvedPackageId, packInfo.Version, offlineCache)); 300throw new Exception(string.Format(CliCommandStrings.FailedToInstallWorkloadManifest, manifestUpdate.ManifestId, manifestUpdate.NewVersion, e.Message), e); 323throw 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)));
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26307.102\contentFiles\cs\net11.0\BuildServerConnection.cs (1)
284throw new Exception(message, e);
dotnet-format (4)
CodeFormatter.cs (2)
135throw new Exception("Restore operation failed."); 226throw 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-svcutil-lib (23)
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.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\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.Web.Services\Services\Description\ServiceDescriptions.cs (1)
109return new Exception(string.Format(ResWebServices.WebDescriptionMissingItem, type, name.Name, name.Namespace));
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,
dotnet-watch (1)
Program.cs (1)
386throw new Exception($"Found a version of {assembly.Name} that was lower than the target version of {assembly.Version}");
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
70FatalError.ReportNonFatalError(new Exception("The SynchronizationContext was changed since it was applied."));
ilc (7)
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.");
ILCompiler.Compiler (10)
Compiler\MainMethodRootProvider.cs (1)
41throw new Exception("No managed entrypoint defined for executable module");
Compiler\SubstitutedILProvider.cs (1)
1009_ => throw new Exception(),
IL\Stubs\StartupCode\StartupCodeMainMethod.cs (1)
133throw new Exception("Main() has parameters, but the class library doesn't support them");
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 (40)
Compiler\DependencyAnalysis\ReadyToRun\DeferredTillPhaseNode.cs (1)
32throw new Exception();
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)
255throw new System.Exception("Unexpected wasm type arg"); 358throw new System.Exception("Unexpected wasm type arg");
Compiler\DependencyAnalysis\ReadyToRun\WasmInterpreterToR2RThunkNode.cs (2)
211throw new Exception("Unexpected wasm type for interpreter-to-R2R arg"); 250throw new Exception("Unexpected wasm return type for interpreter-to-R2R");
Compiler\DependencyAnalysis\ReadyToRun\WasmR2RToInterpreterThunkNode.cs (2)
247throw new Exception("Unexpected wasm type arg"); 341throw new Exception("Unexpected wasm return type");
Compiler\ReadyToRunCompilerContext.cs (1)
214throw new Exception();
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)
318throw new Exception();
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmInstructions.cs (2)
362throw new Exception($"Unknown WASM reloc type : {_relocType}"); 391throw new Exception();
src\runtime\src\coreclr\tools\Common\Internal\Runtime\ReadyToRunInstructionSetHelper.cs (5)
64default: throw new Exception("Unknown instruction set"); 77default: throw new Exception("Unknown instruction set"); 132default: throw new Exception("Unknown instruction set"); 187default: throw new Exception("Unknown instruction set"); 191default: throw new Exception("Unknown architecture");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
380throw 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 (3)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmInstructions.cs (2)
362throw new Exception($"Unknown WASM reloc type : {_relocType}"); 391throw new Exception();
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
380throw new Exception(message);
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}.");
Microsoft.Arcade.Common (1)
CommandResult.cs (1)
46throw new Exception(message.ToString());
Microsoft.Build (2)
BackEnd\BuildManager\BuildManager.cs (1)
3543throw new Exception(message);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
945throw new Exception(taskException.Message, taskException);
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
812_ => throw new Exception($"Unexpected value {kind}"),
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
284throw new Exception(message, e);
Microsoft.Build.Tasks.Core (1)
RedistList.cs (1)
624allowListErrors.Add(new Exception(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ResolveAssemblyReference.NoSubSetRedistListName", info.Path.OriginalValue)));
Microsoft.CodeAnalysis (1)
InternalUtilities\SpecializedSyncContext.cs (1)
70FatalError.ReportNonFatalError(new Exception("The SynchronizationContext was changed since it was applied."));
Microsoft.CodeAnalysis.Analyzers (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.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.CSharp (1)
Parser\LanguageParser.cs (1)
14392get { 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.Workspaces (3)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
70FatalError.ReportNonFatalError(new Exception("The SynchronizationContext was changed since it was applied."));
Workspace\Solution\DocumentState.cs (1)
690FatalError.ReportAndCatch(new Exception($"tree and text has different length {newTree.Length} vs {newText.Length}"), ErrorSeverity.Critical);
Workspace\Solution\SolutionState.cs (1)
1367FatalError.ReportAndCatch(new Exception("GetDocumentIdsWithFilePath returned a document in a project that does not exist."));
Microsoft.CodeAnalysis.Workspaces.MSBuild (8)
MSBuild\BuildHostProcessManager.cs (3)
137throw 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); 322throw new Exception(string.Format(WorkspaceMSBuildResources.The_build_host_could_not_be_found_at_0, buildHostPath)); 465throw 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 (2)
97completionSource.SetException(new Exception("Unable to deserialize the result", ex)); 110request.SetException(processingException ?? new System.Exception("The server disconnected unexpectedly."));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Rpc\RpcServer.cs (1)
84throw new Exception($"Failure while deserializing '{line}'", innerException: e);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
70FatalError.ReportNonFatalError(new Exception("The SynchronizationContext was changed since it was applied."));
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.NETCore.Client (1)
DiagnosticsIpc\IpcAdvertise.cs (1)
65throw new Exception("Invalid advertise message from client connection");
Microsoft.DotNet.ApiCompat.Task (2)
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);
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)
110throw new Exception(string.Format(Strings.RelativePackagePathTooLong, MaxRelativePackagePath, relativePackagePath));
WorkloadPackageBase.cs (1)
337throw new Exception(string.Format(Strings.NoInstallerVersion, taskName,
Microsoft.DotNet.Cli.Utils (1)
ExponentialRetry.cs (1)
58throw new Exception($"Timer for task {taskDescription} should not be exhausted.");
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 (3)
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");
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.TemplateLocator (4)
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 (1)
ExponentialRetry.cs (1)
33throw new Exception("Timer should not be exhausted");
Microsoft.Extensions.AI.Abstractions.Tests (3)
Contents\FunctionCallContentTests.cs (1)
72Exception e = new();
Contents\FunctionResultContentTests.cs (1)
56Exception e = new();
Functions\DelegatingAIFunctionTests.cs (1)
68throw new Exception("uh oh");
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogger.cs (1)
131var exception = rec.Exception is not null ? new Exception(rec.Exception) : null;
Microsoft.Maui (6)
Layouts\Flex.cs (4)
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"); 830 throw new Exception();
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}.");
Microsoft.Maui.Controls (14)
Internals\ProfilePage.cs (1)
40 throw new Exception("assert");
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}");
StyleSheets\Style.cs (1)
53 throw new Exception();
StyleSheets\StyleSheet.cs (1)
82 throw new Exception();
StyleSheets\TextReaderExtensions.cs (1)
33 throw new Exception();
Microsoft.Maui.Controls.Build.Tasks (1)
CompiledConverters\ICompiledTypeConverter.cs (1)
24 throw new Exception();
Microsoft.Maui.Controls.SourceGen (3)
CodeBehindGenerator.cs (3)
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"); 476 var name = GetAttributeValue(node, "Name", XamlParser.X2006Uri, XamlParser.X2009Uri) ?? throw new Exception();
Microsoft.Maui.Controls.Xaml (1)
ExpandMarkupsVisitor.cs (1)
95 throw new Exception();
Microsoft.Maui.Graphics (2)
PathBuilder.cs (2)
55 throw new Exception("Error parsing a path value.", exc); 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 (5)
AutoMlUtils.cs (1)
36throw new Exception("inputs and outputs count must match");
SweepableEstimator\Estimators\ForecastBySsa.cs (1)
15throw new Exception("ForecastBySsa param check error");
Tuner\AutoZeroTuner.cs (2)
45_ => throw new Exception(), 52_ => throw new Exception(),
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 (1)
FastTreeRanking.cs (1)
850throw new Exception("Shifted NDCG / ContinuousWeightedRanknet / distanceWeight2 / normalized lambdas are only supported by unmanaged code");
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 (7)
CacheDataViewBench.cs (2)
50throw new Exception($"Unexpected value {val} at {cursor.Position}"); 54throw new Exception($"Expected {Length} values in cache but only saw {count}");
HashBench.cs (4)
36throw new Exception(); 50throw new Exception(); 53throw new Exception(); 59throw new Exception();
Helpers\ExecuteMaml.cs (1)
14throw new Exception($"Command {command} returned negative error code");
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.Tasks (4)
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.NET.Sdk.Publish.Tasks (5)
Tasks\Xdt\TransformXml.cs (3)
193throw new Exception( 217throw new Exception( 235throw new Exception(
WebConfigTransform.cs (2)
181throw new Exception(Resources.WebConfigTransform_InvalidHostingOption); 189throw new Exception(Resources.WebConfigTransform_HostingModel_Error);
Microsoft.NET.Sdk.WorkloadManifestReader (4)
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.Svcutil.NamedPipeMetadataImporter (1)
NamedPipeMetadataImporter.cs (1)
93tcs.SetException(new Exception("Fault response received."));
Microsoft.TemplateEngine.Cli (10)
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 (3)
869throw new Exception(string.Format(LocalizableStrings.DetailsCommand_UnableToLoadResources, currentDirectory), ex); 876throw new Exception(LocalizableStrings.DetailsCommand_NoNuGetSources); 905throw 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 (4)
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.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.CrossPlatEngine (2)
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"")].");
Execution\BaseRunTests.cs (1)
221exception = new Exception(ex.Message, ex.InnerException);
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (2)
VsTestConsoleProcessManager.cs (2)
91throw new Exception(string.Format(CultureInfo.CurrentCulture, Resources.InvalidFilePath, vstestConsolePath)); 174throw new Exception(string.Format(CultureInfo.CurrentCulture, InternalResources.ProcessStartWin32Failure, consoleRunnerPath, arguments), ex);
Microsoft.VisualBasic.Core (10)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (1)
2483Throw New Exception 'would be nice to have an internal runtime exception or something like that
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (3)
287Return New Exception(Description) 295Return New Exception(Description) 299Return New Exception(Description)
Microsoft\VisualBasic\CompilerServices\IncompleteInitialization.vb (1)
10MyBase.New()
Microsoft\VisualBasic\FileIO\MalformedLineException.vb (5)
25MyBase.New() 35MyBase.New(message) 45MyBase.New(message) 56MyBase.New(message, innerException) 67MyBase.New(message, innerException)
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 (6)
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));
XML\XmlPersistence.cs (1)
789throw new Exception($"The persistence location is invalid. Element: '{element.Name}', location: '{location}'", e);
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Navigation\PortablePdbReader.cs (1)
48throw new Exception("Given stream is not portable stream");
Mono.Cecil (2)
Mono.Cecil\GenericParameterResolver.cs (1)
70 throw new Exception ("Unexpected generic parameter.");
Mono.Cecil\WindowsRuntimeProjections.cs (1)
860 throw new Exception ();
Mono.Cecil.Pdb (2)
Microsoft.Cci.Pdb\PdbScope.cs (2)
107throw new Exception("Not at S_END"); 116throw new Exception("Missing S_END");
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 (2)
RestoreCommand\Utility\PackageSpecFactory.cs (2)
201if (projectName is null) throw new Exception("Something went wrong. MSBuildProjectName should always have a value, but did not."); 542throw new Exception("Something went wrong. MSBuildProjectName should always have a value, but did not.");
NuGet.Packaging (6)
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");
NuGetExtractionFileIO.cs (1)
62throw new Exception($"Error trying to create file {path}: {exception.Message}", exception);
PackageCreation\Authoring\Manifest.cs (1)
288throw new Exception(message);
NuGet.ProjectModel (2)
ProjectLockFile\PackagesLockFileUtilities.cs (2)
268throw new Exception(string.Format(CultureInfo.CurrentCulture, Strings.PackagesLockFile_RestoreMetadataMissingTfms)); 283throw new Exception(string.Format(
PresentationBuildTasks (2)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (2)
237OnError(new Exception(SR.Format(SR.UnknownLanguage, cu.Language))); 734Exception compilerException = new Exception(message);
PresentationCore (8)
MS\Internal\TextFormatting\LineServicesCallbacks.cs (1)
3395Exception e = new System.Exception(SR.NonCLSException);
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
154Marshal.GetHRForException(new Exception());
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 (112)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
643throw new Exception(SR.UndefinedHighlightAnchor);
MS\Internal\AppModel\Journaling.cs (2)
538throw new Exception(SR.Format(SR.InvalidPageFunctionType, contentObject.GetType())); 679throw new Exception(SR.Format(SR.FailedResumePageFunction, this._typeName), ex);
MS\Internal\Documents\ParentUndoUnit.cs (1)
437throw new Exception(SR.UndoContainerTypeMismatch);
MS\Internal\PtsHost\Pts.cs (3)
65throw new Exception(SR.Format(SR.PTSError, fserr)); 124throw new Exception(SR.Format(SR.PTSError, fserr)); 159throw new Exception(SR.PTSInvalidHandle);
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 (2)
364e = new Exception(message, innerException); 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\TextBox.cs (1)
1086throw new Exception(SR.TextBoxMinMaxLinesMismatch);
System\Windows\Data\XmlDataProvider.cs (1)
368throw new Exception(SR.WebRequestCreationFailed);
System\Windows\Navigation\NavigationService.cs (4)
111throw new Exception(SR.Format(SR.MustImplementIUriContext, typeof(IUriContext))); 582throw new Exception(SR.Format(SR.LoopDetected, _currentCleanSource)); 2616throw new Exception(SR.Format(SR.GetResponseFailed, requestUri.ToString())); 2849throw 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()));
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SpecializedSyncContext.cs (1)
70FatalError.ReportNonFatalError(new Exception("The SynchronizationContext was changed since it was applied."));
rzc (2)
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.");
Shared.Tests (2)
Throw\ThrowTest.cs (2)
29var innerException = new Exception(); 52var innerException = new Exception();
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.Formats.Cbor (6)
System\Formats\Cbor\CborConformanceLevel.cs (1)
257throw new Exception();
System\Formats\Cbor\Reader\CborReader.PeekState.cs (3)
39throw new Exception(); 85throw new Exception(); 130throw new Exception();
System\Formats\Cbor\Writer\CborWriter.cs (1)
407throw new Exception();
System\Formats\Cbor\Writer\CborWriter.Tag.cs (1)
194throw new Exception();
System.IO.Ports (1)
System\IO\Ports\SerialStream.Unix.cs (1)
533throw new Exception();
System.Linq.Queryable (1)
System\Linq\EnumerableRewriter.cs (1)
274throw new Exception();
System.Net.Http.WinHttpHandler (1)
System\Net\Http\CachedCertificateValue.cs (1)
40throw new Exception("Unreachable");
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
775return new System.Exception();
System\Reflection\Runtime\Dispensers\DispenserFactory.cs (2)
29throw new Exception(); 53throw new Exception();
System.Private.CoreLib.Generators (1)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (1)
77throw new Exception($"Not able to find {newFullNamespaceName} namespace");
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.Private.Xml (3)
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\Compilation.cs (1)
175throw new Exception(SR.Format(SR.FailLoadAssemblyUnderPregenMode, serializerName));
System.Reflection.MetadataLoadContext (1)
System\CoreRtBridge.cs (1)
34internal static Exception CreateMissingMetadataException() => new Exception();
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\DiagnosticUtility.cs (1)
92return ThrowHelperError(new Exception(message, innerException));
System.ServiceModel.Federation (1)
System\IdentityModel\Security\WrapperSecurityCommunicationObject.cs (1)
143throw new Exception("ThrowIfClosedOrNotOpen: Unknown CommunicationObject.state");
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\FramingChannels.cs (1)
402throw new Exception("invalid framing client state machine");
System\ServiceModel\Channels\SessionConnectionReader.cs (1)
102throw new Exception("Receive: DecodeMessage() should consume the outstanding buffer or return a message.");
System.ServiceModel.Primitives.Tests (1)
Security\SecurityNegotiationExceptionTest.cs (1)
20Exception innerException = new Exception(exceptionMessage);
System.Text.Json (2)
System\ReflectionExtensions.cs (1)
157throw new Exception();
System\Text\Json\Serialization\Converters\FSharp\FSharpTypeConverterFactory.cs (1)
73throw new Exception();
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Emitter.cs (1)
2364_ => throw new Exception(),
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");
UIAutomationTypes (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Interop\OSVersionHelper.cs (1)
318throw new Exception("OSVersionHelper.GetOsVersion Could not detect OS!");
vbc (1)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (1)
284throw new Exception(message, e);
VBCSCompiler (5)
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.");
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);
17987 references to Exception
aspire (192)
Agents\ClaudeCode\ClaudeCodeCliRunner.cs (1)
85catch (Exception ex) when (ex is InvalidOperationException or System.ComponentModel.Win32Exception)
Agents\CopilotCli\CopilotCliRunner.cs (1)
65catch (Exception ex) when (ex is InvalidOperationException or System.ComponentModel.Win32Exception)
Agents\OpenCode\OpenCodeCliRunner.cs (1)
78catch (Exception ex) when (ex is InvalidOperationException or System.ComponentModel.Win32Exception)
Agents\Playwright\PlaywrightCliRunner.cs (2)
73catch (Exception ex) when (ex is InvalidOperationException or System.ComponentModel.Win32Exception) 123catch (Exception ex) when (ex is InvalidOperationException or System.ComponentModel.Win32Exception)
Agents\VsCode\VsCodeCliRunner.cs (1)
89catch (Exception ex) when (ex is InvalidOperationException or System.ComponentModel.Win32Exception)
Backchannel\AppHostAuxiliaryBackchannel.cs (2)
189catch (Exception ex) 365catch (Exception ex) when (ex is not OperationCanceledException)
Backchannel\AppHostCliBackchannel.cs (6)
100catch (Exception ex) when (_autoReconnect && !cancellationToken.IsCancellationRequested && IsConnectionLostException(ex)) 136catch (Exception ex) when (_autoReconnect && !cancellationToken.IsCancellationRequested && IsConnectionLostException(ex)) 171catch (Exception ex) when (_autoReconnect && !cancellationToken.IsCancellationRequested && IsConnectionLostException(ex)) 187catch (Exception ex) when (IsConnectionLostException(ex)) 194private static bool IsConnectionLostException(Exception ex) 333catch (Exception ex)
Backchannel\AppHostConnectionResolver.cs (1)
103catch (Exception ex)
Backchannel\AuxiliaryBackchannelMonitor.cs (5)
181catch (Exception ex) 253catch (Exception ex) when (ex is not OperationCanceledException) 313catch (Exception ex) 386catch (Exception ex) 462catch (Exception ex)
Backchannel\ExtensionBackchannel.cs (1)
147catch (Exception ex)
Backchannel\FailedToConnectBackchannelConnection.cs (1)
6internal sealed class FailedToConnectBackchannelConnection(string message, Exception innerException) : Exception(message, innerException)
Bundles\BundleService.cs (1)
121catch (Exception ex)
Caching\DiskCache.cs (8)
31catch (Exception ex) 71catch (Exception ex) 92catch (Exception ex) 125catch (Exception ex) 143catch (Exception ex) 150catch (Exception ex) 259catch (Exception ex) 288catch (Exception ex)
Certificates\CertificateGeneration\CertificateManager.cs (13)
197catch (Exception e) 341catch (Exception e) 380catch (Exception e) 396catch (Exception e) 419catch (Exception e) 449catch (Exception e) 565catch (Exception e) 590catch (Exception e) 727catch (Exception e) 750catch (Exception ex) 778catch (Exception ex) 883catch (Exception ex) 1011catch (Exception ex)
Certificates\CertificateGeneration\MacOSCertificateManager.cs (4)
144catch (Exception ex) 325catch (Exception ex) 448catch (Exception) 469catch (Exception ex)
Certificates\CertificateGeneration\UnixCertificateManager.cs (11)
225catch (Exception ex) 431catch (Exception ex) 456catch (Exception ex) 721catch (Exception ex) 750catch (Exception ex) 780catch (Exception ex) 800catch (Exception ex) 826catch (Exception ex) 962catch (Exception ex) 999catch (Exception ex) 1074catch (Exception ex)
Certificates\NativeCertificateToolRunner.cs (1)
170catch (Exception ex)
Commands\AddCommand.cs (1)
270catch (Exception ex)
Commands\AgentMcpCommand.cs (1)
165catch (Exception ex)
Commands\AppHostLauncher.cs (2)
232catch (Exception ex) 264catch (Exception ex)
Commands\CacheCommand.cs (7)
62catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 75catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 93catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 106catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 131catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 144catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 162catch (Exception ex)
Commands\ConfigCommand.cs (2)
191catch (Exception ex) 423catch (Exception ex)
Commands\ExecCommand.cs (1)
293catch (Exception ex)
Commands\ExportCommand.cs (1)
197catch (Exception ex)
Commands\McpCallCommand.cs (1)
150catch (Exception ex)
Commands\PipelineCommandBase.cs (1)
349catch (Exception ex)
Commands\PsCommand.cs (2)
168catch (Exception ex) 181catch (Exception ex)
Commands\RestoreCommand.cs (1)
144catch (Exception ex)
Commands\RunCommand.cs (1)
403catch (Exception ex)
Commands\Sdk\SdkDumpCommand.cs (2)
240catch (Exception ex) 256catch (Exception ex)
Commands\Sdk\SdkGenerateCommand.cs (2)
210catch (Exception ex) 226catch (Exception ex)
Commands\StopCommand.cs (5)
207catch (Exception ex) 223catch (Exception ex) 236catch (Exception ex) 266catch (Exception ex) 307catch (Exception)
Commands\UpdateCommand.cs (5)
328catch (Exception ex) 481catch (Exception ex) 546catch (Exception ex) 552catch (Exception ex) 567catch (Exception ex)
Configuration\AspireConfigFile.cs (1)
270catch (Exception ex)
Diagnostics\FileLoggerProvider.cs (3)
174internal void WriteLog(DateTimeOffset timestamp, LogLevel level, string category, string message, Exception? exception = null) 236public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
DotNet\DotNetCliRunner.cs (3)
219catch (Exception ex) 818catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException) 869catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException)
DotNet\DotNetSdkInstaller.cs (1)
91catch (Exception ex) when (ex is not OperationCanceledException) // If cancellation is requested let that bubble up.
Exceptions\ChannelNotFoundException.cs (1)
16public ChannelNotFoundException(string message, Exception innerException)
Exceptions\DotNetSdkNotInstalledException.cs (1)
21public DotNetSdkNotInstalledException(string message, Exception innerException)
Exceptions\ProjectAlreadyExistsException.cs (1)
21public ProjectAlreadyExistsException(string message, Exception innerException)
Git\GitRepository.cs (1)
67catch (Exception ex) when (ex is InvalidOperationException or System.ComponentModel.Win32Exception)
Interaction\ConsoleInteractionService.cs (1)
269catch (Exception)
Interaction\ExtensionInteractionService.cs (6)
58catch (Exception ex) when (ex is not ExtensionOperationCanceledException) 135catch (Exception ex) 166catch (Exception ex) 214catch (Exception ex) 246catch (Exception ex) 280catch (Exception ex)
Interaction\SpectreConsoleLoggerProvider.cs (2)
40public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Layout\LayoutDiscovery.cs (1)
130catch (Exception ex)
Mcp\Docs\DocsCache.cs (10)
175catch (Exception ex) 221catch (Exception ex) 243catch (Exception ex) 259catch (Exception ex) 276catch (Exception ex) 294catch (Exception ex) 311catch (Exception ex) 342catch (Exception ex) 348catch (Exception ex) 373catch (Exception ex)
Mcp\Docs\DocsFetcher.cs (1)
113catch (Exception ex)
Mcp\McpResourceToolRefreshService.cs (1)
117catch (Exception ex)
Mcp\Tools\DoctorTool.cs (1)
61catch (Exception ex)
Mcp\Tools\ExecuteResourceCommandTool.cs (1)
96catch (Exception ex)
Mcp\Tools\ListConsoleLogsTool.cs (1)
100catch (Exception ex) when (ex is not McpProtocolException)
Mcp\Tools\ListIntegrationsTool.cs (1)
135catch (Exception ex)
Npm\NpmRunner.cs (1)
264catch (Exception ex) when (ex is InvalidOperationException or System.ComponentModel.Win32Exception)
Npm\SigstoreNpmProvenanceChecker.cs (2)
55catch (Exception ex) 241catch (Exception ex)
NuGet\NuGetPackagePrefetcher.cs (2)
38catch (System.Exception ex) 62catch (System.Exception ex)
OpenCode\OpenCodeCliRunner.cs (1)
71catch (Exception ex) when (ex is InvalidOperationException or System.ComponentModel.Win32Exception)
Program.cs (3)
174catch (Exception ex) 678catch (Exception ex) 737catch (Exception ex)
Projects\AppHostServerSession.cs (1)
74catch (Exception ex)
Projects\DotNetAppHostProject.cs (1)
576catch (Exception ex)
Projects\DotNetBasedAppHostServerProject.cs (1)
284catch (Exception ex)
Projects\FallbackProjectParser.cs (1)
62catch (Exception ex)
Projects\GuestAppHostProject.cs (13)
290catch (Exception ex) 463catch (Exception ex) 548catch (Exception ex) 565catch (Exception ex) 582catch (Exception ex) 697catch (Exception ex) 827catch (Exception ex) 880catch (Exception ex) 896catch (Exception ex) 914catch (Exception ex) 992catch (Exception ex) 1055catch (Exception ex) 1078catch (Exception ex)
Projects\PrebuiltAppHostServer.cs (3)
148catch (Exception ex) 213catch (Exception ex) 395catch (Exception ex)
Projects\ProjectUpdater.cs (4)
557catch (Exception ex) 807catch (Exception ex) 849catch (Exception ex) 1167public ProjectUpdaterException(string message, System.Exception inner) : base(message, inner) { }
Projects\RunningInstanceManager.cs (1)
80catch (Exception ex)
Scaffolding\ScaffoldingService.cs (2)
139catch (Exception ex) 165catch (Exception ex)
src\Shared\IConfigurationExtensions.cs (2)
121catch (Exception ex) 158catch (Exception ex)
Telemetry\AspireCliTelemetry.cs (2)
140public void RecordError(string message, Exception exception) 211catch (Exception ex)
Telemetry\MachineInformationProviderBase.cs (1)
46catch (Exception ex)
Telemetry\UnixMachineInformationProvider.cs (3)
74catch (Exception ex) 89catch (Exception ex) 116catch (Exception ex)
Telemetry\WindowsMachineInformationProvider.cs (2)
35catch (Exception ex) 49catch (Exception ex)
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
97catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Templating\CliTemplateFactory.TypeScriptStarterTemplate.cs (1)
98catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
Utils\AspireAnsiConsoleOutput.cs (2)
93catch (Exception ex) when (ex is IOException or InvalidOperationException) 105catch (Exception ex) when (ex is IOException or InvalidOperationException)
Utils\CliDownloader.cs (1)
95catch (Exception ex)
Utils\EnvironmentChecker\ContainerRuntimeCheck.cs (3)
71catch (Exception ex) 352catch (Exception ex) 485catch (Exception ex)
Utils\EnvironmentChecker\DeprecatedWorkloadCheck.cs (1)
88catch (Exception ex)
Utils\EnvironmentChecker\DevCertsCheck.cs (1)
32catch (Exception ex)
Utils\EnvironmentChecker\DotNetSdkCheck.cs (2)
70catch (Exception ex) 120catch (Exception ex)
Utils\EnvironmentChecker\EnvironmentChecker.cs (1)
34catch (Exception ex)
Aspire.Azure.Data.Tables.Tests (1)
ConformanceTests.cs (1)
137catch (Exception)
Aspire.Azure.Messaging.EventHubs (1)
EventHubsComponent.cs (1)
109catch (Exception ex) when (ex is FormatException or IndexOutOfRangeException)
Aspire.Azure.Messaging.EventHubs.Tests (5)
ConformanceTests.EventHubConsumerClient.cs (1)
48catch (Exception)
ConformanceTests.EventHubProducerClient.cs (1)
56catch (Exception)
ConformanceTests.EventHubsBufferedProducerClient.cs (1)
50catch (Exception)
ConformanceTests.EventProcessorClient.cs (1)
53catch (Exception)
ConformanceTests.PartitionReceiver.cs (1)
58catch (Exception)
Aspire.Azure.Messaging.ServiceBus.Tests (2)
ConformanceTests_Queue.cs (1)
59catch (Exception)
ConformanceTests_Topic.cs (1)
59catch (Exception)
Aspire.Azure.Messaging.WebPubSub (1)
AspireWebPubSubExtensions.cs (1)
173catch (Exception ex)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
AspireAzureEFPostgreSqlExtensionsTests.cs (1)
305var exception = Record.Exception(() => builder.AddAzureNpgsqlDbContext<TestDbContext>("npgsql"));
Aspire.Azure.Search.Documents (1)
AzureSearchIndexHealthCheck.cs (1)
29catch (Exception ex)
Aspire.Azure.Security.KeyVault.Tests (3)
CertificateClientConformanceTests.cs (1)
122catch (Exception)
KeyClientConformanceTests.cs (1)
124catch (Exception)
SecretClientConformanceTests.cs (1)
123catch (Exception)
Aspire.Azure.Storage.Blobs.Tests (1)
ConformanceTests.cs (1)
140catch (Exception)
Aspire.Azure.Storage.Files.DataLake (2)
AzureDataLakeFileSystemHealthCheck.cs (1)
29catch (Exception e)
AzureDataLakeStorageHealthCheck.cs (1)
32catch (Exception e)
Aspire.Azure.Storage.Queues.Tests (1)
ConformanceTests.cs (1)
141catch (Exception)
Aspire.Cli.EndToEnd.Tests (2)
KubernetesPublishTests.cs (1)
324catch (Exception ex)
tests\Shared\TemporaryRepo.cs (1)
52catch (Exception ex)
Aspire.Cli.Tests (43)
Interaction\ConsoleInteractionServiceTests.cs (23)
66var exception = Record.Exception(() => interactionService.DisplayError(errorMessage)); 91var exception = Record.Exception(() => interactionService.DisplaySubtleMessage(message)); 120var exception = Record.Exception(() => interactionService.DisplayLines(lines)); 147var exception = Record.Exception(() => interactionService.DisplayMarkdown(markdown)); 174var exception = Record.Exception(() => interactionService.DisplayMarkdown(plainText)); 378var exception = Record.Exception(() => interactionService.DisplayIncompatibleVersionError(ex, "9.0.0-preview.1 [rc]")); 406var exception = Record.Exception(() => interactionService.DisplayMessage(KnownEmojis.PageFacingUp, message)); 434var exception = Record.Exception(() => interactionService.DisplayVersionUpdateNotification(version, updateCommand)); 463var exception = Record.Exception(() => interactionService.DisplayError(errorMessage)); 492var exception = Record.Exception(() => interactionService.DisplayMessage(KnownEmojis.PageFacingUp, $"See logs at {path}")); 519var exception = Record.Exception(() => interactionService.DisplayMessage(KnownEmojis.FileFolder, message, allowMarkup: true)); 547var exception = Record.Exception(() => interactionService.DisplayMessage(KnownEmojis.FileFolder, message, allowMarkup: true)); 572var exception = Record.Exception(() => interactionService.DisplaySuccess(message)); 599var exception = await Record.ExceptionAsync(() => 627var exception = Record.Exception(() => interactionService.ShowStatus(statusText, () => { })); 654var exception = await Record.ExceptionAsync(() => 683var exception = await Record.ExceptionAsync(() => 709var exception = await Record.ExceptionAsync(() => 738var exception = Record.Exception(() => 767var exception = Record.Exception(() => interactionService.DisplaySubtleMessage(message)); 833var exception = Record.Exception(() => console.MarkupLine(formattedOutput)); 878var exception = Record.Exception(() => console.MarkupLine(safeOutput)); 938var exception = Record.Exception(() => safeFormatter("MSFT-Provisioning-01[Prod] (guid)"));
Mcp\Docs\DocsFetcherTests.cs (2)
293public static TheoryData<Exception> ExceptionData => new() 302public async Task FetchDocsAsync_Exception_ReturnsNull(Exception exception)
Mcp\Docs\DocsIndexServiceTests.cs (1)
1001private sealed class ThrowingDocsFetcher(Exception exception) : IDocsFetcher
Mcp\Docs\DocsSearchServiceTests.cs (1)
410private sealed class ThrowingDocsFetcher(Exception exception) : IDocsFetcher
tests\Shared\Logging\TestLogger.cs (2)
38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
tests\Shared\Logging\TestLoggerT.cs (2)
29Exception? exception, 30Func<TState, Exception?, string> formatter)
tests\Shared\Logging\WriteContext.cs (2)
14public Exception? Exception { get; set; } 16public Func<object?, Exception?, string>? Formatter { get; set; }
tests\Shared\Logging\XunitLoggerProvider.cs (3)
60LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 105catch (Exception)
tests\Shared\TemporaryRepo.cs (1)
52catch (Exception ex)
Utils\FirstTimeUseNoticeSentinelTests.cs (1)
69var exception = Record.Exception(sentinel.CreateIfNotExists);
Utils\IsolatedUserSecretsHelperTests.cs (3)
85var exception = Record.Exception(() => IsolatedUserSecretsHelper.CleanupIsolatedUserSecrets(null)); 93var exception = Record.Exception(() => IsolatedUserSecretsHelper.CleanupIsolatedUserSecrets("")); 103var exception = Record.Exception(() => IsolatedUserSecretsHelper.CleanupIsolatedUserSecrets(nonExistentId));
Utils\MockHttpMessageHandler.cs (2)
14private readonly Exception? _exception; 46public MockHttpMessageHandler(Exception exception)
Aspire.Components.Common.TestUtilities (2)
ConformanceTests.cs (2)
324catch (Exception) { } 518catch (Exception) when (!CanConnectToServer)
Aspire.Confluent.Kafka (1)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\OpenTelemetryConsumeResultExtensions.cs (1)
132catch (Exception ex)
Aspire.Dashboard (54)
Components\Controls\AssistantChat.razor.cs (1)
291catch (Exception ex) when (_cts.Token.IsCancellationRequested)
Components\Dialogs\ManageDataDialog.razor.cs (3)
541catch (Exception ex) 577catch (Exception ex) 608catch (Exception ex)
Components\Interactions\InteractionsProvider.cs (3)
114catch (Exception ex) when (!_cts.IsCancellationRequested) 126catch (Exception ex) when (!_cts.IsCancellationRequested) 487catch (Exception ex)
Components\Pages\ConsoleLogs.razor.cs (2)
228catch (Exception ex) 800catch (Exception ex) when (ex is not OperationCanceledException)
Configuration\DashboardOptions.cs (2)
475catch (Exception ex) 485catch (Exception ex)
DashboardWebApplication.cs (1)
444catch (Exception ex)
Mcp\AspireResourceMcpTools.cs (1)
198catch (Exception ex)
Mcp\McpExtensions.cs (1)
96catch (Exception ex)
Model\Assistant\AIContextProvider.cs (1)
124catch (Exception ex)
Model\Assistant\AssistantChatViewModel.cs (5)
366catch (Exception ex) 495catch (Exception ex) when (currentResponseCts.Token.IsCancellationRequested) 585catch (Exception ex) 659catch (Exception responseEx) 706catch (Exception ex) when (!cancellationToken.IsCancellationRequested)
Model\Assistant\ChatClientFactory.cs (1)
153catch (Exception ex)
Model\BrowserStorage\BrowserStorageBase.cs (1)
34catch (Exception ex)
Model\BrowserStorage\LocalBrowserStorage.cs (1)
38catch (Exception ex)
Model\DashboardCommandExecutor.cs (1)
59catch (Exception ex)
Model\GenAI\GenAIMessages.cs (1)
178public Exception? Error { get; set; }
Model\GenAI\GenAIVisualizerDialogViewModel.cs (5)
117catch (Exception ex) 129catch (Exception ex) 137var current = ex; 159catch (Exception ex) 568catch (Exception ex)
Otlp\Model\OtlpHelpers.cs (1)
484catch (Exception ex)
Otlp\Model\OtlpResource.cs (4)
112catch (Exception ex) 155catch (Exception ex) 170catch (Exception ex) 185catch (Exception ex)
Otlp\Storage\TelemetryRepository.cs (5)
324catch (Exception ex) 401catch (Exception ex) 1067catch (Exception ex) 1096catch (Exception ex) 1265catch (Exception ex)
ServiceClient\DashboardClient.cs (3)
270catch (Exception ex) 286catch (Exception ex) 475catch (Exception ex) when (ex is not OperationCanceledException)
ServiceClient\Partials.cs (1)
49catch (Exception ex)
src\Shared\IConfigurationExtensions.cs (2)
121catch (Exception ex) 158catch (Exception ex)
src\Shared\TaskHelpers.cs (1)
35catch (Exception ex) when (logger is not null)
Telemetry\DashboardTelemetrySender.cs (2)
71catch (Exception ex) 154catch (Exception ex)
Telemetry\TelemetryErrorRecorder.cs (2)
13void RecordError(string message, Exception exception, bool writeToLogging = false); 27public void RecordError(string message, Exception exception, bool writeToLogging = false)
Telemetry\TelemetryLoggerProvider.cs (2)
44public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Utils\CallbackThrottler.cs (1)
117catch (Exception ex)
Aspire.Dashboard.Components.Tests (10)
Shared\TestTelemetryErrorRecorder.cs (1)
10public void RecordError(string message, Exception exception, bool writeToLogging = false)
tests\Shared\Logging\TestLogger.cs (2)
38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
tests\Shared\Logging\TestLoggerT.cs (2)
29Exception? exception, 30Func<TState, Exception?, string> formatter)
tests\Shared\Logging\WriteContext.cs (2)
14public Exception? Exception { get; set; } 16public Func<object?, Exception?, string>? Formatter { get; set; }
tests\Shared\Logging\XunitLoggerProvider.cs (3)
60LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 105catch (Exception)
Aspire.Dashboard.Tests (12)
Integration\ServerRetryHelper.cs (1)
77catch (Exception ex)
Model\TestTelemetryErrorRecorder.cs (1)
10public void RecordError(string message, Exception exception, bool writeToLogging = false)
TelemetryRepositoryTests\TraceTests.cs (1)
922catch (Exception ex)
tests\Shared\Logging\TestLogger.cs (2)
38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
tests\Shared\Logging\TestLoggerT.cs (2)
29Exception? exception, 30Func<TState, Exception?, string> formatter)
tests\Shared\Logging\WriteContext.cs (2)
14public Exception? Exception { get; set; } 16public Func<object?, Exception?, string>? Formatter { get; set; }
tests\Shared\Logging\XunitLoggerProvider.cs (3)
60LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 105catch (Exception)
Aspire.Deployment.EndToEnd.Tests (55)
AcaCompactNamingDeploymentTests.cs (2)
169catch (Exception ex) 210catch (Exception ex)
AcaCompactNamingUpgradeDeploymentTests.cs (2)
283catch (Exception ex) 324catch (Exception ex)
AcaCustomRegistryDeploymentTests.cs (2)
235catch (Exception ex) 280catch (Exception ex)
AcaDeploymentErrorOutputTests.cs (2)
168catch (Exception ex) 210catch (Exception ex)
AcaExistingRegistryDeploymentTests.cs (2)
259catch (Exception ex) 304catch (Exception ex)
AcaManagedRedisDeploymentTests.cs (2)
336catch (Exception ex) 382catch (Exception ex)
AcaStarterDeploymentTests.cs (2)
201catch (Exception ex) 249catch (Exception ex)
AcrPurgeTaskDeploymentTests.cs (2)
270catch (Exception ex) 311catch (Exception ex)
AksStarterDeploymentTests.cs (2)
354catch (Exception ex) 406catch (Exception ex)
AksStarterWithRedisDeploymentTests.cs (2)
383catch (Exception ex) 434catch (Exception ex)
AppServicePythonDeploymentTests.cs (2)
192catch (Exception ex) 234catch (Exception ex)
AppServiceReactDeploymentTests.cs (2)
201catch (Exception ex) 249catch (Exception ex)
AzureAppConfigDeploymentTests.cs (2)
175catch (Exception ex) 222catch (Exception ex)
AzureContainerRegistryDeploymentTests.cs (2)
150catch (Exception ex) 197catch (Exception ex)
AzureEventHubsDeploymentTests.cs (2)
175catch (Exception ex) 222catch (Exception ex)
AzureKeyVaultDeploymentTests.cs (2)
175catch (Exception ex) 222catch (Exception ex)
AzureLogAnalyticsDeploymentTests.cs (2)
150catch (Exception ex) 197catch (Exception ex)
AzureServiceBusDeploymentTests.cs (2)
177catch (Exception ex) 224catch (Exception ex)
AzureStorageDeploymentTests.cs (2)
181catch (Exception ex) 229catch (Exception ex)
PythonFastApiDeploymentTests.cs (2)
193catch (Exception ex) 235catch (Exception ex)
tests\Shared\TemporaryRepo.cs (1)
52catch (Exception ex)
TypeScriptExpressDeploymentTests.cs (2)
189catch (Exception ex) 230catch (Exception ex)
VnetKeyVaultConnectivityDeploymentTests.cs (2)
258catch (Exception ex) 299catch (Exception ex)
VnetKeyVaultInfraDeploymentTests.cs (2)
190catch (Exception ex) 237catch (Exception ex)
VnetSqlServerConnectivityDeploymentTests.cs (2)
259catch (Exception ex) 300catch (Exception ex)
VnetSqlServerInfraDeploymentTests.cs (2)
191catch (Exception ex) 238catch (Exception ex)
VnetStorageBlobConnectivityDeploymentTests.cs (2)
265catch (Exception ex) 306catch (Exception ex)
VnetStorageBlobInfraDeploymentTests.cs (2)
192catch (Exception ex) 239catch (Exception ex)
Aspire.EndToEnd.Tests (3)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (1)
267catch (Exception ex)
tests\Shared\TemplatesTesting\ProjectInfo.cs (1)
51catch (Exception ex)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
177catch (Exception ex)
Aspire.Hosting (112)
ApplicationModel\ExecutionConfigurationGathererContext.cs (3)
46List<Exception> exceptions = new(); 62catch (Exception ex) 82catch (Exception ex)
ApplicationModel\ExecutionConfigurationResult.cs (1)
30public Exception? Exception { get; init; }
ApplicationModel\IExecutionConfigurationResult.cs (1)
44Exception? Exception { get; }
ApplicationModel\ProjectResource.cs (2)
221catch (Exception ex) 285catch (Exception ex)
ApplicationModel\ResourceCommandAnnotation.cs (3)
139/// Produces an unsuccessful result from an <see cref="Exception"/>. <see cref="Exception.Message"/> is used as the error message. 142public static ExecuteCommandResult Failure(Exception exception) => Failure(exception.Message);
ApplicationModel\ResourceCommandService.cs (1)
183catch (Exception ex)
ApplicationModel\ResourceExtensions.cs (8)
297Action<object?, string?, Exception?, bool> processValue, 312catch (Exception ex) 336Action<object?, string?, Exception?, bool> processValue, 393Action<string, object?, string?, Exception?> processValue, 408catch (Exception ex) 428Action<string, object?, string?, Exception?> processValue, 554Action<string?, Exception?> processValue, 587catch (Exception ex)
ApplicationModel\ResourceLoggerService.cs (4)
119public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 592public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
ApplicationModel\ValueSnapshot.cs (1)
67public void SetException(Exception exception)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (4)
728catch (Exception ex) 809catch (Exception ex) 859catch (Exception ex) 889catch (Exception ex)
Backchannel\AuxiliaryBackchannelService.cs (4)
101catch (Exception ex) 111catch (Exception ex) 125catch (Exception ex) 183catch (Exception ex)
Backchannel\BackchannelLoggerProvider.cs (2)
91public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
ConnectionStringBuilderExtensions.cs (1)
106catch (Exception ex)
Dashboard\DashboardEventHandlers.cs (5)
111catch (Exception) 811catch (Exception ex) 869catch (Exception ex) 933catch (Exception ex) 946catch (Exception ex)
Dashboard\DashboardService.cs (2)
179catch (Exception ex) when (ex is not OperationCanceledException) 395catch (Exception ex)
Dashboard\DashboardServiceData.cs (1)
82catch (Exception ex) when (ex is not OperationCanceledException)
Dashboard\DashboardServiceHost.cs (1)
129catch (Exception ex)
Dcp\DcpDependencyCheck.cs (1)
112catch (Exception ex) when
Dcp\DcpExecutor.cs (9)
319catch (Exception ex) 351catch (Exception ex) 475catch (Exception ex) 743catch (Exception ex) 1680catch (Exception ex) 1690catch (Exception ex) 1891catch (Exception ex) 2085catch (Exception ex) 2677catch (Exception ex)
Dcp\DcpHost.cs (3)
225catch (Exception ex) 504catch (Exception ex) 528catch (Exception ex)
Dcp\DcpPipelineBuilder.cs (1)
47ShouldHandle = new PredicateBuilder().Handle<Exception>(),
Dcp\HostDashboardEndpointProvider.cs (1)
23catch (Exception ex)
Dcp\KubernetesService.cs (6)
418.Handle<Exception>(RetryOnConnectivityErrors) 454Func<Exception, bool> isRetryable, 469Func<Exception, bool> isRetryable, 492private static bool RetryOnConnectivityErrors(Exception ex) => ex is HttpRequestException || ex is KubeConfigException; 493private static bool RetryOnConnectivityAndConflictErrors(Exception ex) => 501Func<Exception, bool> isRetryable)
Dcp\ResourceLogSource.cs (1)
79catch (Exception ex)
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
67catch (Exception ex) when (!stoppingToken.IsCancellationRequested)
Devcontainers\DevcontainerSettingsWriter.cs (1)
90catch (Exception ex)
DeveloperCertificateService.cs (1)
129catch (Exception ex)
DistributedApplicationException.cs (1)
32public DistributedApplicationException(string message, Exception inner) : base(message, inner) { }
DistributedApplicationOptions.cs (1)
229catch (Exception ex)
Exceptions.cs (1)
10public FailedToApplyEnvironmentException(string message, Exception inner) : base(message, inner) { }
Exec\ExecResourceManager.cs (3)
58Exception? execResourceInitializationException = null; 68catch (Exception ex) 178catch (Exception ex)
ExternalServiceBuilderExtensions.cs (2)
120catch (Exception ex) 305catch (Exception ex)
Health\ResourceHealthCheckService.cs (3)
60catch (Exception ex) 162catch (Exception ex) when (!cancellationToken.IsCancellationRequested) 208catch (Exception ex) when (!cancellationToken.IsCancellationRequested)
IInteractionService.cs (1)
189catch (Exception ex)
MissingParameterValueException.cs (1)
33public MissingParameterValueException(string message, Exception innerException) : base(message, innerException)
Orchestrator\ApplicationOrchestrator.cs (1)
479catch (Exception ex)
Orchestrator\OrchestratorHostService.cs (1)
63catch (Exception ex)
Orchestrator\ParameterProcessor.cs (7)
84catch (Exception ex) 160catch (Exception ex) 237catch (Exception) 262catch (Exception) 411catch (Exception ex) 444catch (Exception ex) 580catch (Exception ex)
Pipelines\DistributedApplicationPipeline.cs (4)
623catch (Exception ex) 660catch (Exception ex) 676catch (Exception ex) 851catch (Exception ex)
Pipelines\Internal\FileDeploymentStateManager.cs (2)
123catch (Exception ex) 135catch (Exception ex)
Pipelines\Internal\UserSecretsDeploymentStateManager.cs (1)
48catch (Exception ex)
Pipelines\PipelineLoggerProvider.cs (2)
79public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Pipelines\PipelineStepHelpers.cs (2)
95catch (Exception ex) 135catch (Exception ex)
Publishing\PipelineExecutor.cs (1)
78catch (Exception ex)
Publishing\ResourceContainerImageManager.cs (1)
485catch (Exception ex)
ResourceBuilderExtensions.cs (1)
2505catch (Exception ex)
src\Shared\IConfigurationExtensions.cs (2)
121catch (Exception ex) 158catch (Exception ex)
src\Shared\TaskHelpers.cs (1)
35catch (Exception ex) when (logger is not null)
UserSecrets\UserSecretsManagerFactory.cs (1)
112catch (Exception)
Utils\DotnetSdkUtils.cs (1)
53catch (Exception) { }
Utils\FileSystemService.cs (1)
120catch (Exception ex)
VersionChecking\VersionCheckService.cs (1)
73catch (Exception ex)
Aspire.Hosting.Azure (21)
AzureBicepResource.cs (1)
349catch (Exception ex)
AzureEnvironmentResource.cs (1)
180catch (Exception)
AzurePublishingContext.cs (1)
106catch (Exception ex)
Exceptions.cs (4)
10public AzureCliNotOnPathException(string message, Exception inner) : base(message, inner) { } 17public MissingConfigurationException(string message, Exception inner) : base(message, inner) { } 24public FailedToApplyEnvironmentException(string message, Exception inner) : base(message, inner) { } 29public ProvisioningFailedException(string message, Exception inner) : base(message, inner) { }
Provisioning\Internal\BaseProvisioningContextProvider.cs (5)
142catch (Exception) 242catch (Exception ex) 270catch (Exception ex) 303catch (Exception ex) 338catch (Exception ex)
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (5)
74catch (Exception ex) 145catch (Exception ex) 244catch (Exception ex) 343catch (Exception ex) 438catch (Exception ex)
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
85catch (Exception ex)
Provisioning\Provisioners\AzureProvisioner.cs (3)
102catch (Exception) 124catch (Exception) 246catch (Exception ex)
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryHelpers.cs (1)
59catch (Exception ex)
Aspire.Hosting.Azure.Kusto (4)
AzureKustoBuilderExtensions.cs (1)
294catch (Exception e)
AzureKustoEmulatorResiliencePipelines.cs (2)
23ShouldHandle = new PredicateBuilder().Handle<Exception>(IsTransient), 34private static bool IsTransient(Exception ex) => ex is ICloudPlatformException cpe && !cpe.IsPermanent;
AzureKustoHealthCheck.cs (1)
40catch (Exception ex)
Aspire.Hosting.Azure.Tests (18)
AzureKeyVaultTests.cs (7)
335var exception = Record.Exception(() => kv.AddSecret(validSecretName, secretParam)); 509var exception = Record.Exception(() => 523var exception = Record.Exception(() => 567var exception = Record.Exception(() => 600var exception = Record.Exception(() => 615var exception = Record.Exception(() => 629var exception = Record.Exception(() =>
AzureOpenAIExtensionsTests.cs (6)
119var exception = Record.Exception(() => 133var exception = Record.Exception(() => 177var exception = Record.Exception(() => 200var exception = Record.Exception(() => 215var exception = Record.Exception(() => 229var exception = Record.Exception(() =>
AzureServiceBusExtensionsTests.cs (2)
852var exception = Record.Exception(() => 875var exception = Record.Exception(() =>
AzureStorageExtensionsTests.cs (3)
939var exception = Record.Exception(() => 953var exception = Record.Exception(() => 980var exception = Record.Exception(() =>
Aspire.Hosting.DevTunnels (6)
DevTunnelHealthCheck.cs (1)
58catch (Exception ex)
DevTunnelPortHealthCheck.cs (1)
40catch (Exception ex)
DevTunnelResourceBuilderExtensions.cs (4)
154catch (Exception ex) 213catch (Exception ex) 746catch (Exception ex) 797catch (Exception ex)
Aspire.Hosting.Docker (2)
DockerComposeEnvironmentResource.cs (2)
276catch (Exception ex) 335catch (Exception ex)
Aspire.Hosting.Foundry (3)
FoundryExtensions.cs (2)
260catch (Exception e) 348catch (Exception e)
HostedAgent\HostedAgentBuilderExtension.cs (1)
202catch (Exception ex)
Aspire.Hosting.GitHub.Models (3)
GitHubModelsHealthCheck.cs (1)
64catch (Exception ex)
src\Shared\IConfigurationExtensions.cs (2)
121catch (Exception ex) 158catch (Exception ex)
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
623catch (Exception ex)
Aspire.Hosting.Maui (6)
src\Shared\IConfigurationExtensions.cs (2)
121catch (Exception ex) 158catch (Exception ex)
Utilities\MauiAndroidEnvironmentAnnotation.cs (1)
114catch (Exception ex)
Utilities\MauiEnvironmentHelper.cs (2)
169catch (Exception ex) 324catch (Exception ex)
Utilities\MauiiOSEnvironmentAnnotation.cs (1)
114catch (Exception ex)
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
171catch (Exception e)
Aspire.Hosting.Nats (1)
src\Components\Aspire.NATS.Net\NatsHealthCheck.cs (1)
31catch (Exception)
Aspire.Hosting.OpenAI (4)
OpenAIHealthCheck.cs (1)
78catch (Exception ex)
OpenAIModelHealthCheck.cs (1)
56catch (Exception ex)
src\Shared\IConfigurationExtensions.cs (2)
121catch (Exception ex) 158catch (Exception ex)
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
732catch (Exception e)
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
396var exception = Record.Exception(() =>
Aspire.Hosting.Qdrant (1)
src\Components\Aspire.Qdrant.Client\QdrantHealthCheck.cs (1)
28catch (Exception ex)
Aspire.Hosting.RemoteHost (19)
AssemblyLoader.cs (1)
127catch (Exception ex)
Ats\AtsMarshaller.cs (1)
349catch (Exception ex) when (ex is not CapabilityException)
Ats\CapabilityDispatcher.cs (2)
440catch (Exception ex) 509catch (Exception ex) when (ex is not InvalidOperationException)
Ats\CapabilityException.cs (3)
27public CapabilityException(AtsError error, Exception innerException) 113Exception innerException) 129Exception? innerException = null)
CodeGeneration\CodeGenerationService.cs (2)
55catch (Exception ex) 169catch (Exception ex)
CodeGeneration\CodeGeneratorResolver.cs (1)
72catch (Exception ex)
JsonRpcServer.cs (4)
114catch (Exception ex) 174catch (Exception ex) 253catch (Exception ex) 295catch (Exception ex)
Language\LanguageService.cs (3)
59catch (Exception ex) 92catch (Exception ex) 123catch (Exception ex)
Language\LanguageSupportResolver.cs (1)
81catch (Exception ex)
RemoteAppHostService.cs (1)
93catch (Exception ex)
Aspire.Hosting.RemoteHost.Tests (1)
CallbackProxyTests.cs (1)
414public Exception? ExceptionToThrow { get; set; }
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
314catch (Exception e)
Aspire.Hosting.Tasks (1)
GetNonExecutableReferences.cs (1)
53catch (Exception ex)
Aspire.Hosting.Testing (13)
DistributedApplicationEntryPointInvoker.cs (9)
23Action<Exception?>? entryPointCompleted = null) 53private readonly Action<Exception?>? _entryPointCompleted; 61Action<Exception?>? entryPointCompleted) 80Exception? exception = null; 110catch (Exception ex) 139public void OnError(Exception error) 172public void OnError(Exception error) 242void IObserver<DiagnosticListener>.OnError(Exception error) 265void IObserver<KeyValuePair<string, object?>>.OnError(Exception error)
DistributedApplicationFactory.cs (4)
432catch (Exception exception) 455private void OnEntryPointExit(Exception? exception) 482private void OnException(Exception exception) 619catch (Exception exception)
Aspire.Hosting.Testing.Tests (14)
TestingBuilderTests.cs (3)
511catch (Exception ex) 556catch (Exception exception) 564catch (Exception ex)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
153catch (Exception ex)
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (1)
132catch (Exception ex)
tests\Shared\Logging\TestLogger.cs (2)
38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
tests\Shared\Logging\TestLoggerT.cs (2)
29Exception? exception, 30Func<TState, Exception?, string> formatter)
tests\Shared\Logging\WriteContext.cs (2)
14public Exception? Exception { get; set; } 16public Func<object?, Exception?, string>? Formatter { get; set; }
tests\Shared\Logging\XunitLoggerProvider.cs (3)
60LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 105catch (Exception)
Aspire.Hosting.Tests (27)
AspireStoreTests.cs (1)
131Assert.ThrowsAny<Exception>(() => new AspireStore(basePath!, directoryService));
Dashboard\DashboardResourceTests.cs (2)
770public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Dashboard\DashboardServiceTests.cs (2)
427await Assert.ThrowsAnyAsync<Exception>(() => task).DefaultTimeout(); 468await Assert.ThrowsAnyAsync<Exception>(() => task).DefaultTimeout();
Dcp\TestKubernetesService.cs (1)
115catch (Exception ex)
DistributedApplicationTests.cs (2)
1523await Assert.ThrowsAnyAsync<Exception>(async () => 1597catch (Exception ex) when (ex is not EqualException)
InteractionServiceTests.cs (4)
1007var ex = await Assert.ThrowsAnyAsync<Exception>(() => interactionService.PromptInputsAsync("Validation Test", "Test validation", inputs)); 1040var ex = await Assert.ThrowsAnyAsync<Exception>(() => interactionService.PromptInputsAsync("Validation Test", "Test validation", inputs));
tests\Shared\DistributedApplicationTestingBuilderExtensions.cs (1)
132catch (Exception ex)
tests\Shared\Logging\TestLogger.cs (2)
38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
tests\Shared\Logging\TestLoggerT.cs (2)
29Exception? exception, 30Func<TState, Exception?, string> formatter)
tests\Shared\Logging\WriteContext.cs (2)
14public Exception? Exception { get; set; } 16public Func<object?, Exception?, string>? Formatter { get; set; }
tests\Shared\Logging\XunitLoggerProvider.cs (3)
60LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 105catch (Exception)
Utils\Grpc\TestAsyncStreamReader.cs (1)
30public void Complete(Exception? ex = null)
Utils\Grpc\TestServerStreamWriter.cs (1)
23public void Complete(Exception? ex = null)
Utils\LoggerNotificationExtensions.cs (1)
153catch (Exception ex)
Utils\PasswordGeneratorTests.cs (1)
111Exception? exception = Record.Exception(() => new Uri($"https://guest:{password}@localhost:12345"));
WaitForTests.cs (1)
298var ex = await Assert.ThrowsAsync(exceptionType, async () => {
Aspire.Hosting.Yarp (1)
YarpJsonConfigGeneratorBuilder.cs (1)
68catch (Exception ex)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (1)
AspireAzureEfCoreCosmosDBExtensionsTests.cs (1)
196var exception = Record.Exception(() => builder.AddCosmosDbContext<TestDbContext>("cosmos", "databaseName"));
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (1)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (1)
297var exception = Record.Exception(() => builder.AddSqlServerDbContext<TestDbContext>("sqlconnection"));
Aspire.Milvus.Client (1)
MilvusHealthCheck.cs (1)
30catch (Exception ex)
Aspire.MongoDB.EntityFrameworkCore.Tests (2)
AspireMongoDBEntityFrameworkCoreExtensionsTests.cs (1)
251var exception = Record.Exception(() => builder.AddMongoDbContext<TestDbContext>("mongodb", "testdb"));
MongoDBEntityFrameworkCorePublicApiTests.cs (1)
54var exception = Record.Exception(() => builder.AddMongoDbContext<TestDbContext>("mongodb"));
Aspire.NATS.Net (1)
NatsHealthCheck.cs (1)
31catch (Exception)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (1)
AspireEFPostgreSqlExtensionsTests.cs (1)
305var exception = Record.Exception(() => builder.AddNpgsqlDbContext<TestDbContext>("npgsql"));
Aspire.Oracle.EntityFrameworkCore.Tests (2)
AspireOracleEFCoreDatabaseExtensionsTests.cs (1)
298var exception = Record.Exception(() => builder.AddOracleDatabaseDbContext<TestDbContext>("orclconnection"));
ConformanceTests.cs (1)
172catch (Exception) when (!CanConnectToServer)
Aspire.Playground.Tests (10)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
153catch (Exception ex)
tests\Shared\Logging\TestLogger.cs (2)
38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
tests\Shared\Logging\TestLoggerT.cs (2)
29Exception? exception, 30Func<TState, Exception?, string> formatter)
tests\Shared\Logging\WriteContext.cs (2)
14public Exception? Exception { get; set; } 16public Func<object?, Exception?, string>? Formatter { get; set; }
tests\Shared\Logging\XunitLoggerProvider.cs (3)
60LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 105catch (Exception)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (1)
AspireEFMySqlExtensionsTests.cs (1)
296var exception = Record.Exception(() => builder.AddMySqlDbContext<TestDbContext>("mysql"));
Aspire.Qdrant.Client (1)
QdrantHealthCheck.cs (1)
28catch (Exception ex)
Aspire.RabbitMQ.Client (6)
src\Components\Aspire.RabbitMQ.Client\AspireRabbitMQExtensions.cs (4)
168catch (Exception ex) 178private sealed class FailedHealthCheck(Exception ex) : IHealthCheck 216catch (Exception ex) 257private static void AddRabbitMQExceptionTags(Activity? connectAttemptActivity, Exception ex)
src\Components\Aspire.RabbitMQ.Client\RabbitMQEventSourceLogForwarder.cs (2)
13private static readonly Func<ErrorEventSourceEvent, Exception?, string> s_formatErrorEvent = FormatErrorEvent; 56private static string FormatErrorEvent(ErrorEventSourceEvent eventSourceEvent, Exception? ex) =>
Aspire.RabbitMQ.Client.Tests (8)
AspireRabbitMQLoggingTests.cs (8)
120Exception testException; 125catch (Exception ex) 165Exception testException; 171catch (Exception ex) 224private static void LogError(string message, Exception ex) 229s_log.GetType().GetMethod("Error", [typeof(string), typeof(Exception)])!.Invoke(s_log, new object[] { message, ex }); 250public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Aspire.RabbitMQ.Client.v6.Tests (7)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (7)
120Exception testException; 125catch (Exception ex) 165Exception testException; 171catch (Exception ex) 224private static void LogError(string message, Exception ex) 250public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Aspire.Templates.Tests (4)
StarterTemplateRunTestsBase.cs (1)
117catch (Exception ex)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (1)
267catch (Exception ex)
tests\Shared\TemplatesTesting\ProjectInfo.cs (1)
51catch (Exception ex)
tests\Shared\TemplatesTesting\ToolCommand.cs (1)
177catch (Exception ex)
aspire-managed (5)
NuGet\Commands\LayoutCommand.cs (1)
233catch (Exception ex)
NuGet\Commands\RestoreCommand.cs (2)
229catch (Exception ex) 299catch (Exception ex)
NuGet\Commands\SearchCommand.cs (2)
143catch (Exception ex) 167catch (Exception ex)
AzureKusto.AppHost (1)
AzureKustoReadWriteDatabaseResourceBuilderExtensions.cs (1)
21ShouldHandle = new PredicateBuilder().Handle<Exception>(e => e is ICloudPlatformException cpe && !cpe.IsPermanent),
AzureKusto.Worker (1)
Program.cs (1)
40ShouldHandle = new PredicateBuilder().Handle<Exception>(e => e is ICloudPlatformException cpe && ! cpe.IsPermanent),
AzureSearch.ApiService (1)
Program.cs (1)
163catch (Exception ex)
Binding.Tcp.IntegrationTests (2)
OperationContextAsyncFlowTests.cs (2)
147public Exception Exception { get; private set; } 167catch (Exception e)
Client.ClientBase.IntegrationTests (9)
MessageInspectorTestHelpers.cs (1)
58catch (Exception)
SessionTests.cs (8)
200catch (Exception e) 311ResultsVerificationHelper<Exception>(canMakeServiceCall: true, cbClosedCalled: false, cbClosingCalled: false, cbFaultedCalled: false); 333ResultsVerificationHelper<Exception>(canMakeServiceCall: true, cbClosedCalled: false, cbClosingCalled: false, cbFaultedCalled: false); 406ResultsVerificationHelper<Exception>(canMakeServiceCall: true, cbClosedCalled: false, cbClosingCalled: false, cbFaultedCalled: false); 429ResultsVerificationHelper<Exception>(canMakeServiceCall: true, cbClosedCalled: false, cbClosingCalled: false, cbFaultedCalled: false); 472catch (Exception e) 537where ExpectedException : Exception 553catch (Exception e)
Client.ExpectedExceptions.IntegrationTests (9)
ExpectedExceptionTests.4.0.0.cs (3)
244Exception[] exceptions = new Exception[operationCount]; 337catch (Exception ex)
ExpectedExceptionTests.4.1.0.cs (4)
112catch (Exception ex) 494Exception[] exceptions = new Exception[operationCount]; 587catch (Exception ex)
ExpectedExceptionTests.4.1.1.cs (2)
27var exception = Assert.Throws<Exception>(() =>
CodeStyleConfigFileGenerator (20)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (3)
26internal static void OnFatalException(Exception exception) 63internal static void DumpStackTrace(Exception? exception = null, string? message = null) 74for (Exception? current = exception; current is object; current = current.InnerException)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (14)
24public OperationCanceledIgnoringCallerTokenException(Exception innerException) 32public delegate void ErrorReporterHandler(Exception exception, ErrorSeverity severity, bool forceDump); 38private static Exception? s_reportedException; 46/// cref="ReportNonFatalError(Exception, ErrorSeverity, bool)"/></param> 102public static bool ReportAndPropagate(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 114public static bool ReportAndPropagateUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 143public static bool ReportAndPropagateUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 164public static bool ReportAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 176public static bool ReportWithDumpAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 189public static bool ReportAndCatchUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 219public static bool ReportAndCatchUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 259private static void Report(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 270public static void ReportNonFatalError(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 275private static void ReportException(Exception exception, ErrorSeverity severity, bool forceDump, ErrorReporterHandler? handler)
src\roslyn\src\Dependencies\Contracts\ExceptionUtilities.cs (3)
21internal static Exception UnexpectedValue(object? o) 30internal static Exception Unreachable([CallerFilePath] string? path = null, [CallerLineNumber] int line = 0) 39internal static bool IsCurrentOperationBeingCancelled(Exception exception, CancellationToken cancellationToken)
Contract.Service.IntegrationTests (12)
ServiceContractTests.4.1.0.cs (12)
705Exception exception1 = null; 706Exception exception2 = null; 719catch (Exception e) 728catch (Exception e) 795Exception exception1 = null; 796Exception exception2 = null; 809catch (Exception e) 818catch (Exception e) 886Exception exception1 = null; 887Exception exception2 = null; 900catch (Exception e) 909catch (Exception e)
Contract.XmlSerializer.IntegrationTests (10)
XmlSerializerFormatTest.cs (10)
93catch (Exception exception) 115catch (Exception exception) 147catch (Exception ex) 195catch (Exception ex) 243catch (Exception ex) 291catch (Exception ex) 347catch (Exception ex) 404catch (Exception ex) 461catch (Exception ex) 499catch (Exception ex)
Crossgen2Tasks (5)
CommonFilePulledFromSdkRepo\BuildErrorException.cs (1)
22public BuildErrorException(string message, Exception innerException) : base(message, innerException)
CommonFilePulledFromSdkRepo\TaskBase.cs (4)
42catch (Exception e) 51private void LogErrorTelemetry(string eventName, Exception e) 58private static string ExceptionToStringWithoutMessage(Exception e) 85private static string NonAggregateExceptionToStringWithoutMessage(Exception e)
csc (18)
src\roslyn\src\Compilers\Shared\BuildClient.cs (2)
178catch (Exception ex) 244catch (Exception ex)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (11)
135catch (Exception) 147catch (Exception) 303catch (Exception e) 328catch (Exception e) 372catch (Exception e) 416catch (Exception e) when (e is IOException || e is TimeoutException) 442catch (Exception e) when (!(e is TaskCanceledException || e is OperationCanceledException)) 857catch (Exception) 904catch (Exception) 936catch (Exception) 955catch (Exception)
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (4)
59internal static void LogException(this ICompilerServerLogger logger, Exception exception, string reason) 71Exception? e = exception.InnerException; 82void AppendException(Exception exception) 137catch (Exception e)
src\roslyn\src\Compilers\Shared\RuntimeHostInfo.cs (1)
56catch (Exception ex)
CSharpSyntaxGenerator (1)
Program.cs (1)
109catch (Exception ex)
csi (1)
Csi.cs (1)
46catch (Exception ex)
DatabaseMigration.MigrationService (1)
ApiDbInitializer.cs (1)
32catch (Exception ex)
datacollector (1)
Program.cs (1)
27catch (Exception ex)
datacollector.arm64 (1)
src\vstest\src\datacollector\Program.cs (1)
27catch (Exception ex)
dotnet (131)
AutomaticEncodingRestorer.cs (2)
38catch (Exception ex) when (ex is IOException || ex is SecurityException) 57catch (Exception ex) when (ex is IOException || ex is SecurityException)
BuildServer\BuildServerException.cs (1)
18public BuildServerException(string message, Exception innerException) : base(message, innerException)
BuildServer\BuildServerProvider.cs (1)
89catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
CliCompletion.cs (6)
23catch (Exception) 29private static void Report(Exception e) => 38catch (Exception) 50catch (Exception) 62catch (Exception) 76catch (Exception e)
CliTransaction.cs (3)
22public Action<Exception> RollbackFailed { get; set; } 46catch (Exception) 58catch (Exception ex)
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (2)
441catch (Exception e) 451catch (Exception e2)
Commands\Clean\FileBasedAppArtifacts\CleanFileBasedAppArtifactsCommand.cs (2)
40catch (Exception ex) 173catch (Exception ex)
Commands\Hidden\Complete\CompleteCommand.cs (1)
44catch (Exception)
Commands\MSBuild\MSBuildForwardingApp.cs (1)
34catch (Exception)
Commands\MSBuild\MSBuildLogger.cs (2)
72catch (Exception) 112catch (Exception)
Commands\New\MSBuildEvaluation\CapabilityExpressionEvaluator.cs (2)
268internal Exception CreateInvalidExpressionException() 278internal static Exception CreateInvalidExpressionException(int position)
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (2)
89catch (Exception e) 173catch (Exception e)
Commands\New\MSBuildEvaluation\ProjectCapabilityConstraint.cs (2)
36catch (Exception e) 78catch (Exception e)
Commands\New\MSBuildEvaluation\ProjectContextSymbolSource.cs (1)
67catch (Exception e)
Commands\New\PostActions\DotnetAddPostActionProcessor.cs (2)
177catch (Exception e) 200catch (Exception e)
Commands\New\PostActions\DotnetRestorePostActionProcessor.cs (1)
63catch (Exception e)
Commands\New\PostActions\DotnetSlnPostActionProcessor.cs (1)
129catch (Exception e)
Commands\New\SdkInfoProvider.cs (1)
56catch (Exception e) when (e is HostFxrRuntimePropertyNotSetException or HostFxrNotFoundException)
Commands\Package\List\PackageListCommand.cs (1)
88catch (Exception)
Commands\Package\PackageCommandParser.cs (2)
79catch (Exception) 93catch (Exception)
Commands\Project\Convert\ProjectConvertCommand.cs (2)
631catch (Exception) 668catch (Exception)
Commands\Run\Api\RunApiCommand.cs (1)
37catch (Exception ex)
Commands\Run\EnvironmentVariablesToMSBuild.cs (1)
89catch (Exception ex)
Commands\Run\RunCommand.cs (1)
1049catch (Exception ex)
Commands\Run\RunCommandSelector.cs (2)
304catch (Exception) 554catch (Exception)
Commands\Run\VirtualProjectBuildingCommand.cs (3)
383catch (Exception e) 1024catch (Exception e) 1141catch (Exception ex)
Commands\Sdk\Check\ProductCollectionProvider.cs (2)
21catch (Exception e) 33catch (Exception ex) when (ex is HttpRequestException ||
Commands\Solution\List\SolutionListCommand.cs (1)
32catch (Exception ex)
Commands\Solution\Migrate\SolutionMigrateCommand.cs (1)
39catch (Exception ex)
Commands\Solution\Remove\SolutionRemoveCommand.cs (1)
57catch (Exception ex) when (ex is not GracefulException)
Commands\Test\MTP\Logger.cs (1)
108catch (Exception ex)
Commands\Test\MTP\Terminal\FileUtilities.cs (1)
29catch (Exception exc)
Commands\Test\MTP\TestApplication.cs (3)
240catch (Exception ex) 305catch (Exception ex) 428catch (Exception ex)
Commands\Test\MTP\TestApplicationActionQueue.cs (1)
66catch (Exception ex)
Commands\Test\VSTest\TestCommand.cs (1)
316catch (Exception ex)
Commands\Test\VSTest\VSTestTrace.cs (1)
46catch (Exception ex)
Commands\Tool\Install\ToolInstallCommandLowLevelErrorConverter.cs (2)
13public static IEnumerable<string> GetUserFacingMessages(Exception ex, PackageId packageId) 27public static bool ShouldConvertToUserFacingError(Exception ex)
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
318catch (Exception ex) 340catch (Exception ex)
Commands\Tool\Install\ToolInstallLocalInstaller.cs (1)
65catch (Exception ex) when (InstallToolCommandLowLevelErrorConverter.ShouldConvertToUserFacingError(ex))
Commands\Tool\List\ToolListGlobalOrToolPathCommand.cs (1)
87catch (Exception ex) when (ex is ToolConfigurationException)
Commands\Tool\Uninstall\ToolUninstallCommandLowLevelErrorConverter.cs (2)
13public static IEnumerable<string> GetUserFacingMessages(Exception ex, PackageId packageId) 28public static bool ShouldConvertToUserFacingError(Exception ex)
Commands\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommand.cs (1)
84catch (Exception ex) when (ToolUninstallCommandLowLevelErrorConverter.ShouldConvertToUserFacingError(ex))
Commands\Workload\Install\FileBasedInstaller.cs (3)
121catch (Exception ex) 239catch (Exception e) 298catch (Exception e)
Commands\Workload\Install\WorkloadInstallCommand.cs (3)
161catch (Exception e) 204catch (Exception e) 316catch (Exception e)
Commands\Workload\Install\WorkloadManifestUpdater.cs (4)
114catch (Exception) 185catch (Exception) 378catch (Exception e) 488catch (Exception)
Commands\Workload\Repair\WorkloadRepairCommand.cs (1)
93catch (Exception e)
Commands\Workload\Uninstall\WorkloadUninstallCommand.cs (1)
84catch (Exception e)
Commands\Workload\Update\WorkloadUpdateCommand.cs (2)
86catch (Exception e) 136catch (Exception e)
Commands\Workload\WorkloadException.cs (1)
29public WorkloadException(string? message, Exception? innerException) : base(message, innerException)
Commands\Workload\WorkloadHistoryRecorder.cs (1)
39catch (Exception ex)
NugetPackageDownloader\NuGetPackageDownloader.cs (2)
1005catch (Exception) // any errors (i.e. auth) should just be ignored for completions 1024catch (Exception) // any errors (i.e. auth) should just be ignored for completions
NugetPackageDownloader\ToolPackageException.cs (2)
20public NuGetPackageInstallerException(string message, Exception innerException) : base(message, innerException) 35public NuGetPackageNotFoundException(string message, Exception innerException) : base(message, innerException)
Parser.cs (1)
315internal static int ExceptionHandler(Exception? exception, ParseResult parseResult)
Program.cs (4)
121catch (Exception e) when (e.ShouldBeDisplayedAsError()) 134catch (Exception e) when (!e.ShouldBeDisplayedAsError()) 265catch (Exception) 286catch (Exception exception)
ReleasePropertyProjectLocator.cs (1)
243catch (Exception e) // Catch failed file access, or invalid project files that cause errors when read into memory,
ShellShim\ShellShimException.cs (1)
18public ShellShimException(string message, Exception innerException) : base(message, innerException)
ShellShim\ShellShimRepository.cs (2)
96catch (Exception ex) when (ex is UnauthorizedAccessException || ex is IOException) 131catch (Exception ex) when (ex is UnauthorizedAccessException || ex is IOException)
SlnFileFactory.cs (2)
77catch (Exception ex) 104catch (Exception ex)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26307.102\contentFiles\cs\net11.0\BuildServerConnection.cs (11)
135catch (Exception) 147catch (Exception) 303catch (Exception e) 328catch (Exception e) 372catch (Exception e) 416catch (Exception e) when (e is IOException || e is TimeoutException) 442catch (Exception e) when (!(e is TaskCanceledException || e is OperationCanceledException)) 857catch (Exception) 904catch (Exception) 936catch (Exception) 955catch (Exception)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26307.102\contentFiles\cs\net11.0\CompilerServerLogger.cs (4)
59internal static void LogException(this ICompilerServerLogger logger, Exception exception, string reason) 71Exception? e = exception.InnerException; 82void AppendException(Exception exception) 137catch (Exception e)
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26307.102\contentFiles\cs\net11.0\RuntimeHostInfo.cs (1)
56catch (Exception ex)
Telemetry\DockerContainerDetectorForTelemetry.cs (1)
44catch (Exception ex) when (ex is IOException || ex.InnerException is IOException)
Telemetry\ExternalTelemetryProperties.cs (4)
34catch (Exception e) 66catch (Exception e) 97catch (Exception e) 121catch (Exception e)
Telemetry\TelemetryClient.cs (1)
251catch (Exception e)
Telemetry\TelemetryFilter.cs (3)
33public IEnumerable<TelemetryEntryFormat> Filter(Exception exception) 127private static string ExceptionToStringWithoutMessage(Exception e) 154private static string NonAggregateExceptionToStringWithoutMessage(Exception e)
ToolManifest\ToolManifestEditor.cs (1)
215catch (Exception e) when (
ToolPackage\ToolConfigurationDeserializer.cs (1)
65catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
ToolPackage\ToolConfigurationException.cs (1)
18public ToolConfigurationException(string message, Exception innerException) : base(message, innerException)
ToolPackage\ToolPackageException.cs (1)
20public ToolPackageException(string message, Exception innerException) : base(message, innerException)
ToolPackage\ToolPackageInstance.cs (2)
76catch (Exception ex) when (ex is UnauthorizedAccessException || ex is IOException) 234catch (Exception ex) when (ex is UnauthorizedAccessException || ex is IOException)
ToolPackage\ToolPackageUninstaller.cs (1)
41catch (Exception ex) when (ex is UnauthorizedAccessException || ex is IOException)
dotnet-dev-certs (30)
Program.cs (2)
259catch (Exception exception) 294catch (Exception e)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (13)
199catch (Exception e) 344catch (Exception e) 383catch (Exception e) 399catch (Exception e) 422catch (Exception e) 452catch (Exception e) 568catch (Exception e) 593catch (Exception e) 730catch (Exception e) when (Log.IsEnabled()) 753catch (Exception ex) when (Log.IsEnabled()) 781catch (Exception ex) when (Log.IsEnabled()) 886catch (Exception ex) when (Log.IsEnabled()) 1014catch (Exception ex) when (Log.IsEnabled())
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
144catch (Exception ex) 321catch (Exception ex) 441catch (Exception) 462catch (Exception ex)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (11)
226catch (Exception ex) 432catch (Exception ex) 457catch (Exception ex) 720catch (Exception ex) 748catch (Exception ex) 777catch (Exception ex) 797catch (Exception ex) 823catch (Exception ex) 957catch (Exception ex) 992catch (Exception ex) 1067catch (Exception ex)
dotnet-format (3)
Analyzers\SolutionCodeFixApplier.cs (1)
87catch (Exception ex)
Logging\SimpleConsoleLogger.cs (2)
37public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
dotnet-Microsoft.XmlSerializer.Generator (5)
Sgen.cs (5)
209catch (Exception e) 453catch (Exception e) 525private static void WriteError(Exception e, bool parsableerrors) 534private static void WriteWarning(Exception e, bool parsableerrors) 652catch (Exception exp)
dotnet-sourcelink (2)
dotnet-suggest (1)
SuggestionShellScriptException.cs (1)
16public SuggestionShellScriptException(string message, Exception innerException) : base(message, innerException)
dotnet-svcutil.xmlserializer (20)
Microsoft\Tools\ServiceModel\SvcUtil\ExportModule.cs (1)
72catch (Exception e)
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (4)
94catch (Exception e) 140Exception ie = tie.InnerException; 222catch (Exception e) 241foreach (Exception e in rtle.LoaderExceptions)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (4)
203catch (Exception e) 372catch (Exception e) 449catch (Exception e) 463catch (Exception e)
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (2)
91catch (Exception e) 110catch (Exception e)
Microsoft\Tools\ServiceModel\SvcUtil\Tool.cs (2)
42catch (Exception e) 75internal static bool IsFatal(Exception exception)
Microsoft\Tools\ServiceModel\SvcUtil\ToolArgumentException.cs (1)
30internal ToolArgumentException(String message, Exception innerException) : base(message, innerException)
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (3)
51private static void WriteError(Exception e) 56internal static void WriteUnexpectedError(Exception e) 95internal static void WriteError(Exception e, string prefix)
Microsoft\Tools\ServiceModel\SvcUtil\ToolInputException.cs (1)
30internal ToolInputException(String message, Exception innerException) : base(message, innerException)
Microsoft\Tools\ServiceModel\SvcUtil\ToolOptionException.cs (1)
18internal ToolOptionException(string message, Exception e) : base(message, e) { }
Microsoft\Tools\ServiceModel\SvcUtil\ToolRuntimeException.cs (1)
29internal ToolRuntimeException(String message, Exception innerException) : base(message, innerException)
dotnet-svcutil.xmlserializer.IntegrationTests (10)
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatTest.cs (10)
93catch (Exception exception) 115catch (Exception exception) 147catch (Exception ex) 195catch (Exception ex) 243catch (Exception ex) 291catch (Exception ex) 347catch (Exception ex) 404catch (Exception ex) 461catch (Exception ex) 499catch (Exception ex)
dotnet-svcutil-lib (949)
AppInsightsTelemetryClient.cs (2)
124catch (Exception ex) 205public void TrackError(string eventName, Exception exceptionObject)
CodeDomFixup\CodeDomVisitors\CreateCallbackImpl.cs (1)
353ctor.Parameters.Add(new CodeParameterDeclarationExpression(typeof(Exception), "exception"));
CodeSerializer.cs (3)
49catch (Exception e) 73catch (Exception e) 104catch (Exception e)
CommandLineParser.cs (1)
199catch (Exception ex)
CommandProcessorOptions.cs (5)
244catch (Exception ex) 769catch (Exception e) 982catch (Exception ex) 995catch (Exception ex) 1018catch (Exception ex)
FrameworkFork\Microsoft.CodeDom\Configuration\ConfigurationErrorsException.cs (1)
19public ConfigurationErrorsException(string message, Exception innerException) : base(message, innerException)
FrameworkFork\Microsoft.CodeDom\System\CodeCatchClause.cs (1)
87_catchExceptionType = new CodeTypeReference(typeof(System.Exception));
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (4)
4479private Exception ThrowUnexpectedToken(BinXmlToken token) 4485private Exception ThrowXmlException(string res) 4497private Exception ThrowXmlException(string res, string arg1, string arg2) 4503private Exception ThrowNotSupported(string res)
FrameworkFork\Microsoft.Xml\Xml\Core\IDtdParserAdapter.cs (1)
52void Throw(Exception e);
FrameworkFork\Microsoft.Xml\Xml\Core\IValidationEventHandling.cs (1)
18void SendEvent(Exception exception, XmlSeverityType severity);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (4)
1566internal Exception CreateReadContentAsException(string methodName) 1571internal Exception CreateReadElementContentAsException(string methodName) 1581static internal Exception CreateReadContentAsException(string methodName, XmlNodeType nodeType, IXmlLineInfo lineInfo) 1586static internal Exception CreateReadElementContentAsException(string methodName, XmlNodeType nodeType, IXmlLineInfo lineInfo)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (9)
2700internal void DtdParserProxy_Throw(Exception e) 2767private void Throw(string res, string arg, Exception innerException) 2772private void Throw(string res, string[] args, Exception innerException) 2777private void Throw(Exception e) 2788private void ReThrow(Exception e, int lineNo, int linePos) 2790Throw(new XmlException(e.Message, (Exception)null, lineNo, linePos, _ps.baseUriStr)); 2803private void ThrowWithoutLineInfo(string res, string[] args, Exception innerException) 8049catch (Exception) 8065catch (Exception e)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImplHelpers.cs (1)
297void IDtdParserAdapter.Throw(Exception e)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlValidatingReaderImpl.cs (1)
59void IValidationEventHandling.SendEvent(Exception /*XmlSchemaException*/ exception, XmlSeverityType severity)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (1)
2183private static Exception InvalidCharsException(string name, int badCharIndex)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlLoader.cs (1)
1005static internal Exception UnexpectedNodeType(XmlNodeType nodetype)
FrameworkFork\Microsoft.Xml\Xml\schema\BaseProcessor.cs (1)
242protected void SendValidationEvent(string code, string[] args, Exception innerException, XmlSchemaObject source)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (74)
550Exception exception = TryParseValue(s, nameTable, nsmgr, out typedValue); 568Exception exception = TryParseValue(s, nameTable, nsmgr, out typedValue); 581internal override Exception TryParseValue(object value, XmlNameTable nameTable, IXmlNamespaceResolver namespaceResolver, out object typedValue) 583Exception exception = null; 1047internal override Exception TryParseValue(object value, XmlNameTable nameTable, IXmlNamespaceResolver namespaceResolver, out object typedValue) 1049Exception exception; 1125internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 1127Exception exception; 1267internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 1269Exception exception; 1303internal override Exception TryParseValue(object value, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 1305Exception exception; 1402internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 1483internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 1485Exception exception; 1557internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 1559Exception exception; 1642internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 1644Exception exception; 1731internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 1733Exception exception; 1825internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 1827Exception exception; 1916internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 1918Exception exception; 1947internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 1949Exception exception; 1985internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 1987Exception exception; 2077internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 2079Exception exception; 2462internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 2464Exception exception; 2563internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 2565Exception exception; 2670internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 2672Exception exception; 2756internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 2758Exception exception; 2956internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 2958Exception exception; 3092internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 3094Exception exception; 3172internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 3174Exception exception; 3290internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 3292Exception exception; 3346internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 3348Exception exception; 3403internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 3405Exception exception; 3459internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 3461Exception exception; 3547internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 3549Exception exception; 3603internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 3605Exception exception; 3659internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 3661Exception exception; 3714internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 3716Exception exception; 3771catch (Exception e) 3792catch (Exception e) 3830catch (Exception e) 3873catch (Exception e) 3879internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 3881Exception exception; 3902Exception exception; 3917catch (Exception e) 3925internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 3927Exception exception; 3974catch (Exception e) 3980internal override Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue) 3982Exception exception;
FrameworkFork\Microsoft.Xml\Xml\schema\dtdvalidator.cs (2)
550catch (Exception) 615catch (Exception)
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (43)
368catch (Exception e) 669Exception ex = datatype.TryParseValue(facet.Value, nameTable, nsmgr, out typedValue); 781internal virtual Exception CheckLexicalFacets(ref string parseString, XmlSchemaDatatype datatype) 786internal virtual Exception CheckValueFacets(object value, XmlSchemaDatatype datatype) 790internal virtual Exception CheckValueFacets(decimal value, XmlSchemaDatatype datatype) 794internal virtual Exception CheckValueFacets(Int64 value, XmlSchemaDatatype datatype) 798internal virtual Exception CheckValueFacets(Int32 value, XmlSchemaDatatype datatype) 802internal virtual Exception CheckValueFacets(Int16 value, XmlSchemaDatatype datatype) 806internal virtual Exception CheckValueFacets(byte value, XmlSchemaDatatype datatype) 810internal virtual Exception CheckValueFacets(DateTime value, XmlSchemaDatatype datatype) 814internal virtual Exception CheckValueFacets(double value, XmlSchemaDatatype datatype) 818internal virtual Exception CheckValueFacets(float value, XmlSchemaDatatype datatype) 822internal virtual Exception CheckValueFacets(string value, XmlSchemaDatatype datatype) 826internal virtual Exception CheckValueFacets(byte[] value, XmlSchemaDatatype datatype) 830internal virtual Exception CheckValueFacets(TimeSpan value, XmlSchemaDatatype datatype) 834internal virtual Exception CheckValueFacets(XmlQualifiedName value, XmlSchemaDatatype datatype) 876internal Exception CheckPatternFacets(RestrictionFacets restriction, string value) 1005internal override Exception CheckValueFacets(object value, XmlSchemaDatatype datatype) 1011internal override Exception CheckValueFacets(decimal value, XmlSchemaDatatype datatype) 1068internal override Exception CheckValueFacets(Int64 value, XmlSchemaDatatype datatype) 1074internal override Exception CheckValueFacets(Int32 value, XmlSchemaDatatype datatype) 1079internal override Exception CheckValueFacets(Int16 value, XmlSchemaDatatype datatype) 1084internal override Exception CheckValueFacets(byte value, XmlSchemaDatatype datatype) 1105internal Exception CheckTotalAndFractionDigits(decimal value, int totalDigits, int fractionDigits, bool checkTotal, bool checkFraction) 1134internal override Exception CheckValueFacets(object value, XmlSchemaDatatype datatype) 1140internal override Exception CheckValueFacets(double value, XmlSchemaDatatype datatype) 1186internal override Exception CheckValueFacets(float value, XmlSchemaDatatype datatype) 1210internal override Exception CheckValueFacets(object value, XmlSchemaDatatype datatype) 1216internal override Exception CheckValueFacets(TimeSpan value, XmlSchemaDatatype datatype) 1281internal override Exception CheckValueFacets(object value, XmlSchemaDatatype datatype) 1287internal override Exception CheckValueFacets(DateTime value, XmlSchemaDatatype datatype) 1368internal override Exception CheckValueFacets(object value, XmlSchemaDatatype datatype) 1374internal override Exception CheckValueFacets(string value, XmlSchemaDatatype datatype) 1379internal Exception CheckValueFacets(string value, XmlSchemaDatatype datatype, bool verifyUri) 1385Exception exception; 1454private Exception CheckBuiltInFacets(string s, XmlTypeCode typeCode, bool verifyUri) 1456Exception exception = null; 1510internal override Exception CheckValueFacets(object value, XmlSchemaDatatype datatype) 1516internal override Exception CheckValueFacets(XmlQualifiedName value, XmlSchemaDatatype datatype) 1579internal override Exception CheckValueFacets(object value, XmlSchemaDatatype datatype) 1585internal override Exception CheckValueFacets(byte[] value, XmlSchemaDatatype datatype) 1644internal override Exception CheckValueFacets(object value, XmlSchemaDatatype datatype) 1705internal override Exception CheckValueFacets(object value, XmlSchemaDatatype datatype)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\XmlSchemaInferenceException.cs (3)
23public XmlSchemaInferenceException(String message) : base(message, ((Exception)null), 0, 0) 27public XmlSchemaInferenceException(String message, Exception innerException) : base(message, innerException, 0, 0) 32public XmlSchemaInferenceException(String message, Exception innerException, int lineNumber, int linePosition) :
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (5)
307Exception innerException = null; 314catch (Exception e) 361catch (Exception eInner) 416catch (Exception eInner) 568Exception exception = tokenDt.TryParseValue(schema.Version, null, null, out version);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (4)
247catch (Exception) 326catch (Exception) 1740catch (Exception ex) 1780catch (Exception ex)
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (1)
356catch (Exception e)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaDatatype.cs (2)
117internal abstract Exception TryParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr, out object typedValue); 119internal abstract Exception TryParseValue(object value, XmlNameTable nameTable, IXmlNamespaceResolver namespaceResolver, out object typedValue);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaException.cs (4)
38public XmlSchemaException(String message) : this(message, ((Exception)null), 0, 0) 46public XmlSchemaException(String message, Exception innerException) : this(message, innerException, 0, 0) 51public XmlSchemaException(String message, Exception innerException, int lineNumber, int linePosition) : 88internal XmlSchemaException(string res, string[] args, Exception innerException, string sourceUri, int lineNumber, int linePosition, XmlSchemaObject source) :
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidationException.cs (4)
26public XmlSchemaValidationException(String message) : base(message, ((Exception)null), 0, 0) 31public XmlSchemaValidationException(String message, Exception innerException) : base(message, innerException, 0, 0) 36public XmlSchemaValidationException(String message, Exception innerException, int lineNumber, int linePosition) : 64internal XmlSchemaValidationException(string res, string[] args, Exception innerException, string sourceUri, int lineNumber, int linePosition) :
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (9)
1304Exception exception = s_dtStringArray.TryParseValue(xsiSchemaLocation, _nameTable, _nsResolver, out typedValue); 1455Exception exception = currentElementDecl.Datatype.TryParseValue(currentElementDecl.DefaultValueRaw, _nameTable, _nsResolver, out typedVal); 1497Exception exception = dtype.TryParseValue(parsedValue, _nameTable, _nsResolver, out typedValue); 1664Exception exception = s_dtQName.TryParseValue(xsiType, _nameTable, _nsResolver, out typedVal); 1880catch (Exception e) 1961Exception exception = null; 1998Exception exception = dtype.TryParseValue(stringValue, _nameTable, _nsResolver, out typedValue); 2832private void SendValidationEvent(string code, string[] args, Exception innerException, XmlSeverityType severity) 2840private void SendValidationEvent(string code, string[] args, Exception innerException)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (2)
561protected Exception CreateInvalidClrMappingException(Type sourceType, Type destinationType) 3657private new Exception CreateInvalidClrMappingException(Type sourceType, Type destinationType)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (4)
2465catch (Exception) 2477catch (Exception) 2489catch (Exception) 2516catch (Exception)
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDuration.cs (7)
146Exception exception = TryParse(s, durationType, out result); 310Exception exception = TryToTimeSpan(durationType, out result); 318internal Exception TryToTimeSpan(out TimeSpan result) 323internal Exception TryToTimeSpan(DurationType durationType, out TimeSpan result) 325Exception exception = null; 494internal static Exception TryParse(string s, out XsdDuration result) 499internal static Exception TryParse(string s, DurationType durationType, out XsdDuration result)
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (1)
617catch (Exception e)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (1)
121internal static Exception NotSupported(string msg)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (3)
172private Exception ReflectionException(string context, Exception e) 653catch (Exception e)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (4)
90private Exception _exception; 359internal Exception Exception 790Exception exception = null; 1254private static TypeFlags GetConstructorFlags(Type type, ref Exception exception)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (11)
368private Exception CreateReflectionException(string context, Exception e) 373private Exception CreateTypeReflectionException(string context, Exception e) 378private Exception CreateMemberReflectionException(FieldModel model, Exception e) 467catch (Exception e) 626private static Exception InvalidAttributeUseException(Type type) 631private static Exception UnsupportedException(TypeDesc typeDesc, ImportContext context) 890catch (Exception e) 1301catch (Exception e)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (1)
797internal static Exception CreateValidationException(XmlSchemaException exception, string message)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (13)
1053catch (Exception e) 1122catch (Exception e) 1363protected Exception CreateUnknownTypeException(XmlQualifiedName type) 1369protected Exception CreateReadOnlyCollectionException(string name) 1375protected Exception CreateAbstractTypeException(string name, string ns) 1381protected Exception CreateInaccessibleConstructorException(string typeName) 1387protected Exception CreateCtorHasSecurityException(string typeName) 1393protected Exception CreateUnknownNodeException() 1399protected Exception CreateUnknownConstantException(string value, Type enumType) 1405protected Exception CreateInvalidCastException(Type type, object value) 1411protected Exception CreateInvalidCastException(Type type, object value, string id) 1422protected Exception CreateBadDerivationException(string xsdDerived, string nsDerived, string xsdBase, string nsBase, string clrDerived, string clrBase) 1428protected Exception CreateMissingIXmlSerializableType(string name, string ns, string clrType)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (9)
808protected Exception CreateUnknownTypeException(object o) 814protected Exception CreateUnknownTypeException(Type type) 823protected Exception CreateMismatchChoiceException(string value, string elementName, string enumValue) 830protected Exception CreateUnknownAnyElementException(string name, string ns) 836protected Exception CreateInvalidChoiceIdentifierValueException(string type, string identifier) 842protected Exception CreateChoiceIdentifierValueException(string value, string identifier, string name, string ns) 849protected Exception CreateInvalidEnumValueException(object value, string typeName) 855protected Exception CreateInvalidAnyTypeException(object o) 861protected Exception CreateInvalidAnyTypeException(Type type)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (2)
390catch (Exception e) 482catch (Exception e)
FrameworkFork\Microsoft.Xml\Xml\ValidateNames.cs (1)
414internal static Exception GetInvalidNameException(string s, int offsetStartChar, int offsetBadChar)
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (44)
377internal static Exception TryVerifyName(string name) 446internal static Exception TryVerifyNCName(string name) 475internal static Exception TryVerifyTOKEN(string token) 518internal static Exception TryVerifyNMTOKEN(string name) 542internal static Exception TryVerifyNormalizedString(string str) 905internal static Exception TryToBoolean(string s, out Boolean result) 939internal static Exception TryToChar(string s, out Char result) 957internal static Exception TryToDecimal(string s, out Decimal result) 971internal static Exception TryToInteger(string s, out Decimal result) 989internal static Exception TryToSByte(string s, out SByte result) 1007internal static Exception TryToInt16(string s, out Int16 result) 1025internal static Exception TryToInt32(string s, out Int32 result) 1043internal static Exception TryToInt64(string s, out Int64 result) 1061internal static Exception TryToByte(string s, out Byte result) 1080internal static Exception TryToUInt16(string s, out UInt16 result) 1100internal static Exception TryToUInt32(string s, out UInt32 result) 1119internal static Exception TryToUInt64(string s, out UInt64 result) 1145internal static Exception TryToSingle(string s, out Single result) 1186internal static Exception TryToDouble(string s, out double result) 1288catch (Exception) 1299internal static Exception TryToTimeSpan(string s, out TimeSpan result) 1302Exception exception; 1464internal static Exception TryToGuid(string s, out Guid result) 1466Exception exception = null; 1535internal static Exception TryToUri(string s, out Uri result) 1758internal static Exception CreateException(string res, ExceptionType exceptionType) 1763internal static Exception CreateException(string res, ExceptionType exceptionType, int lineNo, int linePos) 1775internal static Exception CreateException(string res, string arg, ExceptionType exceptionType) 1780internal static Exception CreateException(string res, string arg, ExceptionType exceptionType, int lineNo, int linePos) 1792internal static Exception CreateException(string res, string[] args, ExceptionType exceptionType) 1797internal static Exception CreateException(string res, string[] args, ExceptionType exceptionType, int lineNo, int linePos) 1809internal static Exception CreateInvalidSurrogatePairException(char low, char hi) 1814internal static Exception CreateInvalidSurrogatePairException(char low, char hi, ExceptionType exceptionType) 1819internal static Exception CreateInvalidSurrogatePairException(char low, char hi, ExceptionType exceptionType, int lineNo, int linePos) 1828internal static Exception CreateInvalidHighSurrogateCharException(char hi) 1833internal static Exception CreateInvalidHighSurrogateCharException(char hi, ExceptionType exceptionType) 1838internal static Exception CreateInvalidHighSurrogateCharException(char hi, ExceptionType exceptionType, int lineNo, int linePos) 1843internal static Exception CreateInvalidCharException(char[] data, int length, int invCharPos) 1848internal static Exception CreateInvalidCharException(char[] data, int length, int invCharPos, ExceptionType exceptionType) 1853internal static Exception CreateInvalidCharException(string data, int invCharPos) 1858internal static Exception CreateInvalidCharException(string data, int invCharPos, ExceptionType exceptionType) 1863internal static Exception CreateInvalidCharException(char invChar, char nextChar) 1868internal static Exception CreateInvalidCharException(char invChar, char nextChar, ExceptionType exceptionType) 1873internal static Exception CreateInvalidNameCharException(string name, int index, ExceptionType exceptionType)
FrameworkFork\Microsoft.Xml\Xml\XmlException.cs (8)
38public XmlException(String message) : this(message, ((Exception)null), 0, 0) 46public XmlException(String message, Exception innerException) : this(message, innerException, 0, 0) 51public XmlException(String message, Exception innerException, int lineNumber, int linePosition) : 56internal XmlException(String message, Exception innerException, int lineNumber, int linePosition, string sourceUri) : 87internal XmlException(string res, String arg, Exception innerException, IXmlLineInfo lineInfo) : 124internal XmlException(string res, string[] args, Exception innerException, int lineNumber, int linePosition) : 128internal XmlException(string res, string[] args, Exception innerException, int lineNumber, int linePosition, string sourceUri) : 265internal static bool IsCatchableException(Exception e)
FrameworkFork\Microsoft.Xml\Xml\XmlXapResolver.cs (1)
29throw new XmlException(ResXml.Xml_XapResolverCannotOpenUri, absoluteUri.ToString(), default(Exception), null);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\FunctionQuery.cs (1)
86catch (Exception ex)
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathException.cs (5)
26public XPathException() : this(string.Empty, (Exception)null) { } 28public XPathException(string message) : this(message, (Exception)null) { } 30public XPathException(string message, Exception innerException) : 50internal static XPathException Create(string res, string arg, Exception innerException) 60private XPathException(string res, string[] args, Exception inner) :
FrameworkFork\System.Runtime.Serialization\NotImplemented.cs (2)
20internal static Exception ByDesign 28internal static Exception ByDesignWithMessage(String message)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (6)
663catch (Exception ex) 1032catch (Exception ex) 1056catch (Exception ex) 1073catch (Exception ex) 1096catch (Exception ex) 1391catch (Exception ex)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (1)
508catch (Exception ex)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DiagnosticUtility.cs (1)
24internal static bool IsFatal(Exception exception)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DictionaryGlobals.cs (1)
131catch (Exception ex)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (3)
393Dictionary<string, object> exceptionFields = GetExceptionFieldValues((Exception)value); 467private Dictionary<string, object> GetExceptionFieldValues(Exception value) 508if (!(typeof(Exception).IsAssignableFrom(type)))
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
106s_typeOfException = typeof(Exception);
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\SchemaImporter.cs (1)
64catch (Exception ex)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SerializationException.cs (1)
13public SerializationException(string message, Exception innerException)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializer.cs (3)
366internal static Exception CreateSerializationExceptionWithReaderDetails(string errorMessage, XmlReaderDelegator reader) 377static internal SerializationException CreateSerializationException(string errorMessage, Exception innerException) 381internal static string GetTypeInfoError(string errorMessage, Type type, Exception innerException)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (2)
570internal static Exception CreateUnexpectedStateException(XmlNodeType expectedState, XmlReaderDelegator xmlReader) 580internal static Exception CreateSerializationException(string message)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlWriterDelegator.cs (1)
287private Exception CreateInvalidPrimitiveTypeException(Type type)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XsdDataContractImporter.cs (3)
242catch (Exception ex) 262private void TraceImportError(Exception exception) 280catch (Exception ex)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlExceptionHelper.cs (4)
262static public XmlException CreateConversionException(string type, Exception exception) 267static public XmlException CreateConversionException(string value, string type, Exception exception) 272static public XmlException CreateEncodingException(byte[] buffer, int offset, int count, Exception exception) 277static public XmlException CreateEncodingException(string value, Exception exception)
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextReader.cs (1)
609catch (Exception e)
FrameworkFork\System.ServiceModel\ExceptionHelper.cs (3)
14public static Exception AsError(Exception exception) 29public static Exception CreateMaxReceivedMessageSizeExceededException(long maxMessageSize)
FrameworkFork\System.ServiceModel\Framework\System\ComponentModel\InvalidEnumArgumentException.cs (1)
35public InvalidEnumArgumentException(string message, Exception innerException)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AssertHelper.cs (1)
46catch (Exception exception)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AsyncResult.cs (7)
20private Exception _exception; 95protected Action<AsyncResult, Exception> OnCompleting { get; set; } 129catch (Exception exception) 173catch (Exception e) 186protected void Complete(bool completedSynchronously, Exception exception) 216Exception completionException = null; 221catch (Exception e)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\BufferedOutputStream.cs (1)
226protected virtual Exception CreateQuotaExceededException(int maxSizeQuota)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\CallbackException.cs (1)
13public CallbackException(string message, Exception innerException) : base(message, innerException)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (3)
164protected static void AddExceptionToTraceString(XmlWriter xml, Exception exception) 191protected static string StackTraceString(Exception exception) 204protected void LogTraceFailure(string traceString, Exception exception)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (6)
170public TracePayload GetSerializedPayload(object source, TraceRecord traceRecord, Exception exception) 175public TracePayload GetSerializedPayload(object source, TraceRecord traceRecord, Exception exception, bool getServiceReference) 242internal static string ExceptionToTraceString(Exception exception, int maxTraceStringLength) 265private static void WriteExceptionToTraceString(XmlWriter xml, Exception exception, int remainingLength, int remainingAllowedRecursionDepth) 320private static string GetInnerException(Exception exception, int remainingLength, int remainingAllowedRecursionDepth) 354private static string GetExceptionData(Exception exception)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ExceptionTrace.cs (25)
31public void AsInformation(Exception exception) 36public void AsWarning(Exception exception) 41public Exception AsError(Exception exception) 47return AsError<Exception>(aggregateException); 57return TraceException<Exception>(exception); 60public Exception AsError(Exception exception, string eventSource) 66return AsError<Exception>(aggregateException, eventSource); 76return TraceException<Exception>(exception, eventSource); 79public Exception AsError(TargetInvocationException targetInvocationException, string eventSource) 91Exception innerException = targetInvocationException.InnerException; 99return TraceException<Exception>(targetInvocationException, eventSource); 102public Exception AsError<TPreferredException>(AggregateException aggregateException) 123public Exception AsError<TPreferredException>(AggregateException aggregateException, string eventSource) 136ReadOnlyCollection<Exception> innerExceptions = aggregateException.Flatten().InnerExceptions; 143Exception favoredException = null; 144foreach (Exception nextInnerException in innerExceptions) 149Exception innerException = (targetInvocationException != null && targetInvocationException.InnerException != null) 159TraceException<Exception>(innerException, eventSource); 207public void TraceUnhandledException(Exception exception) 212public void TraceEtwException(Exception exception, EventLevel eventLevel) 217where TException : Exception 226where TException : Exception 241private void BreakOnException(Exception exception)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\FatalException.cs (1)
16public FatalException(string message, Exception innerException) : base(message, innerException)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (12)
118public static Exception AssertAndThrow(string description) 134public static Exception AssertAndThrowFatal(string description) 155public static Exception AssertAndFailFast(string description) 181public static bool IsFatal(Exception exception) 205ReadOnlyCollection<Exception> innerExceptions = ((AggregateException)exception).InnerExceptions; 206foreach (Exception innerException in innerExceptions) 373private static void TraceExceptionNoThrow(Exception exception) 393private static bool HandleAtThreadBase(Exception exception) 409catch (Exception secondException) 440public abstract bool HandleException(Exception exception); 960catch (Exception exception) 993catch (Exception exception)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (9)
324public void EnqueueAndDispatch(Exception exception, Action dequeuedCallback, bool canDispatchOnThisThread) 342public bool EnqueueWithoutDispatch(Exception exception, Action dequeuedCallback) 356public void Shutdown(Func<Exception> pendingExceptionGenerator) 385Exception exception = (pendingExceptionGenerator != null) ? pendingExceptionGenerator() : null; 748private Exception _exception; 756public Item(Exception exception, Action dequeuedCallback) 761private Item(T value, Exception exception, Action dequeuedCallback) 773public Exception Exception 1004private Exception _exception;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ScheduleActionItemAsyncResult.cs (2)
27Exception completionException = null; 32catch (Exception ex)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TaskHelpers.cs (2)
206public static void Wait(this Task task, TimeSpan timeout, Action<Exception, TimeSpan, string> exceptionConverter, string operationType) 221catch (Exception ex)
FrameworkFork\System.ServiceModel\Internals\TraceCore.Designer.cs (10)
75internal static void HandledException(EtwDiagnosticTrace trace, string param0, System.Exception exception) 111internal static void ThrowingException(EtwDiagnosticTrace trace, string param0, string param1, System.Exception exception) 134internal static void UnhandledException(EtwDiagnosticTrace trace, string param0, System.Exception exception) 262internal static void HandledExceptionWarning(EtwDiagnosticTrace trace, string param0, System.Exception exception) 370internal static void HandledExceptionError(EtwDiagnosticTrace trace, string param0, System.Exception exception) 393internal static void HandledExceptionVerbose(EtwDiagnosticTrace trace, string param0, System.Exception exception) 416internal static void EtwUnhandledException(EtwDiagnosticTrace trace, string param0, System.Exception exception) 440internal static void ThrowingEtwException(EtwDiagnosticTrace trace, string param0, string param1, System.Exception exception) 464internal static void ThrowingEtwExceptionVerbose(EtwDiagnosticTrace trace, string param0, string param1, System.Exception exception) 488internal static void ThrowingExceptionVerbose(EtwDiagnosticTrace trace, string param0, string param1, System.Exception exception)
FrameworkFork\System.ServiceModel\SMDiagnostics\System\ServiceModel\Diagnostics\ExceptionUtility.cs (19)
64public Exception ThrowHelperFatal(string message, Exception innerException) 69public Exception ThrowHelperInternal(bool fatal) 74public Exception ThrowHelperInvalidOperation(string message) 79public Exception ThrowHelperCallback(string message, Exception innerException) 84public Exception ThrowHelperCallback(Exception innerException) 89public Exception ThrowHelperCritical(Exception exception) 94public Exception ThrowHelperError(Exception exception) 99public Exception ThrowHelperWarning(Exception exception) 104internal Exception ThrowHelper(Exception exception, EventLevel eventLevel) 111internal Exception ThrowHelperXml(XmlReader reader, string message) 116internal Exception ThrowHelperXml(XmlReader reader, string message, Exception inner)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
389private static Exception s_initializationException; 479catch (Exception ex)
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityMessageSerializationException.cs (1)
19public SecurityMessageSerializationException(String message, Exception innerException)
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KeyInfoSerializer.cs (4)
210catch (Exception e) 259catch (Exception e) 300catch (Exception e) 331private bool ShouldWrapException(Exception e)
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityTokenException.cs (1)
19public SecurityTokenException(String message, Exception innerException)
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityTokenValidationException.cs (1)
19public SecurityTokenValidationException(String message, Exception innerException)
FrameworkFork\System.ServiceModel\System\IdentityModel\XmlBuffer.cs (1)
51private Exception CreateInvalidStateException()
FrameworkFork\System.ServiceModel\System\ServiceModel\ActionNotSupportedException.cs (1)
14public ActionNotSupportedException(string message, Exception innerException) : base(message, innerException) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (6)
474Exception inner = new QuotaExceededException(message); 1610Exception ex = null; 1615catch (Exception e) 1628catch (Exception e) 1647catch (Exception e) 1668catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedConnection.cs (3)
17private Exception _pendingWriteException; 79catch (Exception e) 258Exception exceptionTothrow = _pendingWriteException;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedWriteStream.cs (3)
251private void WriteToBuffer(byte[] array, ref int offset, ref int count, out Exception error) 258catch (Exception ex) 424Exception error;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferManagerOutputStream.cs (1)
41protected override Exception CreateQuotaExceededException(int maxSizeQuota)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChainedAsyncResult.cs (4)
59Exception completeException = null; 66catch (Exception exception) 102Exception completeException = null; 109catch (Exception exception)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelManagerBase.cs (1)
46internal Exception CreateChannelTypeNotSupportedException(Type type)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelRequirements.cs (5)
224public static Exception CantCreateListenerException(IEnumerable<Type> supportedChannels, IEnumerable<Type> requiredChannels, string bindingName) 229Exception exception = ChannelRequirements.BindingContractMismatchException(supportedChannels, requiredChannels, bindingName, 242public static Exception CantCreateChannelException(IEnumerable<Type> supportedChannels, IEnumerable<Type> requiredChannels, string bindingName) 247Exception exception = ChannelRequirements.BindingContractMismatchException(supportedChannels, requiredChannels, bindingName, 259public static Exception BindingContractMismatchException(IEnumerable<Type> supportedChannels, IEnumerable<Type> requiredChannels,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
217catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CloseCollectionAsyncResult.cs (5)
14private Exception _exception; 40catch (Exception e) 61Exception closeException = null; 67catch (Exception e) 105private void Decrement(bool completedSynchronously, Exception exception)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObject.cs (11)
219private Exception CreateNotOpenException() 224private Exception CreateImmutableException() 229private Exception CreateBaseClassMethodNotCalledException(string method) 234internal Exception CreateClosedException() 246internal Exception CreateFaultedException() 252internal Exception CreateAbortedException() 386catch (Exception exception) 415catch (Exception exception) 441catch (Exception exception) 470catch (Exception exception) 492catch (Exception exception)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Connection.cs (3)
367catch (Exception e) 415catch (Exception e) 516private Exception ConvertIOException(IOException ioException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (1)
517catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (8)
144catch (Exception e) 355Exception exceptionToThrow = ConvertObjectDisposedException(objectDisposedException, TransferOperation.Undefined); 407Exception exceptionToThrow = ConvertObjectDisposedException(objectDisposedException, TransferOperation.Write); 466catch (Exception exception) 550Exception exceptionToThrow = ConvertObjectDisposedException(objectDisposedException, TransferOperation.Write); 593Exception exceptionToThrow = ConvertObjectDisposedException(objectDisposedException, TransferOperation.Read); 668Exception exceptionToThrow = ConvertObjectDisposedException(objectDisposedException, TransferOperation.Read); 706catch (Exception exception)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FaultConverter.cs (10)
16protected abstract bool OnTryCreateException(Message message, MessageFault fault, out Exception exception); 17protected abstract bool OnTryCreateFaultMessage(Exception exception, out Message message); 19public bool TryCreateException(Message message, MessageFault fault, out Exception exception) 37Exception error = new InvalidOperationException(text); 46Exception error = new InvalidOperationException(text, exception); 54public bool TryCreateFaultMessage(Exception exception, out Message message) 63Exception error = new InvalidOperationException(text); 72Exception error = new InvalidOperationException(text); 89protected override bool OnTryCreateException(Message message, MessageFault fault, out Exception exception) 197protected override bool OnTryCreateFaultMessage(Exception exception, out Message message)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingDecoders.cs (19)
131Exception quotaExceeded = OnSizeQuotaExceeded(_encodedSize); 189protected abstract Exception OnSizeQuotaExceeded(int size); 214protected override Exception OnSizeQuotaExceeded(int size) 216Exception result = new InvalidDataException(string.Format(SRServiceModel.FramingViaTooLong, size)); 254protected override Exception OnSizeQuotaExceeded(int size) 259public static Exception GetFaultException(string faultString, string via, string contentType) 283Exception inner = new QuotaExceededException(SRServiceModel.FramingMaxMessageSizeExceeded); 296Exception inner = new QuotaExceededException(string.Format(SRServiceModel.FramingContentTypeTooLongFault, contentType)); 301Exception inner = new QuotaExceededException(string.Format(SRServiceModel.FramingViaTooLongFault, via)); 326protected override Exception OnSizeQuotaExceeded(int size) 328Exception result = new InvalidDataException(string.Format(SRServiceModel.FramingContentTypeTooLong, size)); 393Exception exception = CreateException(new InvalidDataException(string.Format( 413Exception inner = CreateInvalidRecordTypeException(FramingRecordType.PreambleAck, foundType); 427private Exception CreateInvalidRecordTypeException(FramingRecordType expectedType, FramingRecordType foundType) 436Exception exception = CreateException(new InvalidDataException(string.Format( 442public Exception CreatePrematureEOFException() 447protected Exception CreateException(InvalidDataException innerException, string framingFault) 449Exception result = CreateException(innerException); 454protected Exception CreateException(InvalidDataException innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingFormat.cs (2)
154public static bool TryGetFaultString(Exception exception, out string framingFault) 169public static void AddFaultString(Exception exception, string framingFault)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (2)
351internal Exception CreateToMustEqualViaException(Uri to, Uri via) 1165catch (Exception addHeaderException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (5)
114var inner = requestException.InnerException; 126public static Exception ConvertHttpRequestException(HttpRequestException exception, HttpRequestMessage request, HttpAbortReason abortReason) 147internal static Exception CreateUnexpectedResponseException(HttpResponseMessage response) 174internal static Exception TraceResponseException(Exception exception)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (4)
59var exception = ProcessHttpAddressing(message); 65private Exception ProcessHttpAddressing(Message message) 67Exception result = null; 254Exception inner = new QuotaExceededException(message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpsChannelFactory.cs (1)
200catch (Exception ex)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (3)
109private Exception _pendingException; 224catch (Exception e) 320Exception exceptionToThrow = _pendingException;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\InvalidChannelBindingException.cs (1)
13public InvalidChannelBindingException(string message, Exception innerException) : base(message, innerException) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MaxMessageSizeStream.cs (4)
64public static Exception CreateMaxReceivedMessageSizeExceededException(long maxMessageSize) 67Exception inner = new QuotaExceededException(message); 77internal static Exception CreateMaxSentMessageSizeExceededException(long maxMessageSize) 80Exception inner = new QuotaExceededException(message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (16)
222internal Exception CreateMessageDisposedException() 1028Exception ex = null; 1033catch (Exception e) 1045catch (Exception e) 1250Exception versionMismatchException = new ArgumentException(string.Format(SRServiceModel.EncoderEnvelopeVersionMismatch, envelopeVersion, desiredVersion.Envelope), "reader"); 1319Exception ex = null; 1324catch (Exception e) 1335catch (Exception e) 1350catch (Exception e) 1452Exception versionMismatchException = new ArgumentException(string.Format(SRServiceModel.EncoderEnvelopeVersionMismatch, envelopeVersion, desiredVersion.Envelope), "reader"); 1605Exception ex = null; 1610catch (Exception e) 1621catch (Exception e) 1636catch (Exception e) 1653catch (Exception e) 1833Exception inner = new QuotaExceededException(message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageBuffer.cs (1)
44internal Exception CreateBufferDisposedException()
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeader.cs (1)
271throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(exception.Message, (Exception)null));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (1)
556private Exception CreateDuplicateHeaderException(HeaderKind kind)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\OpenCollectionAsyncResult.cs (3)
14private Exception _exception; 58catch (Exception e) 80private void Decrement(bool completedSynchronously, Exception exception)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (1)
250Exception innerException = null;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestContextBase.cs (2)
19private Exception _requestMessageException; 61protected void SetRequestMessage(Exception requestMessageException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityChannelFaultConverter.cs (2)
16protected override bool OnTryCreateException(Message message, MessageFault fault, out Exception exception) 36protected override bool OnTryCreateFaultMessage(Exception exception, out Message message)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (18)
596Exception error = new InvalidOperationException(text); 604Exception error = new InvalidOperationException(text); 933Exception error = new ProtocolException(string.Format(SRServiceModel.SFxReplyActionMismatch3, 1001Exception exception; 1085Exception error = new CommunicationObjectAbortedException(text); 1105Exception error = new InvalidOperationException(text); 1124Exception error = new InvalidOperationException(text); 1705Exception exception = null; 1711catch (Exception e) 1734Exception exception = null; 1740catch (Exception e) 1769Exception exception = null; 1776catch (Exception e) 1800Exception exception = null; 1815catch (Exception e) 1853Exception exception = null; 1872catch (Exception e) 1889private void CallComplete(bool completedSynchronously, Exception exception)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (6)
183catch (Exception e) 201catch (Exception e) 225catch (Exception e) 243catch (Exception e) 270public bool TrySetException(Exception exception) 292TrySetExceptionMethod = GenericType.GetRuntimeMethod("TrySetException", new Type[] { typeof(Exception) });
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SessionConnectionReader.cs (2)
25private Exception _pendingException; 227Exception exception = _pendingException;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SocketConnection.cs (13)
32protected Exception _asyncReadException; 38protected Exception _asyncWriteException; 170protected Exception ConvertSendException(SocketException socketException, TimeSpan remainingTime) 176protected Exception ConvertReceiveException(SocketException socketException, TimeSpan remainingTime) 182internal static Exception ConvertTransferException(SocketException socketException, TimeSpan timeout, Exception originalException) 188protected Exception ConvertObjectDisposedException(ObjectDisposedException originalException, TransferOperation transferOperation) 204private static Exception ConvertTransferException(SocketException socketException, TimeSpan timeout, Exception originalException, 259private static Exception ConvertTimeoutErrorException(Exception originalException, 435public static Exception ConvertConnectException(SocketException socketException, Uri remoteUri, TimeSpan timeSpent, Exception innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (13)
113internal static void ThrowCorrectException(Exception ex) 120internal static void ThrowCorrectException(Exception ex, TimeSpan timeout, string operation) 125internal static Exception ConvertAndTraceException(Exception ex) 135internal static Exception ConvertAndTraceException(Exception ex, TimeSpan timeout, string operation) 148Exception exception = FxTrace.Exception.AsError<OperationCanceledException>(aggregationException); 158Exception communicationException = ConvertAggregateExceptionToCommunicationException(aggregationException); 176internal static Exception ConvertAggregateExceptionToCommunicationException(AggregateException ex) 178Exception exception = FxTrace.Exception.AsError<Exception>(ex); 202internal static Exception CreateExceptionOnTaskFailure(Task task, TimeSpan timeout, string operation) 215internal static TimeoutException GetTimeoutException(Exception innerException, TimeSpan timeout, string operation)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (19)
28private Exception _pendingWritingMessageException; 142catch (Exception ex) 310catch (Exception ex) 346private static void ThrowOnPendingException(ref Exception pendingException) 348Exception exceptionToThrow = pendingException; 363catch (Exception e) 380catch (Exception e) 402catch (Exception) 418catch (Exception) 449catch (Exception ex) 464private Exception _pendingException; 637catch (Exception ex) 690internal void FinishUsingMessageStream(Exception ex) 785catch (Exception ex) 1062catch (Exception ex) 1142catch (Exception ex) 1216catch (Exception ex) 1261Exception pendingException = null; 1281catch (Exception ex)
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelTerminatedException.cs (1)
11public ChannelTerminatedException(string message, Exception innerException) : base(message, innerException) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (6)
383internal InvokeAsyncCompletedEventArgs(object[] results, Exception error, bool cancelled, object userState) 415Exception error = null; 426catch (Exception e) 449Exception error = null; 455catch (Exception e) 468private static void CompleteAsyncCall(AsyncOperationContext context, object[] results, Exception error)
FrameworkFork\System.ServiceModel\System\ServiceModel\CommunicationException.cs (1)
11public CommunicationException(string message, Exception innerException) : base(message, innerException) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\CommunicationObjectAbortedException.cs (1)
11public CommunicationObjectAbortedException(string message, Exception innerException) : base(message, innerException) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\CommunicationObjectFaultedException.cs (1)
11public CommunicationObjectFaultedException(string message, Exception innerException) : base(message, innerException) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (1)
39private static Type s_exceptionType = typeof(Exception);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DispatcherBuilder.cs (1)
309Exception error = new InvalidOperationException(text);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (1)
1680internal static bool TryGetFailedReferenceType(Exception ex, out Type failedReferenceType)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (17)
632catch (Exception e) 752catch (Exception e) 800catch (Exception e) 812catch (Exception e) 829catch (Exception e) 880Exception exception = null; 886catch (Exception e) 960catch (Exception e) 974catch (Exception e) 1013catch (Exception e) 1063catch (Exception e) 1112Exception exception = null; 1118catch (Exception e) 1166Exception exception = null; 1173catch (Exception e) 1235Exception exception = null; 1242catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExporter.cs (3)
62catch (Exception e) 144private Exception CreateExtensionException(IPolicyExportExtension exporter, Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataImporter.cs (3)
101catch (Exception e) 139private Exception CreateExtensionException(IPolicyImportExtension importer, Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (1)
474catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (6)
1177catch (Exception e) 1192catch (Exception e) 1200private Exception ThrowExtensionException(ContractDescription contract, IWsdlExportExtension exporter, Exception e) 1208private Exception ThrowExtensionException(ServiceEndpoint endpoint, IWsdlExportExtension exporter, Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (20)
342catch (Exception e) 408catch (Exception e) 423catch (Exception e) 480catch (Exception e) 565catch (Exception e) 620catch (Exception e) 671catch (Exception e) 691catch (Exception e) 707catch (Exception e) 1894private static Exception CreateBeforeImportExtensionException(IWsdlImportExtension importer, Exception e) 1900private Exception CreateAlreadyFaultedException(WsdlNS.NamedItem item) 1907private static Exception CreateExtensionException(IWsdlImportExtension importer, Exception e) 1926private WsdlImportException(WsdlNS.NamedItem item, Exception innerException) 1933internal static WsdlImportException Create(WsdlNS.NamedItem item, Exception innerException) 1964Exception messageException = this.InnerException; 2236catch (Exception e) 2255catch (Exception e) 2271catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\ActivityIdHeader.cs (2)
54catch (Exception e) 93catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (9)
37catch (Exception e) 54catch (Exception e) 234internal static Exception ThrowHelperError(Exception exception, Message message) 239internal static Exception ThrowHelperError(Exception exception, Guid activityId, object source) 244internal static Exception ThrowHelperWarning(Exception exception, Message message) 268internal static void TraceUserCodeException(Exception e, MethodInfo method)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\BufferedReceiveBinder.cs (2)
198catch (Exception exception) 240catch (Exception exception)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (6)
304internal bool HandleError(Exception error) 310internal bool HandleError(Exception error, ref ErrorHandlerFaultInfo faultInfo) 346catch (Exception e) 614internal void ProvideFault(Exception e, FaultConverter faultConverter, ref ErrorHandlerFaultInfo faultInfo) 643Exception error = new InvalidOperationException(SRServiceModel.SFxChannelDispatcherNoMessageVersion); 685Exception error = new InvalidOperationException(SRServiceModel.SFxCollectionDoesNotSupportSet0);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (23)
305catch (Exception e) 498private void ProvideFault(Exception e, ref ErrorHandlerFaultInfo faultInfo) 511internal bool HandleError(Exception e) 517private bool HandleError(Exception e, ref ErrorHandlerFaultInfo faultInfo) 538private bool HandleError(Exception e, RequestContext request, ServiceChannel channel) 554private bool HandleErrorContinuation(Exception e, RequestContext request, ServiceChannel channel, ref ErrorHandlerFaultInfo faultInfo, bool replied) 562catch (Exception e1) 586catch (Exception e2) 598catch (Exception e3) 621catch (Exception e4) 769Exception exception = null; 774catch (Exception e) 876private void ProvideFaultAndReplyFailure(RequestContext request, Exception exception, ref ErrorHandlerFaultInfo faultInfo, out bool replied, out bool replySentAsync) 886catch (Exception e) 947catch (Exception e) 983catch (Exception e) 1032catch (Exception e) 1046catch (Exception e) 1060catch (Exception e) 1085catch (Exception e) 1167catch (Exception e) 1202catch (Exception e) 1293public Exception Exception;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ConcurrencyBehavior.cs (1)
197catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchRuntime.cs (1)
394catch (Exception ex)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (14)
704Exception completionException = null; 711catch (Exception exception) 806private Exception _sendException; 924Exception sendException = null; 931catch (Exception e) 1156Exception exceptionFromBeginReceive = null; 1161catch (Exception e) 1207Exception receiveException = null; 1212catch (Exception e) 1252Exception backgroundCloseException = null; 1261catch (Exception e) 1296Exception backgroundCloseException = null; 1301catch (Exception e) 1569public void CaptureBackgroundException(Exception exception)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\EndpointDispatcher.cs (2)
98Exception error = new InvalidOperationException(SRServiceModel.SFxEndpointDispatcherMultipleChannelDispatcher0); 115Exception error = new InvalidOperationException(SRServiceModel.SFxEndpointDispatcherDifferentChannelDispatcher0);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ErrorBehavior.cs (12)
28Exception error = rpc.Error; 79private void ProvideFaultOfLastResort(Exception error, ref ErrorHandlerFaultInfo faultInfo) 113internal void ProvideFault(Exception e, FaultConverter faultConverter, ref ErrorHandlerFaultInfo faultInfo) 129private void ProvideWellKnownFault(Exception e, FaultConverter faultConverter, ref ErrorHandlerFaultInfo faultInfo) 169private bool HandleErrorCommon(Exception error, ref ErrorHandlerFaultInfo faultInfo) 198catch (Exception e) 209internal bool HandleError(Exception error) 215internal bool HandleError(Exception error, ref ErrorHandlerFaultInfo faultInfo) 220internal static bool ShouldRethrowClientSideExceptionAsIs(Exception e) 227internal static void ThrowAndCatch(Exception e, Message message) 254catch (Exception e2) 263internal static void ThrowAndCatch(Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ErrorHandlingReceiver.cs (6)
27catch (Exception e) 37private void HandleError(Exception e) 45private void HandleErrorOrAbort(Exception e) 84catch (Exception e) 120catch (Exception e) 167catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\IErrorHandler.cs (2)
11void ProvideFault(Exception error, MessageVersion version, ref Message fault); 12bool HandleError(Exception error);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (10)
101catch (Exception e) 130catch (Exception e) 168catch (Exception e) 216catch (Exception e) 264Exception exception = null; 274catch (Exception e) 312Exception exception = null; 325private void CallEnd(IAsyncResult result, out Exception exception) 332catch (Exception e) 343private void CallComplete(bool completedSynchronously, Exception exception)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (16)
138catch (Exception e) 178catch (Exception e) 222catch (Exception e) 303Exception exception = null; 314catch (Exception e) 346catch (Exception e) 509catch (Exception e) 578catch (Exception e) 609catch (Exception e) 642catch (Exception e) 722catch (Exception e) 766catch (Exception e) 784catch (Exception e) 798catch (Exception e) 815catch (Exception e) 835catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InstanceBehavior.cs (1)
40catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\InvalidBodyAccessException.cs (1)
14protected InvalidBodyAccessException(string message, Exception innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ListenerHandler.cs (6)
183catch (Exception e) 210catch (Exception e) 234catch (Exception e) 258catch (Exception e) 312catch (Exception e) 420private bool HandleError(Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (13)
35internal Exception Error; 171catch (Exception e) 217catch (Exception e) 236catch (Exception e) 255catch (Exception e) 274catch (Exception e) 293private bool ProcessError(Exception e) 322catch (Exception e2) 359catch (Exception e) 386catch (Exception e) 451catch (Exception e) 481catch (Exception e) 594Exception error = new InvalidOperationException(text);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\NetDispatcherFaultException.cs (2)
9public NetDispatcherFaultException(string reason, FaultCode code, Exception innerException) 13public NetDispatcherFaultException(FaultReason reason, FaultCode code, Exception innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
552internal static NetDispatcherFaultException CreateDeserializationFailedFault(string reason, Exception innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (2)
184catch (Exception e) 222catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
284catch (Exception ex)
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (1)
977return new XmlException(message, (Exception)null, lineInfo.LineNumber, lineInfo.LinePosition);
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointNotFoundException.cs (1)
11public EndpointNotFoundException(string message, Exception innerException) : base(message, innerException) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\ExceptionDetail.cs (1)
20public ExceptionDetail(Exception exception)
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultException.cs (2)
69internal FaultException(string reason, FaultCode code, string action, Exception innerException) 85internal FaultException(FaultReason reason, FaultCode code, string action, Exception innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\InstanceContext.cs (1)
198Exception error = new InvalidOperationException(SRServiceModel.SFxInstanceNotInitialized);
FrameworkFork\System.ServiceModel\System\ServiceModel\InvalidMessageContractException.cs (1)
22public InvalidMessageContractException(String message, Exception innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageHeaderException.cs (3)
24public MessageHeaderException(string message, Exception innerException) 36public MessageHeaderException(string message, string headerName, string ns, Exception innerException) 40public MessageHeaderException(string message, string headerName, string ns, bool isDuplicate, Exception innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\OperationContext.cs (1)
301catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\ProtocolException.cs (1)
14public ProtocolException(string message, Exception innerException) : base(message, innerException) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\QuotaExceededException.cs (1)
22public QuotaExceededException(string message, Exception innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\EncryptedKey.cs (2)
244catch (Exception e) 273private SecurityKeyIdentifier ReadGenericXmlSecurityKeyIdentifier(XmlDictionaryReader localReader, Exception previousException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\IdentityVerifier.cs (3)
81Exception e = CreateIdentityCheckException(identity, authorizationContext, errorString, serviceReference); 87private Exception CreateIdentityCheckException(EndpointIdentity identity, AuthorizationContext authorizationContext, string errorString, EndpointAddress serviceReference) 89Exception result;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\MessageSecurityException.cs (2)
24public MessageSecurityException(String message, Exception innerException) 29internal MessageSecurityException(string message, Exception innerException, MessageFault fault)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityAccessDeniedException.cs (1)
14public SecurityAccessDeniedException(String message, Exception innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityNegotiationException.cs (1)
19public SecurityNegotiationException(String message, Exception innerException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (4)
889catch (Exception e) 907catch (Exception e) 925catch (Exception e) 943catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (4)
630catch (Exception e) 934private static Exception CreateCertificateLoadException(StoreName storeName, StoreLocation storeLocation, 1073Exception completionException = null; 1082catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\TimeBoundedCache.cs (1)
411Exception inner = new QuotaExceededException(message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (5)
1939catch (Exception e) 2357catch (Exception e) 2879Exception mexException = null; 2884catch (Exception e) 2903catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy11.cs (1)
89catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (3)
200private bool ShouldWrapException(Exception e) 234catch (Exception e) 427catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (1)
555catch (Exception e)
FrameworkFork\System.ServiceModel\System\ServiceModel\ServerTooBusyException.cs (1)
14public ServerTooBusyException(string message, Exception innerException) : base(message, innerException) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\ServiceActivationException.cs (1)
14public ServiceActivationException(string message, Exception innerException) : base(message, innerException) { }
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlBuffer.cs (1)
125private Exception CreateInvalidStateException()
FrameworkFork\System.Web.Services\Fx.cs (1)
9internal static bool IsFatal(Exception e)
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (1)
3185catch (Exception e)
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptions.cs (1)
107private Exception ItemNotFound(XmlQualifiedName name, string type)
FrameworkFork\System.Web.Services\Services\Description\WebReferenceOptions.cs (1)
165catch (Exception e)
ImportModule.cs (5)
60catch (Exception e) 89catch (Exception e) 117catch (Exception e) 149catch (Exception e) 216catch (Exception e)
MarkupTelemetryHelper.cs (1)
118public static void TelemetryPostFault(Exception ex)
Metadata\HttpAuthenticationHelper.cs (1)
20public static T GetException<T>(Exception exception) where T : class
Metadata\MetadaExchangeResolver.cs (4)
37private Exception _metadataException; 199catch (Exception ex) 277catch (Exception ex) 299private bool RequiresAuthentication(Exception exception, Uri serviceUri, out bool isAuthenticationError)
Metadata\MetadataDocumentLoader.cs (4)
69private readonly List<Exception> _documentLoadExceptions = new List<Exception>(); 70public IEnumerable<Exception> DocumentLoadExceptions { get { return _documentLoadExceptions; } } 400catch (Exception ex)
Metadata\MetadataExchangeException.cs (1)
18public MetadataExchangeException(string message, Exception innerException) : base(message, innerException) { }
Metadata\ServiceDescriptor.cs (1)
71public IEnumerable<Exception> DocumentLoadExceptions { get { return this.metadataDocumentLoader.DocumentLoadExceptions; } }
OutputPathHelper.cs (2)
77catch (Exception e) 101catch (Exception e)
Shared\MSBuildProj.cs (2)
853catch (Exception ex) 934catch (Exception ex)
Shared\Options\ApplicationOptions.cs (5)
29private List<Exception> _errors { get; set; } = new List<Exception>(); 30public IEnumerable<Exception> Errors { get { return this._errors; } } 146catch (Exception ex) 292public void AddError(Exception ex)
Shared\Options\OptionsSerializer.cs (2)
85catch (Exception ex) 117catch (Exception ex)
Shared\Options\OptionValueParser.cs (2)
253catch (Exception ex) 275public static void ThrowInvalidValue(object value, OptionBase option, Exception innerException)
Shared\ProjectPropertyResolver.cs (2)
68catch (Exception ex) 95catch (Exception ex)
Shared\Utilities\PathHelper.cs (2)
219catch (Exception ex) 267catch (Exception ex)
Shared\Utilities\RuntimeEnvironmentHelper.cs (1)
116catch (Exception ex)
Shared\Utilities\Utilities.cs (4)
12internal static bool IsUnexpected(Exception ex) 17internal static bool IsFatal(Exception ex) 29internal static bool IsFatalOrUnexpected(Exception ex) 34internal static string GetExceptionMessage(Exception e, bool includeStackTrace = false)
Tool.cs (4)
166catch (Exception e) 232catch (Exception ex) 330private static async Task<int> ProcessExceptionAsync(Exception ex, CommandProcessorOptions options) 346foreach (var ax in agex.InnerExceptions)
ToolArgumentException.cs (1)
28internal ToolArgumentException(String message, Exception innerException) : base(message, innerException)
ToolConsole.cs (3)
38internal static void WriteToolError(Exception ex) 65internal static void WriteError(Exception e) 70internal static void WriteError(Exception e, string prefix)
ToolInputException.cs (1)
30internal ToolInputException(String message, Exception innerException) : base(message, innerException)
ToolRuntimeException.cs (1)
21public ToolRuntimeException(String message, Exception innerException) : base(message, innerException)
TypeLoader.cs (2)
31catch (Exception ex) 59foreach (var ex in rtle.LoaderExceptions)
DotnetTool.AppHost (1)
AppHost.cs (1)
103catch (Exception ex)
dotnet-user-jwts (2)
Program.cs (1)
62catch (Exception ex)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
40catch (Exception ex)
dotnet-user-secrets (2)
Program.cs (1)
40catch (Exception exception)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
40catch (Exception ex)
dotnet-watch (5)
Program.cs (5)
64catch (Exception ex) 122catch (Exception e) 191catch (Exception e) 205catch (Exception e) 298catch (Exception e)
GenerateDocumentationAndConfigFiles (58)
CodeFixerExtensions.cs (2)
55catch (Exception ex) 62catch (Exception ex)
Program.cs (2)
886catch (Exception ex) 951catch (Exception ex)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
65catch (Exception)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (8)
205catch (Exception) 304catch (Exception e) 328catch (Exception e) when (e is not IOException) 345catch (Exception e) when (e is not IOException) 387catch (Exception e) 405catch (Exception e) 424catch (Exception e) 449catch (Exception e)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
803catch (Exception ex) when (
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
259catch (Exception ex)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (7)
45catch (Exception e) 58catch (Exception e) 78catch (Exception e) 335catch (Exception e) 356catch (Exception e) 685catch (Exception e) 938catch (Exception e)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
179internal static void ThrowInvalidOperationException(ExceptionResource resource, Exception e)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (3)
26internal static void OnFatalException(Exception exception) 63internal static void DumpStackTrace(Exception? exception = null, string? message = null) 74for (Exception? current = exception; current is object; current = current.InnerException)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (14)
24public OperationCanceledIgnoringCallerTokenException(Exception innerException) 32public delegate void ErrorReporterHandler(Exception exception, ErrorSeverity severity, bool forceDump); 38private static Exception? s_reportedException; 46/// cref="ReportNonFatalError(Exception, ErrorSeverity, bool)"/></param> 102public static bool ReportAndPropagate(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 114public static bool ReportAndPropagateUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 143public static bool ReportAndPropagateUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 164public static bool ReportAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 176public static bool ReportWithDumpAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 189public static bool ReportAndCatchUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 219public static bool ReportAndCatchUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 259private static void Report(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 270public static void ReportNonFatalError(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 275private static void ReportException(Exception exception, ErrorSeverity severity, bool forceDump, ErrorReporterHandler? handler)
src\roslyn\src\Dependencies\Contracts\ExceptionUtilities.cs (3)
21internal static Exception UnexpectedValue(object? o) 30internal static Exception Unreachable([CallerFilePath] string? path = null, [CallerLineNumber] int line = 0) 39internal static bool IsCurrentOperationBeingCancelled(Exception exception, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
278catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, ErrorSeverity.Critical))
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (2)
381Exception? exception = null; 386catch (Exception ex) when ((exception = ex) == null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
294catch (Exception ex) 448catch (Exception e) when (FatalError.ReportAndPropagate(e))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (2)
37public SoftCrashException(string message, Exception innerException) : base(message, innerException) { } 39public SoftCrashException(string message, Exception innerException, CancellationToken token) : base(message, innerException, token) { }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
100=> compilation.GetTypeByMetadataName(typeof(Exception).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (2)
120public static Exception CreateDocumentNotFoundException(DocumentId? documentId) 127public static Exception CreateDocumentNotFoundException(string? debugName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
50catch (Exception)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
62List<Exception>? exceptions = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (2)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions) 21catch (Exception ex) when (FatalError.ReportAndCatch(ex))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
ilasm (2)
IlasmRootCommand.cs (1)
174catch (Exception e)
Program.cs (1)
274catch (Exception ex)
ILAssembler (1)
GrammarVisitor.cs (1)
694catch (Exception ex)
ILCompiler.Compiler (5)
Compiler\ILScanner.cs (1)
134catch (Exception ex)
Compiler\Logging\NativeAotFatalErrorException.cs (1)
30public NativeAotFatalErrorException(MessageContainer message, Exception innerException)
src\runtime\src\coreclr\tools\Common\Compiler\CodeGenerationFailedException.cs (1)
21public CodeGenerationFailedException(MethodDesc method, Exception inner)
src\runtime\src\coreclr\tools\Common\Compiler\InternalCompilerErrorException.cs (1)
15public InternalCompilerErrorException(string message, Exception innerException)
src\runtime\src\coreclr\tools\Common\Compiler\ProcessLinkerXmlBase.cs (1)
119catch (Exception ex)
ILCompiler.Diagnostics (7)
_generated\0\Microsoft.DiaSymReader.ISymNGenWriter.cs (2)
85catch (global::System.Exception __exception) 124catch (global::System.Exception __exception)
_generated\1\Microsoft.DiaSymReader.ISymNGenWriter2.cs (5)
89catch (global::System.Exception __exception) 128catch (global::System.Exception __exception) 176catch (global::System.Exception __exception) 215catch (global::System.Exception __exception) 263catch (global::System.Exception __exception)
ILCompiler.ReadyToRun (187)
Compiler\DependencyAnalysis\ReadyToRun\TypeValidationChecker.cs (2)
548catch (Exception ex) 642catch (Exception ex)
src\runtime\src\coreclr\tools\Common\Compiler\CodeGenerationFailedException.cs (1)
21public CodeGenerationFailedException(MethodDesc method, Exception inner)
src\runtime\src\coreclr\tools\Common\Compiler\InternalCompilerErrorException.cs (1)
15public InternalCompilerErrorException(string message, Exception innerException)
src\runtime\src\coreclr\tools\Common\Compiler\ProcessLinkerXmlBase.cs (1)
119catch (Exception ex)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
149private IntPtr AllocException(Exception ex)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl_generated.cs (181)
402catch (Exception ex) 417catch (Exception ex) 432catch (Exception ex) 447catch (Exception ex) 461catch (Exception ex) 475catch (Exception ex) 490catch (Exception ex) 505catch (Exception ex) 520catch (Exception ex) 535catch (Exception ex) 549catch (Exception ex) 563catch (Exception ex) 578catch (Exception ex) 592catch (Exception ex) 606catch (Exception ex) 621catch (Exception ex) 635catch (Exception ex) 650catch (Exception ex) 665catch (Exception ex) 680catch (Exception ex) 695catch (Exception ex) 710catch (Exception ex) 725catch (Exception ex) 740catch (Exception ex) 754catch (Exception ex) 769catch (Exception ex) 784catch (Exception ex) 799catch (Exception ex) 814catch (Exception ex) 828catch (Exception ex) 842catch (Exception ex) 856catch (Exception ex) 871catch (Exception ex) 885catch (Exception ex) 899catch (Exception ex) 913catch (Exception ex) 928catch (Exception ex) 943catch (Exception ex) 958catch (Exception ex) 973catch (Exception ex) 988catch (Exception ex) 1003catch (Exception ex) 1018catch (Exception ex) 1033catch (Exception ex) 1048catch (Exception ex) 1063catch (Exception ex) 1078catch (Exception ex) 1093catch (Exception ex) 1107catch (Exception ex) 1122catch (Exception ex) 1137catch (Exception ex) 1152catch (Exception ex) 1167catch (Exception ex) 1182catch (Exception ex) 1197catch (Exception ex) 1212catch (Exception ex) 1227catch (Exception ex) 1242catch (Exception ex) 1257catch (Exception ex) 1272catch (Exception ex) 1287catch (Exception ex) 1302catch (Exception ex) 1317catch (Exception ex) 1332catch (Exception ex) 1347catch (Exception ex) 1362catch (Exception ex) 1377catch (Exception ex) 1392catch (Exception ex) 1407catch (Exception ex) 1422catch (Exception ex) 1437catch (Exception ex) 1452catch (Exception ex) 1467catch (Exception ex) 1482catch (Exception ex) 1496catch (Exception ex) 1511catch (Exception ex) 1525catch (Exception ex) 1540catch (Exception ex) 1555catch (Exception ex) 1570catch (Exception ex) 1585catch (Exception ex) 1600catch (Exception ex) 1615catch (Exception ex) 1630catch (Exception ex) 1645catch (Exception ex) 1660catch (Exception ex) 1675catch (Exception ex) 1690catch (Exception ex) 1705catch (Exception ex) 1720catch (Exception ex) 1735catch (Exception ex) 1750catch (Exception ex) 1765catch (Exception ex) 1780catch (Exception ex) 1795catch (Exception ex) 1810catch (Exception ex) 1825catch (Exception ex) 1840catch (Exception ex) 1855catch (Exception ex) 1869catch (Exception ex) 1884catch (Exception ex) 1898catch (Exception ex) 1912catch (Exception ex) 1927catch (Exception ex) 1942catch (Exception ex) 1956catch (Exception ex) 1970catch (Exception ex) 1984catch (Exception ex) 1998catch (Exception ex) 2012catch (Exception ex) 2026catch (Exception ex) 2040catch (Exception ex) 2055catch (Exception ex) 2069catch (Exception ex) 2084catch (Exception ex) 2099catch (Exception ex) 2114catch (Exception ex) 2129catch (Exception ex) 2144catch (Exception ex) 2159catch (Exception ex) 2174catch (Exception ex) 2188catch (Exception ex) 2202catch (Exception ex) 2217catch (Exception ex) 2232catch (Exception ex) 2247catch (Exception ex) 2262catch (Exception ex) 2277catch (Exception ex) 2291catch (Exception ex) 2305catch (Exception ex) 2320catch (Exception ex) 2335catch (Exception ex) 2350catch (Exception ex) 2364catch (Exception ex) 2378catch (Exception ex) 2392catch (Exception ex) 2407catch (Exception ex) 2422catch (Exception ex) 2437catch (Exception ex) 2452catch (Exception ex) 2466catch (Exception ex) 2480catch (Exception ex) 2494catch (Exception ex) 2509catch (Exception ex) 2524catch (Exception ex) 2539catch (Exception ex) 2553catch (Exception ex) 2567catch (Exception ex) 2582catch (Exception ex) 2597catch (Exception ex) 2612catch (Exception ex) 2627catch (Exception ex) 2642catch (Exception ex) 2657catch (Exception ex) 2672catch (Exception ex) 2687catch (Exception ex) 2701catch (Exception ex) 2716catch (Exception ex) 2731catch (Exception ex) 2746catch (Exception ex) 2761catch (Exception ex) 2776catch (Exception ex) 2790catch (Exception ex) 2804catch (Exception ex) 2818catch (Exception ex) 2832catch (Exception ex) 2847catch (Exception ex) 2861catch (Exception ex) 2875catch (Exception ex) 2890catch (Exception ex) 2905catch (Exception ex) 2919catch (Exception ex) 2934catch (Exception ex) 2949catch (Exception ex) 2963catch (Exception ex) 2977catch (Exception ex) 2991catch (Exception ex) 3006catch (Exception ex) 3021catch (Exception ex) 3036catch (Exception ex) 3051catch (Exception ex)
ILCompiler.RyuJit (182)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
149private IntPtr AllocException(Exception ex)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl_generated.cs (181)
402catch (Exception ex) 417catch (Exception ex) 432catch (Exception ex) 447catch (Exception ex) 461catch (Exception ex) 475catch (Exception ex) 490catch (Exception ex) 505catch (Exception ex) 520catch (Exception ex) 535catch (Exception ex) 549catch (Exception ex) 563catch (Exception ex) 578catch (Exception ex) 592catch (Exception ex) 606catch (Exception ex) 621catch (Exception ex) 635catch (Exception ex) 650catch (Exception ex) 665catch (Exception ex) 680catch (Exception ex) 695catch (Exception ex) 710catch (Exception ex) 725catch (Exception ex) 740catch (Exception ex) 754catch (Exception ex) 769catch (Exception ex) 784catch (Exception ex) 799catch (Exception ex) 814catch (Exception ex) 828catch (Exception ex) 842catch (Exception ex) 856catch (Exception ex) 871catch (Exception ex) 885catch (Exception ex) 899catch (Exception ex) 913catch (Exception ex) 928catch (Exception ex) 943catch (Exception ex) 958catch (Exception ex) 973catch (Exception ex) 988catch (Exception ex) 1003catch (Exception ex) 1018catch (Exception ex) 1033catch (Exception ex) 1048catch (Exception ex) 1063catch (Exception ex) 1078catch (Exception ex) 1093catch (Exception ex) 1107catch (Exception ex) 1122catch (Exception ex) 1137catch (Exception ex) 1152catch (Exception ex) 1167catch (Exception ex) 1182catch (Exception ex) 1197catch (Exception ex) 1212catch (Exception ex) 1227catch (Exception ex) 1242catch (Exception ex) 1257catch (Exception ex) 1272catch (Exception ex) 1287catch (Exception ex) 1302catch (Exception ex) 1317catch (Exception ex) 1332catch (Exception ex) 1347catch (Exception ex) 1362catch (Exception ex) 1377catch (Exception ex) 1392catch (Exception ex) 1407catch (Exception ex) 1422catch (Exception ex) 1437catch (Exception ex) 1452catch (Exception ex) 1467catch (Exception ex) 1482catch (Exception ex) 1496catch (Exception ex) 1511catch (Exception ex) 1525catch (Exception ex) 1540catch (Exception ex) 1555catch (Exception ex) 1570catch (Exception ex) 1585catch (Exception ex) 1600catch (Exception ex) 1615catch (Exception ex) 1630catch (Exception ex) 1645catch (Exception ex) 1660catch (Exception ex) 1675catch (Exception ex) 1690catch (Exception ex) 1705catch (Exception ex) 1720catch (Exception ex) 1735catch (Exception ex) 1750catch (Exception ex) 1765catch (Exception ex) 1780catch (Exception ex) 1795catch (Exception ex) 1810catch (Exception ex) 1825catch (Exception ex) 1840catch (Exception ex) 1855catch (Exception ex) 1869catch (Exception ex) 1884catch (Exception ex) 1898catch (Exception ex) 1912catch (Exception ex) 1927catch (Exception ex) 1942catch (Exception ex) 1956catch (Exception ex) 1970catch (Exception ex) 1984catch (Exception ex) 1998catch (Exception ex) 2012catch (Exception ex) 2026catch (Exception ex) 2040catch (Exception ex) 2055catch (Exception ex) 2069catch (Exception ex) 2084catch (Exception ex) 2099catch (Exception ex) 2114catch (Exception ex) 2129catch (Exception ex) 2144catch (Exception ex) 2159catch (Exception ex) 2174catch (Exception ex) 2188catch (Exception ex) 2202catch (Exception ex) 2217catch (Exception ex) 2232catch (Exception ex) 2247catch (Exception ex) 2262catch (Exception ex) 2277catch (Exception ex) 2291catch (Exception ex) 2305catch (Exception ex) 2320catch (Exception ex) 2335catch (Exception ex) 2350catch (Exception ex) 2364catch (Exception ex) 2378catch (Exception ex) 2392catch (Exception ex) 2407catch (Exception ex) 2422catch (Exception ex) 2437catch (Exception ex) 2452catch (Exception ex) 2466catch (Exception ex) 2480catch (Exception ex) 2494catch (Exception ex) 2509catch (Exception ex) 2524catch (Exception ex) 2539catch (Exception ex) 2553catch (Exception ex) 2567catch (Exception ex) 2582catch (Exception ex) 2597catch (Exception ex) 2612catch (Exception ex) 2627catch (Exception ex) 2642catch (Exception ex) 2657catch (Exception ex) 2672catch (Exception ex) 2687catch (Exception ex) 2701catch (Exception ex) 2716catch (Exception ex) 2731catch (Exception ex) 2746catch (Exception ex) 2761catch (Exception ex) 2776catch (Exception ex) 2790catch (Exception ex) 2804catch (Exception ex) 2818catch (Exception ex) 2832catch (Exception ex) 2847catch (Exception ex) 2861catch (Exception ex) 2875catch (Exception ex) 2890catch (Exception ex) 2905catch (Exception ex) 2919catch (Exception ex) 2934catch (Exception ex) 2949catch (Exception ex) 2963catch (Exception ex) 2977catch (Exception ex) 2991catch (Exception ex) 3006catch (Exception ex) 3021catch (Exception ex) 3036catch (Exception ex) 3051catch (Exception ex)
illink (10)
ILLink.Tasks (1)
Utils.cs (1)
22catch (Exception)
Infrastructure.Common (5)
ServiceUtilHelper.cs (4)
129catch (Exception ex) 222catch (Exception ex) 276catch (Exception ex) 335catch (Exception ex)
xunit\ConditionAttribute.cs (1)
87catch (Exception exc)
Infrastructure.IntegrationTests (1)
OSAndFrameworkTests.4.1.1.cs (1)
82catch (Exception e)
Infrastructure.Tests (2)
PowerShellScripts\PowerShellCommand.cs (1)
155catch (Exception ex)
WorkflowScripts\NodeCommand.cs (1)
147catch (Exception ex)
libmscordaccore_universal (5)
Entrypoints.cs (5)
88catch (Exception ex) 104catch (Exception ex) 139catch (Exception ex) 189catch (Exception ex) 221catch (Exception ex)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
test\ProjectTemplates\Infrastructure\TestCommand.cs (1)
110catch (Exception ex)
Microsoft.Analyzers.Extra.Tests (1)
CallAnalysis\LegacyLoggingTests.Extra.cs (1)
167var exception = await Record.ExceptionAsync(async () =>
Microsoft.Analyzers.Local (1)
ApiLifecycle\ModelLoader.cs (1)
73catch (Exception)
Microsoft.Analyzers.Local.Tests (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Arcade.Common (1)
NupkgInfoFactory.cs (1)
45catch (Exception ex)
Microsoft.AspNetCore (1)
_generated\0\LoggerMessage.g.cs (1)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.AspNetCore.Http.PathString, string, global::System.Exception?> __RequestDeniedCallback =
Microsoft.AspNetCore.Antiforgery (20)
_generated\0\LoggerMessage.g.cs (11)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ValidationFailedCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ValidatedAntiforgeryTokenCallback = 41private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __MissingCookieTokenCallback = 57private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __MissingRequestTokenCallback = 73private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NewCookieTokenCallback = 89private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ReusedCookieTokenCallback = 105private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __TokenDeserializeExceptionCallback = 113public static partial void TokenDeserializeException(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 121private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResponseCacheHeadersOverridenToNoCacheCallback = 137private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FailedToDeserialzeTokensCallback = 145public static partial void FailedToDeserialzeTokens(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception)
AntiforgeryValidationException.cs (3)
7/// The <see cref="Exception"/> that is thrown when the antiforgery token validation fails. 26/// <param name="innerException">The inner <see cref="Exception"/>.</param> 27public AntiforgeryValidationException(string message, Exception? innerException)
Internal\AntiforgeryLoggerExtensions.cs (2)
30public static partial void TokenDeserializeException(this ILogger logger, Exception exception); 38public static partial void FailedToDeserialzeTokens(this ILogger logger, Exception exception);
Internal\AntiforgeryValidationFeature.cs (1)
10public Exception? Error { get; } = exception;
Internal\DefaultAntiforgery.cs (1)
334catch (Exception ex)
Internal\DefaultAntiforgeryTokenSerializer.cs (2)
32Exception? innerException = null; 72catch (Exception ex)
Microsoft.AspNetCore.AsyncState (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.AspNetCore.Authentication (23)
_generated\0\LoggerMessage.g.cs (14)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RemoteAuthenticationErrorCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SignInHandledCallback = 41private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SignInSkippedCallback = 57private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __AuthenticationSchemeNotAuthenticatedWithFailureCallback = 73private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AuthenticationSchemeAuthenticatedCallback = 89private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AuthenticationSchemeNotAuthenticatedCallback = 105private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AuthenticationSchemeChallengedCallback = 121private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AuthenticationSchemeForbiddenCallback = 137private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CorrelationPropertyNotFoundCallback = 153private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CorrelationCookieNotFoundCallback = 169private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __UnexpectedCorrelationCookieValueCallback = 185private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __AccessDeniedErrorCallback = 201private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __AccessDeniedContextHandledCallback = 217private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __AccessDeniedContextSkippedCallback =
AuthenticationHandler.cs (1)
269catch (Exception ex)
Events\RemoteAuthenticationContext.cs (1)
48public void Fail(Exception failure) => Result = HandleRequestResult.Fail(failure);
Events\RemoteFailureContext.cs (2)
24Exception failure) 33public Exception? Failure { get; set; }
Events\ResultContext.cs (1)
62public void Fail(Exception failure) => Result = AuthenticateResult.Fail(failure);
HandleRequestResult.cs (2)
43public static new HandleRequestResult Fail(Exception failure) 54public static new HandleRequestResult Fail(Exception failure, AuthenticationProperties? properties)
RemoteAuthenticationHandler.cs (2)
83Exception? exception = null; 108catch (Exception ex)
Microsoft.AspNetCore.Authentication.Abstractions (4)
AuthenticateResult.cs (3)
45public Exception? Failure { get; protected set; } 99public static AuthenticateResult Fail(Exception failure) 110public static AuthenticateResult Fail(Exception failure, AuthenticationProperties? properties)
AuthenticationFailureException.cs (1)
28public AuthenticationFailureException(string? message, Exception? innerException)
Microsoft.AspNetCore.Authentication.BearerToken (1)
_generated\0\LoggerMessage.g.cs (1)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AuthenticationSchemeSignedInCallback =
Microsoft.AspNetCore.Authentication.Cookies (2)
_generated\0\LoggerMessage.g.cs (2)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AuthenticationSchemeSignedInCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AuthenticationSchemeSignedOutCallback =
Microsoft.AspNetCore.Authentication.Core (21)
AuthenticationMetrics.cs (11)
53public void AuthenticatedRequestCompleted(string? scheme, AuthenticateResult? result, Exception? exception, long startTimestamp, long currentTimestamp) 62private void AuthenticatedRequestCompletedCore(string? scheme, AuthenticateResult? result, Exception? exception, long startTimestamp, long currentTimestamp) 91public void ChallengeCompleted(string? scheme, Exception? exception) 100private void ChallengeCompletedCore(string? scheme, Exception? exception) 117public void ForbidCompleted(string? scheme, Exception? exception) 126private void ForbidCompletedCore(string? scheme, Exception? exception) 143public void SignInCompleted(string? scheme, Exception? exception) 152private void SignInCompletedCore(string? scheme, Exception? exception) 169public void SignOutCompleted(string? scheme, Exception? exception) 178private void SignOutCompletedCore(string? scheme, Exception? exception) 200private static void AddErrorTag(ref TagList tags, Exception exception)
AuthenticationService.cs (5)
218private async Task<Exception> CreateMissingHandlerException(string scheme) 241private async Task<Exception> CreateMissingSignInHandlerException(string scheme) 258private async Task<Exception> CreateMismatchedSignInHandlerException(string scheme, IAuthenticationHandler handler) 281private async Task<Exception> CreateMissingSignOutHandlerException(string scheme) 297private async Task<Exception> CreateMismatchedSignOutHandlerException(string scheme, IAuthenticationHandler handler)
AuthenticationServiceImpl.cs (5)
27catch (Exception ex) 43catch (Exception ex) 58catch (Exception ex) 73catch (Exception ex) 88catch (Exception ex)
Microsoft.AspNetCore.Authentication.OAuth (6)
_generated\0\LoggerMessage.g.cs (1)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __HandleChallengeCallback =
OAuthHandler.cs (1)
234var exception = OAuthTokenResponse.GetStandardErrorException(JsonDocument.Parse(body));
OAuthTokenResponse.cs (4)
29private OAuthTokenResponse(Exception error) 49public static OAuthTokenResponse Failed(Exception error) 91public Exception? Error { get; set; } 93internal static Exception? GetStandardErrorException(JsonDocument response)
Microsoft.AspNetCore.Authorization (6)
_generated\0\LoggerMessage.g.cs (2)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UserAuthorizationSucceededCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UserAuthorizationFailedCallback =
AuthorizationMetrics.cs (2)
33public void AuthorizeAttemptCompleted(ClaimsPrincipal user, string? policyName, AuthorizationResult? result, Exception? exception) 42private void AuthorizeAttemptCore(ClaimsPrincipal user, string? policyName, AuthorizationResult? result, Exception? exception)
DefaultAuthorizationServiceImpl.cs (2)
31catch (Exception ex) 53catch (Exception ex)
Microsoft.AspNetCore.Components (82)
_generated\0\LoggerMessage.g.cs (17)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, string, global::System.Exception?> __PersistingValueToStateCallback = 27private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, string, global::System.Exception?> __SkippedPersistingNullValueCallback = 43private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, global::System.Exception?> __RestoringValueFromStateCallback = 59private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, global::System.Exception?> __NoValueToRestoreFromStateCallback = 75private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, string, global::System.Exception?> __RestoredValueFromPersistentStateCallback = 91private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, string, global::System.Exception?> __ValueNotFoundInPersistentStateCallback = 116private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, global::System.Type, int, global::System.Type, global::System.Exception?> __InitializingChildComponentCallback = 129private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, global::System.Type, global::System.Exception?> __InitializingRootComponentCallback = 142private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, global::System.Type, global::System.Exception?> __RenderingComponentCallback = 155private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, global::System.Type, global::System.Exception?> __DisposingComponentCallback = 168private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, ulong, string, global::System.Exception?> __HandlingEventCallback = 206public static readonly global::System.Func<__SkippingEventOnDisposedComponentStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 258private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __DisplayingNotFoundCallback = 274private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, string, string, global::System.Exception?> __NavigatingToComponentCallback = 290private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, global::System.Exception?> __NavigatingToExternalUriCallback = 306private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __DisplayingNotFound1Callback = 331private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __RequestMatchedRouteCallback =
ComponentBase.cs (2)
224/// <param name="exception">The <see cref="Exception"/> that will be dispatched to the renderer.</param> 226protected Task DispatchExceptionAsync(Exception exception)
ComponentsActivitySource.cs (4)
63public void StopNavigateActivity(ComponentsActivityHandle activityHandle, Exception? ex) 100public void StopHandleEventActivity(ComponentsActivityHandle activityHandle, Exception? ex) 112catch (Exception ex) 118private void StopComponentActivity(string category, ComponentsActivityHandle activityHandle, Exception? ex)
ComponentsMetrics.cs (7)
95catch (Exception ex) 103public void FailEventSync(Exception ex, long startTimestamp, string? componentType, string? methodName, string? attributeName) 124catch(Exception ex) 132public void FailParametersSync(Exception ex, long startTimestamp, string? componentType) 150catch (Exception ex) 159public void FailBatchSync(Exception ex, long startTimestamp) 206private static void AddErrorTag(ref TagList tags, Exception? exception)
ErrorBoundaryBase.cs (6)
23[Parameter] public RenderFragment<Exception>? ErrorContent { get; set; } 34protected Exception? CurrentException { get; private set; } 54/// <param name="exception">The <see cref="Exception"/> being handled.</param> 55protected abstract Task OnErrorAsync(Exception exception); 57void IErrorBoundary.HandleException(Exception exception) 110catch (Exception exception)
IErrorBoundary.cs (1)
19void HandleException(Exception error);
LocationChangeException.cs (1)
16public LocationChangeException(string message, Exception innerException)
NavigationManager.cs (3)
401catch (Exception ex) 548catch (Exception ex) 559protected virtual void HandleLocationChangingHandlerException(Exception ex, LocationChangingContext context)
PersistentState\ComponentStatePersistenceManager.cs (2)
273catch (Exception ex) 286catch (Exception ex)
Reflection\ComponentProperties.cs (1)
178catch (Exception ex)
RenderHandle.cs (3)
105/// Dispatches an <see cref="Exception"/> to the <see cref="Renderer"/>. 107/// <param name="exception">The <see cref="Exception"/> that will be dispatched to the renderer.</param> 109public Task DispatchExceptionAsync(Exception exception)
Rendering\ComponentState.cs (4)
103internal void RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, out Exception? renderFragmentException) 120catch (Exception ex) 158catch (Exception ex) 259catch (Exception ex)
Rendering\RendererSynchronizationContext.cs (6)
69catch (Exception exception) 107catch (Exception exception) 130catch (Exception exception) 150catch (Exception exception) 199catch (Exception ex) 253private void DispatchException(Exception ex) =>
RenderTree\Renderer.cs (22)
360/// <param name="exception">The <see cref="Exception"/>.</param> 361protected abstract void HandleException(Exception exception); 543catch (Exception e) 667var baseException = task.Exception.GetBaseException(); 864catch (Exception e) 1015componentState.RenderIntoBatch(_batchBuilder, renderQueueEntry.RenderFragment, out var renderFragmentException); 1028List<Exception> exceptions = null; 1056catch (Exception e) 1063catch (Exception exception) 1065exceptions ??= new List<Exception>(); 1121catch (Exception) 1138catch (Exception ex) 1160internal void HandleComponentException(Exception exception, int componentId) 1167private void HandleExceptionViaErrorBoundary(Exception error, ComponentState? errorSourceOrNull) 1197catch (Exception errorBoundaryException) 1263List<Exception> exceptions = null; 1284catch (Exception exception) 1286exceptions ??= new List<Exception>(); 1304List<Exception> asyncExceptions = null; 1311catch (Exception exception) 1313asyncExceptions ??= new List<Exception>(); 1321void NotifyExceptions(List<Exception> exceptions)
Routing\Router.cs (1)
375catch (Exception e)
src\aspnetcore\src\Http\Routing\src\ParameterPolicyActivator.cs (1)
61catch (Exception exception)
src\aspnetcore\src\Http\Routing\src\RouteCreationException.cs (1)
30public RouteCreationException(string message, Exception innerException)
Microsoft.AspNetCore.Components.Endpoints (87)
_generated\0\LoggerMessage.g.cs (60)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __TempDataCookieNotFoundCallback = 27private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __TempDataCookieLoadFailureCallback = 35public static partial void TempDataCookieLoadFailure(global::Microsoft.Extensions.Logging.ILogger logger, string cookieName, global::System.Exception exception) 43private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __TempDataCookieSaveSuccessCallback = 59private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __TempDataCookieLoadSuccessCallback = 84private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __CannotResolveConverterCallback = 92public static partial void CannotResolveConverter(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Type type, global::System.Exception? ex) 109private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __StartResolveMetadataGraphCallback = 125private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __EndResolveMetadataGraphCallback = 141private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __MetadataFoundCallback = 157private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __NoMetadataFoundCallback = 173private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, string, global::System.Exception?> __RecursiveTypeFoundCallback = 189private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __PrimitiveTypeCallback = 205private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __DictionaryTypeCallback = 221private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __CollectionTypeCallback = 237private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __ObjectTypeCallback = 253private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, string, global::System.Exception?> __ConstructorFoundCallback = 294public static readonly global::System.Func<__ConstructorParameterStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 340private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Type, global::System.Exception?> __CandidatePropertyCallback = 378public static readonly global::System.Func<__MatchingConstructorParameterFoundStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 445public static readonly global::System.Func<__CustomParameterNameMetadataStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 490private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __IgnoredPropertyCallback = 506private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __NonPublicSetterCallback = 522private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __PropertyRequiredCallback = 538private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __MetadataComputedCallback = 554private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __GenericTypeDefinitionNotSupportedCallback = 570private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __MultiplePublicConstructorsFoundCallback = 586private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __InterfacesNotSupportedCallback = 602private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __AbstractClassesNotSupportedCallback = 618private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __NoPublicConstructorFoundCallback = 634private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, string, global::System.Type, global::System.Exception?> __ConstructorParameterTypeNotSupportedCallback = 650private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, string, global::System.Type, global::System.Exception?> __PropertyTypeNotSupportedCallback = 675private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __OpaqueUrlUnprotectionFailedCallback = 683public static partial void OpaqueUrlUnprotectionFailed(global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Components.Endpoints.OpaqueRedirection> logger, global::System.Exception exception) 700private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __BeginRenderRootComponentCallback = 716private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __MiddlewareAntiforgeryValidationFailedCallback = 732private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __MiddlewareAntiforgeryValidationSucceededCallback = 748private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __EndpointAntiforgeryValidationDisabledCallback = 764private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __EndpointAntiforgeryValidationFailedCallback = 780private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __EndpointAntiforgeryValidationSucceededCallback = 796private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __InteractivityDisabledForErrorHandlingCallback = 821private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SessionPersistFailCallback = 829public static partial void SessionPersistFail(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 837private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SessionDeserializeFailCallback = 845public static partial void SessionDeserializeFail(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 862private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __TempDataSessionNotFoundCallback = 878private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __TempDataSessionLoadFailureCallback = 886public static partial void TempDataSessionLoadFailure(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 894private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __TempDataSessionSaveSuccessCallback = 910private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __TempDataSessionLoadSuccessCallback = 935private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __TempDataPersistFailCallback = 943public static partial void TempDataPersistFail(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 951private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __TempDataDeserializeFailCallback = 959public static partial void TempDataDeserializeFail(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 976private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string?, global::System.Exception?> __EventHandlerSkippedCallback = 992private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __ElementReferenceCaptureSkippedCallback = 1008private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __ComponentReferenceCaptureSkippedCallback = 1024private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __ComponentRenderModeSkippedCallback = 1040private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __NamedEventSkippedCallback = 1056private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string?, global::System.Exception?> __GenericRenderFragmentSkippedCallback =
Builder\OpaqueRedirection.cs (1)
105public static partial void OpaqueUrlUnprotectionFailed(ILogger<OpaqueRedirection> logger, Exception exception);
DependencyInjection\DefaultRazorComponentsServiceOptionsConfiguration.cs (1)
64catch (Exception)
DependencyInjection\PrerenderingErrorBoundaryLogger.cs (2)
11private static readonly Action<ILogger, string, Exception> _exceptionCaughtByErrorBoundary = LoggerMessage.Define<string>( 23public ValueTask LogErrorAsync(Exception exception)
FormMapping\Converters\CollectionConverter.cs (1)
243catch (Exception ex)
FormMapping\Converters\CompiledComplexTypeConverter.cs (1)
23catch (Exception ex)
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (2)
39var exceptionVar = Expression.Variable(typeof(Exception), "mappingException"); 145var exception = Expression.Variable(typeof(Exception), "constructorException");
FormMapping\FormDataMapper.cs (2)
27catch (Exception ex) 46public static partial void CannotResolveConverter(ILogger logger, Type type, Exception? ex);
FormMapping\FormDataMappingException.cs (1)
10public FormDataMappingException(FormDataMappingError error, Exception? innerException)
FormMapping\FormDataReader.cs (1)
85public void AddMappingError(Exception exception, string? attemptedValue)
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
181catch (Exception ex)
Rendering\EndpointHtmlRenderer.Streaming.cs (2)
81catch (Exception ex) 215private static void HandleExceptionAfterResponseStarted(HttpContext httpContext, TextWriter writer, Exception exception)
SessionCascadingValueSupplier.cs (4)
104catch (Exception ex) 120public static partial void SessionPersistFail(ILogger logger, Exception exception); 123public static partial void SessionDeserializeFail(ILogger logger, Exception exception); 169catch (Exception ex)
TempData\CookieTempDataProvider.cs (2)
99catch (Exception ex) 161public static partial void TempDataCookieLoadFailure(ILogger logger, string cookieName, Exception exception);
TempData\SessionStorageTempDataProvider.cs (2)
48catch (Exception ex) 84public static partial void TempDataSessionLoadFailure(ILogger logger, Exception exception);
TempData\TempDataCascadingValueSupplier.cs (4)
81catch (Exception ex) 98public static partial void TempDataPersistFail(ILogger logger, Exception exception); 101public static partial void TempDataDeserializeFail(ILogger logger, Exception exception); 163catch (Exception ex)
Microsoft.AspNetCore.Components.Forms (2)
EditContext.cs (2)
364catch (Exception ex) 629catch (Exception)
Microsoft.AspNetCore.Components.Server (318)
_generated\0\LoggerMessage.g.cs (184)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string?, global::System.Exception?> __EventHandlerSkippedCallback = 27private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __ElementReferenceCaptureSkippedCallback = 43private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __ComponentReferenceCaptureSkippedCallback = 59private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __ComponentRenderModeSkippedCallback = 75private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __NamedEventSkippedCallback = 91private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string?, global::System.Exception?> __GenericRenderFragmentSkippedCallback = 116private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitTerminatingGracefullyCallback = 132private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitTerminatedGracefullyCallback = 148private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __InvalidCircuitIdCallback = 173private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __CreatedCircuitCallback = 198private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __InitializationStartedCallback = 214private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __InitializationSucceededCallback = 230private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __InitializationFailedCallback = 238public static partial void InitializationFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 246private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __DisposeStartedCallback = 262private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __DisposeSucceededCallback = 278private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __DisposeFailedCallback = 286public static partial void DisposeFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId circuitId, global::System.Exception exception) 294private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitOpenedCallback = 310private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string, global::System.Exception?> __ConnectionUpCallback = 326private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string, global::System.Exception?> __ConnectionDownCallback = 342private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitClosedCallback = 358private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, string, string, global::System.Exception?> __CircuitHandlerFailedCallback = 366private static partial void CircuitHandlerFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Type handlerType, string handlerMethod, string message, global::System.Exception exception) 374private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UpdateRootComponentsStartedCallback = 390private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UpdateRootComponentsSucceededCallback = 406private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UpdateRootComponentsFailedCallback = 414public static partial void UpdateRootComponentsFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 422private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitUnhandledExceptionCallback = 430public static partial void CircuitUnhandledException(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId circuitId, global::System.Exception exception) 438private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitTransmittingClientErrorCallback = 454private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitTransmittedClientErrorSuccessCallback = 470private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitTransmitErrorFailedCallback = 478public static partial void CircuitTransmitErrorFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId circuitId, global::System.Exception exception) 486private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __UnhandledExceptionClientDisconnectedCallback = 494public static partial void UnhandledExceptionClientDisconnected(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId circuitId, global::System.Exception exception) 502private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __InvalidComponentTypeForUpdateCallback = 518private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __DispatchEventFailedToParseEventDataCallback = 526public static partial void DispatchEventFailedToParseEventData(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception ex) 534private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __DispatchEventFailedToDispatchEventCallback = 542public static partial void DispatchEventFailedToDispatchEvent(global::Microsoft.Extensions.Logging.ILogger logger, string eventHandlerId, global::System.Exception ex) 550private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long, string, global::System.Exception?> __BeginInvokeDotNetCallback = 566private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long, string, global::System.Exception?> __BeginInvokeDotNetFailedCallback = 574private static partial void BeginInvokeDotNetFailed(global::Microsoft.Extensions.Logging.ILogger logger, string methodIdentifier, long dotNetObjectId, string callId, global::System.Exception exception) 582private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __EndInvokeDispatchExceptionCallback = 590public static partial void EndInvokeDispatchException(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception ex) 598private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, string, global::System.Exception?> __EndInvokeJSFailedCallback = 614private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, global::System.Exception?> __EndInvokeJSSucceededCallback = 630private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __LocationChangeCallback = 646private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __LocationChangeSucceededCallback = 662private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __LocationChangeFailedCallback = 670public static partial void LocationChangeFailed(global::Microsoft.Extensions.Logging.ILogger logger, string uri, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId circuitId, global::System.Exception exception) 678private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __LocationChangingCallback = 694private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __OnRenderCompletedFailedCallback = 702public static partial void OnRenderCompletedFailed(global::Microsoft.Extensions.Logging.ILogger logger, long renderId, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId circuitId, global::System.Exception e) 710private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, global::System.Exception?> __ReceiveByteArraySuccessCallback = 726private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, global::System.Exception?> __ReceiveByteArrayExceptionCallback = 734public static partial void ReceiveByteArrayException(global::Microsoft.Extensions.Logging.ILogger logger, long id, global::System.Exception ex) 742private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, global::System.Exception?> __ReceiveJSDataChunkExceptionCallback = 750public static partial void ReceiveJSDataChunkException(global::Microsoft.Extensions.Logging.ILogger logger, long streamId, global::System.Exception ex) 758private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, global::System.Exception?> __SendDotNetStreamExceptionCallback = 766public static partial void SendDotNetStreamException(global::Microsoft.Extensions.Logging.ILogger logger, long id, global::System.Exception ex) 774private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, global::System.Exception?> __BeginInvokeDotNetStaticCallback = 790private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, global::System.Exception?> __BeginInvokeDotNetStaticFailedCallback = 798private static partial void BeginInvokeDotNetStaticFailed(global::Microsoft.Extensions.Logging.ILogger logger, string methodIdentifier, string assembly, string callId, global::System.Exception exception) 806private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __LocationChangeFailedInCircuitCallback = 814public static partial void LocationChangeFailedInCircuit(global::Microsoft.Extensions.Logging.ILogger logger, string uri, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId circuitId, global::System.Exception exception) 822private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __FailedToSaveStateToClientCallback = 830public static partial void FailedToSaveStateToClient(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId circuitId, global::System.Exception exception) 838private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __ServerPauseRequestedCallback = 854private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __ServerPauseAcceptedCallback = 870private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __ServerPauseRejectedCallback = 886private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __ServerPauseFailedCallback = 894public static partial void ServerPauseFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId circuitId, global::System.Exception exception) 911private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UnhandledExceptionDisposingCircuitHostCallback = 919private static partial void UnhandledExceptionDisposingCircuitHost(global::Microsoft.Extensions.Logging.ILogger logger, string message, global::System.Exception exception) 927private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ExceptionDisposingTokenSourceCallback = 935private static partial void ExceptionDisposingTokenSource(global::Microsoft.Extensions.Logging.ILogger logger, string message, global::System.Exception exception) 943private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitConnectStartedCallback = 959private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __FailedToFindCircuitCallback = 975private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string, global::System.Exception?> __ConnectingToActiveCircuitCallback = 991private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string, global::System.Exception?> __ConnectingToDisconnectedCircuitCallback = 1007private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __FailedToReconnectToCircuitCallback = 1015public static partial void FailedToReconnectToCircuit(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId circuitId, global::System.Exception exception) 1023private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string, global::System.Exception?> __CircuitDisconnectStartedCallback = 1039private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitNotActiveCallback = 1055private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string, global::System.Exception?> __CircuitConnectedToDifferentConnectionCallback = 1071private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitMarkedDisconnectedCallback = 1087private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::Microsoft.Extensions.Caching.Memory.EvictionReason, global::System.Exception?> __CircuitEvictedCallback = 1103private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitDisconnectedPermanentlyCallback = 1119private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitExceptionHandlerFailedCallback = 1127public static partial void CircuitExceptionHandlerFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId circuitId, global::System.Exception exception) 1135private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __ReconnectionSucceededCallback = 1170public static readonly global::System.Func<__PersistedCircuitStateDiscardedStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 1214private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string, global::System.Exception?> __CircuitPauseStartedCallback = 1230private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string, global::System.Exception?> __CircuitPauseFailedCallback = 1255private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::Microsoft.Extensions.Caching.Memory.EvictionReason, global::System.Exception?> __CircuitStateEvictedCallback = 1271private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitResumeStartedCallback = 1287private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __FailedToFindCircuitStateCallback = 1303private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitStateFoundCallback = 1319private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ExceptionDisposingTokenSourceCallback = 1327public static partial void ExceptionDisposingTokenSource(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 1335private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitPauseStartedCallback = 1360private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string, global::System.Exception?> __CircuitStateEvictedCallback = 1376private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitResumeStartedCallback = 1392private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __FailedToFindCircuitStateCallback = 1408private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitStateFoundCallback = 1424private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ExceptionDisposingTokenSourceCallback = 1432public static partial void ExceptionDisposingTokenSource(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 1440private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitPauseStartedCallback = 1456private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __ExceptionPersistingCircuitCallback = 1464public static partial void ExceptionPersistingCircuit(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId circuitId, global::System.Exception exception) 1472private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __ExceptionRestoringCircuitCallback = 1480public static partial void ExceptionRestoringCircuit(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId circuitId, global::System.Exception exception) 1488private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __ExceptionDuringExpirationCallback = 1496public static partial void ExceptionDuringExpiration(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId circuitId, global::System.Exception exception) 1504private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __ExceptionRemovingExpiredCircuitCallback = 1512public static partial void ExceptionRemovingExpiredCircuit(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId circuitId, global::System.Exception exception) 1529private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ExceptionCaughtByErrorBoundaryCallback = 1537public static partial void ExceptionCaughtByErrorBoundary(global::Microsoft.Extensions.Logging.ILogger logger, string message, global::System.Exception exception) 1554private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, string, global::System.Exception?> __BeginInvokeJSCallback = 1570private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string?, global::System.Exception?> __InvokeStaticDotNetMethodExceptionCallback = 1578private static partial void InvokeStaticDotNetMethodException(global::Microsoft.Extensions.Logging.ILogger logger, string assemblyName, string methodIdentifier, string? callbackId, global::System.Exception exception) 1586private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long, string?, global::System.Exception?> __InvokeInstanceDotNetMethodExceptionCallback = 1594private static partial void InvokeInstanceDotNetMethodException(global::Microsoft.Extensions.Logging.ILogger logger, string methodIdentifier, long dotNetObjectReference, string? callbackId, global::System.Exception exception) 1602private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string?, global::System.Exception?> __InvokeStaticDotNetMethodSuccessCallback = 1618private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long, string?, global::System.Exception?> __InvokeInstanceDotNetMethodSuccessCallback = 1643private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, bool, bool, global::System.Exception?> __RequestingNavigationCallback = 1659private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, bool, global::System.Exception?> __ReceivedLocationChangedNotificationCallback = 1675private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __NavigationCanceledCallback = 1691private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __NavigationFailedCallback = 1699public static partial void NavigationFailed(global::Microsoft.Extensions.Logging.ILogger logger, string uri, global::System.Exception exception) 1707private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RefreshFailedCallback = 1715public static partial void RefreshFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 1723private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestingNotFoundCallback = 1739private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __NavigationCompletedCallback = 1755private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __NavigationStoppedSessionEndedCallback = 1780private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UnhandledExceptionRenderingComponentCallback = 1788private static partial void UnhandledExceptionRenderingComponent(global::Microsoft.Extensions.Logging.ILogger logger, string message, global::System.Exception exception) 1796private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, int, string, global::System.Exception?> __BeginUpdateDisplayAsyncCallback = 1812private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __BufferingRenderDisconnectedClientCallback = 1828private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __SendBatchDataFailedCallback = 1836private static partial void SendBatchDataFailed(global::Microsoft.Extensions.Logging.ILogger logger, string message, global::System.Exception exception) 1844private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, string, double, global::System.Exception?> __CompletingBatchWithErrorCallback = 1860private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, double, global::System.Exception?> __CompletingBatchWithoutErrorCallback = 1876private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, global::System.Exception?> __ReceivedDuplicateBatchAckCallback = 1892private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FullUnacknowledgedRenderBatchesQueueCallback = 1917private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, global::System.Exception?> __ReceivedConfirmationForBatchCallback = 1933private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, global::System.Exception?> __CircuitAlreadyInitializedCallback = 1949private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CircuitHostNotInitializedCallback = 1965private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CircuitHostShutdownCallback = 1981private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __InvalidInputDataCallback = 1997private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __CircuitInitializationFailedCallback = 2005public static partial void CircuitInitializationFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 2013private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.Server.Circuits.CircuitId, string, string, global::System.Exception?> __CreatedCircuitCoreCallback = 2029private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __InvalidCircuitIdCoreCallback = 2045private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ResumeInvalidCircuitIdCoreCallback = 2070private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ParameterValuesInvalidFormatCallback = 2086private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, global::System.Exception?> __IncompleteParameterDefinitionCallback = 2102private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, global::System.Exception?> __InvalidParameterTypeCallback = 2118private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, global::System.Exception?> __InvalidParameterValueCallback = 2126internal static partial void InvalidParameterValue(global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Components.Server.ComponentParameterDeserializer> logger, string name, string typeName, string assembly, global::System.Exception e) 2134private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FailedToParseParameterDefinitionsCallback = 2142internal static partial void FailedToParseParameterDefinitions(global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Components.Server.ComponentParameterDeserializer> logger, global::System.Exception e) 2150private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FailedToParseParameterValuesCallback = 2158internal static partial void FailedToParseParameterValues(global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Components.Server.ComponentParameterDeserializer> logger, global::System.Exception e) 2166private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, int, global::System.Exception?> __MismatchedParameterAndDefinitionsCallback = 2182private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __MissingParameterDefinitionNameCallback = 2207private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FailedToDeserializeDescriptorCallback = 2215public static partial void FailedToDeserializeDescriptor(global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Components.Server.ServerComponentDeserializer> logger, global::System.Exception e) 2223private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __FailedToFindComponentCallback = 2239private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FailedToUnprotectDescriptorCallback = 2247public static partial void FailedToUnprotectDescriptor(global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Components.Server.ServerComponentDeserializer> logger, global::System.Exception e) 2255private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __InvalidMarkerTypeCallback = 2271private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __MissingMarkerDescriptorCallback = 2287private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __MismatchedInvocationIdCallback = 2303private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, int, global::System.Exception?> __OutOfSequenceDescriptorCallback = 2319private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, global::System.Exception?> __DescriptorSequenceMustStartAtZeroCallback = 2335private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ExpiredInvocationIdCallback = 2351private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, string, global::System.Exception?> __ReusedDescriptorSequenceCallback = 2367private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Components.RootComponentOperationType, string, global::System.Exception?> __InvalidRootComponentOperationCallback = 2383private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FailedToProcessRootComponentOperationsCallback = 2391public static partial void FailedToProcessRootComponentOperations(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 2399private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __InvalidRootComponentKeyCallback =
BlazorPack\BlazorPackHubProtocolWorker.cs (1)
63catch (Exception ex)
Circuits\CircuitActivitySource.cs (1)
61public void StopCircuitActivity(CircuitActivityHandle activityHandle, Exception? ex)
Circuits\CircuitHost.cs (54)
181catch (Exception ex) 243catch (Exception ex) 259List<Exception> exceptions = null; 268catch (Exception ex) 271exceptions ??= new List<Exception>(); 291List<Exception> exceptions = null; 300catch (Exception ex) 303exceptions ??= new List<Exception>(); 327List<Exception> exceptions = null; 336catch (Exception ex) 339exceptions ??= new List<Exception>(); 355List<Exception> exceptions = null; 364catch (Exception ex) 367exceptions ??= new List<Exception>(); 390catch (Exception e) 416catch (Exception ex) 450catch (Exception ex) 475catch (Exception ex) 499catch (Exception ex) 519catch (Exception ex) 549catch (Exception ex) 594catch (Exception ex) 619catch (Exception ex) 703private async void ReportAndInvoke_UnhandledException(object sender, Exception e) 713await ReportUnhandledException((Exception)e.ExceptionObject); 717private async Task ReportUnhandledException(Exception exception) 724private string GetClientErrorMessage(Exception exception, string additionalInformation = null) 740private async Task TryNotifyClientErrorAsync(IClientProxy client, string error, Exception exception = null) 757catch (Exception ex) 849catch (Exception ex) 1003catch (Exception ex) 1023catch (Exception ex) 1042public static partial void InitializationFailed(ILogger logger, Exception exception); 1051public static partial void DisposeFailed(ILogger logger, CircuitId circuitId, Exception exception); 1066private static partial void CircuitHandlerFailed(ILogger logger, Type handlerType, string handlerMethod, string message, Exception exception); 1075public static partial void UpdateRootComponentsFailed(ILogger logger, Exception exception); 1077public static void CircuitHandlerFailed(ILogger logger, CircuitHandler handler, string handlerMethod, Exception exception) 1088public static partial void CircuitUnhandledException(ILogger logger, CircuitId circuitId, Exception exception); 1097public static partial void CircuitTransmitErrorFailed(ILogger logger, CircuitId circuitId, Exception exception); 1100public static partial void UnhandledExceptionClientDisconnected(ILogger logger, CircuitId circuitId, Exception exception); 1106public static partial void DispatchEventFailedToParseEventData(ILogger logger, Exception ex); 1109public static partial void DispatchEventFailedToDispatchEvent(ILogger logger, string eventHandlerId, Exception ex); 1115private static partial void BeginInvokeDotNetFailed(ILogger logger, string methodIdentifier, long dotNetObjectId, string callId, Exception exception); 1118public static partial void EndInvokeDispatchException(ILogger logger, Exception ex); 1133public static partial void LocationChangeFailed(ILogger logger, string uri, CircuitId circuitId, Exception exception); 1139public static partial void OnRenderCompletedFailed(ILogger logger, long renderId, CircuitId circuitId, Exception e); 1145public static partial void ReceiveByteArrayException(ILogger logger, long id, Exception ex); 1148public static partial void ReceiveJSDataChunkException(ILogger logger, long streamId, Exception ex); 1151public static partial void SendDotNetStreamException(ILogger logger, long id, Exception ex); 1169private static partial void BeginInvokeDotNetStaticFailed(ILogger logger, string methodIdentifier, string assembly, string callId, Exception exception); 1171public static void BeginInvokeDotNetFailed(ILogger logger, string callId, string assemblyName, string methodIdentifier, long dotNetObjectId, Exception exception) 1184public static partial void LocationChangeFailedInCircuit(ILogger logger, string uri, CircuitId circuitId, Exception exception); 1187public static partial void FailedToSaveStateToClient(ILogger logger, CircuitId circuitId, Exception exception); 1199public static partial void ServerPauseFailed(ILogger logger, CircuitId circuitId, Exception exception);
Circuits\CircuitIdFactory.cs (1)
80catch (Exception)
Circuits\CircuitPersistenceManager.cs (1)
62catch (Exception)
Circuits\CircuitRegistry.cs (11)
221catch (Exception ex) 302catch (Exception ex) 333catch (Exception) 373catch (Exception ex) 416catch (Exception ex) 438private static partial void UnhandledExceptionDisposingCircuitHost(ILogger logger, string message, Exception exception); 440public static void UnhandledExceptionDisposingCircuitHost(ILogger logger, Exception exception) 444private static partial void ExceptionDisposingTokenSource(ILogger logger, string message, Exception exception); 446public static void ExceptionDisposingTokenSource(ILogger logger, Exception exception) 462public static partial void FailedToReconnectToCircuit(ILogger logger, CircuitId circuitId, Exception exception = null); 483public static partial void CircuitExceptionHandlerFailed(ILogger logger, CircuitId circuitId, Exception exception);
Circuits\ComponentParameterDeserializer.cs (5)
63catch (Exception e) 88catch (Exception e) 112internal static partial void InvalidParameterValue(ILogger<ComponentParameterDeserializer> logger, string name, string typeName, string assembly, Exception e); 115internal static partial void FailedToParseParameterDefinitions(ILogger<ComponentParameterDeserializer> logger, Exception e); 118internal static partial void FailedToParseParameterValues(ILogger<ComponentParameterDeserializer> logger, Exception e);
Circuits\DefaultInMemoryCircuitPersistenceProvider.cs (2)
135catch (Exception ex) 165public static partial void ExceptionDisposingTokenSource(ILogger logger, Exception exception);
Circuits\HybridCacheCircuitPersistenceProvider.cs (7)
53catch (Exception ex) 88catch (Exception ex) 114public static partial void ExceptionDisposingTokenSource(ILogger logger, Exception exception); 120public static partial void ExceptionPersistingCircuit(ILogger logger, CircuitId circuitId, Exception exception); 123public static partial void ExceptionRestoringCircuit(ILogger logger, CircuitId circuitId, Exception exception); 126public static partial void ExceptionDuringExpiration(ILogger logger, CircuitId circuitId, Exception exception); 129public static partial void ExceptionRemovingExpiredCircuit(ILogger logger, CircuitId circuitId, Exception exception);
Circuits\RemoteErrorBoundaryLogger.cs (2)
24public ValueTask LogErrorAsync(Exception exception) 48public static partial void ExceptionCaughtByErrorBoundary(ILogger logger, string message, Exception exception);
Circuits\RemoteJSDataStream.cs (2)
134catch (Exception e) 217private async Task CompletePipeAndDisposeStream(Exception? ex = null)
Circuits\RemoteJSRuntime.cs (5)
38public event EventHandler<Exception>? UnhandledException; 60internal void RaiseUnhandledException(Exception ex) 247private static partial void InvokeStaticDotNetMethodException(ILogger logger, string assemblyName, string methodIdentifier, string? callbackId, Exception exception); 250private static partial void InvokeInstanceDotNetMethodException(ILogger logger, string methodIdentifier, long dotNetObjectReference, string? callbackId, Exception exception); 258internal static void InvokeDotNetMethodException(ILogger logger, in DotNetInvocationInfo invocationInfo, Exception exception)
Circuits\RemoteNavigationManager.cs (6)
27public event EventHandler<Exception>? UnhandledException; 144catch (Exception ex) 180catch (Exception ex) 188protected override void HandleLocationChangingHandlerException(Exception ex, LocationChangingContext context) 232public static partial void NavigationFailed(ILogger logger, string uri, Exception exception); 235public static partial void RefreshFailed(ILogger logger, Exception exception);
Circuits\RemoteRenderer.cs (9)
36public event EventHandler<Exception>? UnhandledException; 116protected override void HandleException(Exception exception) 120foreach (var innerException in aggregateException.Flatten().InnerExceptions) 225catch (Exception e) 379catch (Exception exception) 388private static partial void UnhandledExceptionRenderingComponent(ILogger logger, string message, Exception exception); 390public static void UnhandledExceptionRenderingComponent(ILogger logger, Exception exception) 400private static partial void SendBatchDataFailed(ILogger logger, string message, Exception exception); 402public static void SendBatchDataFailed(ILogger logger, Exception exception)
Circuits\RevalidatingServerAuthenticationStateProvider.cs (1)
95catch (Exception ex)
Circuits\ServerComponentDeserializer.cs (6)
250catch (Exception e) 264catch (Exception e) 353catch (Exception ex) 371public static partial void FailedToDeserializeDescriptor(ILogger<ServerComponentDeserializer> logger, Exception e); 377public static partial void FailedToUnprotectDescriptor(ILogger<ServerComponentDeserializer> logger, Exception e); 404public static partial void FailedToProcessRootComponentOperations(ILogger logger, Exception exception);
ComponentHub.cs (4)
74public override Task OnDisconnectedAsync(Exception exception) 158catch (Exception ex) 414catch (Exception ex) 631public static partial void CircuitInitializationFailed(ILogger logger, Exception exception);
src\aspnetcore\src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (12)
94catch (Exception ex) 124catch (Exception ex) 151catch (Exception ex) 195catch (Exception ex) 316catch (Exception ex) 621catch (Exception ex) 633catch (Exception ex) 645catch (Exception ex) 665catch (Exception ex) 677catch (Exception ex) 689catch (Exception ex) 701catch (Exception ex)
src\aspnetcore\src\SignalR\common\Shared\TryGetReturnType.cs (1)
19catch (Exception)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackReader.cs (2)
933private static EndOfStreamException ThrowNotEnoughBytesException(Exception innerException) => throw new EndOfStreamException(new EndOfStreamException().Message, innerException); 940private static Exception ThrowInvalidCode(byte code)
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackSerializationException.cs (1)
40public MessagePackSerializationException(string message, Exception inner)
Microsoft.AspNetCore.Components.Web (18)
_generated\0\LoggerMessage.g.cs (6)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __BeginLoadCallback = 27private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CacheHitCallback = 43private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __StreamStartCallback = 59private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __LoadSuccessCallback = 75private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __LoadFailedCallback = 83public static partial void LoadFailed(global::Microsoft.Extensions.Logging.ILogger logger, string cacheKey, global::System.Exception exception)
HtmlRendering\StaticHtmlRenderer.cs (1)
81protected override void HandleException(Exception exception)
Media\MediaComponentBase.cs (2)
241catch (Exception ex) 309public static partial void LoadFailed(ILogger logger, string cacheKey, Exception exception);
Virtualization\Virtualize.cs (3)
66private Exception? _refreshException; 516var oldRefreshException = _refreshException; 911catch (Exception e)
Web\ErrorBoundary.cs (2)
19/// <param name="exception">The <see cref="Exception"/> being handled.</param> 20protected override async Task OnErrorAsync(Exception exception)
Web\IErrorBoundaryLogger.cs (2)
17/// <param name="exception">The <see cref="Exception"/> to log.</param> 19ValueTask LogErrorAsync(Exception exception);
WebEventData\WebEventData.cs (2)
27catch (Exception e) 81catch (Exception e)
Microsoft.AspNetCore.Components.WebView.Maui (7)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
177 catch (Exception ex)
src\Core\src\TaskExtensions.cs (6)
13 Action<Exception>? errorCallback = null) 20 catch (Exception exc) 31 Action<Exception>? errorCallback = null 38 catch (Exception ex) 61 static void Log(ILogger? logger, Exception ex, string? callerName) => 71 catch (Exception ex)
Microsoft.AspNetCore.Components.WebView.WindowsForms (8)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
177 catch (Exception ex)
WindowsFormsDispatcher.cs (7)
18 private static Action<Exception> RethrowException = exception => 55 catch (Exception ex) 89 catch (Exception ex) 99 catch (Exception ex) 123 catch (Exception ex) 157 catch (Exception ex) 168 catch (Exception ex)
Microsoft.AspNetCore.Components.WebView.Wpf (6)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
177 catch (Exception ex)
WpfDispatcher.cs (5)
20 private static Action<Exception> RethrowException = exception => 39 catch (Exception ex) 62 catch (Exception ex) 85 catch (Exception ex) 108 catch (Exception ex)
Microsoft.AspNetCore.Connections.Abstractions (7)
Exceptions\AddressInUseException.cs (2)
25/// <param name="inner">The underlying <see cref="Exception"/>.</param> 26public AddressInUseException(string message, Exception inner) : base(message, inner)
Exceptions\ConnectionAbortedException.cs (2)
33/// <param name="inner">The underlying <see cref="Exception"/>.</param> 34public ConnectionAbortedException(string message, Exception inner) : base(message, inner)
Exceptions\ConnectionResetException.cs (2)
26/// <param name="inner">The underlying <see cref="Exception"/>.</param> 27public ConnectionResetException(string message, Exception inner) : base(message, inner)
Features\ITlsHandshakeFeature.cs (1)
91Exception? Exception => null;
Microsoft.AspNetCore.CookiePolicy (9)
_generated\0\LoggerMessage.g.cs (9)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, bool, global::System.Exception?> __NeedsConsentCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, bool, global::System.Exception?> __HasConsentCallback = 41private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ConsentGrantedCallback = 57private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ConsentWithdrawnCallback = 73private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CookieSuppressedCallback = 89private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __DeleteCookieSuppressedCallback = 105private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CookieUpgradedToSecureCallback = 121private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __CookieSameSiteUpgradedCallback = 137private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CookieUpgradedToHttpOnlyCallback =
Microsoft.AspNetCore.Cors (14)
_generated\0\LoggerMessage.g.cs (12)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __IsPreflightRequestCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RequestHasOriginHeaderCallback = 41private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestDoesNotHaveOriginHeaderCallback = 57private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __PolicySuccessCallback = 73private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __PolicyFailureCallback = 89private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __OriginNotAllowedCallback = 105private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AccessControlMethodNotAllowedCallback = 121private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RequestHeaderNotAllowedCallback = 137private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FailedToSetCorsHeadersCallback = 145public static partial void FailedToSetCorsHeaders(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception? exception) 153private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NoCorsPolicyFoundCallback = 169private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __IsNotPreflightRequestCallback =
CORSLoggerExtensions.cs (1)
35public static partial void FailedToSetCorsHeaders(this ILogger logger, Exception? exception);
Infrastructure\CorsMiddleware.cs (1)
200catch (Exception exception)
Microsoft.AspNetCore.Cryptography.Internal (1)
CryptoUtil.cs (1)
59public static Exception Fail(string message)
Microsoft.AspNetCore.DataProtection (145)
_generated\0\LoggerMessage.g.cs (94)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.DateTimeOffset, global::System.Exception?> __UsingFallbackKeyWithExpirationAsDefaultKeyCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __UsingKeyAsDefaultKeyCallback = 41private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __OpeningCNGAlgorithmFromProviderWithHMACCallback = 57private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __OpeningCNGAlgorithmFromProviderWithChainingModeCBCCallback = 73private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, string, global::System.Exception?> __PerformingUnprotectOperationToKeyWithPurposesCallback = 89private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __KeyWasNotFoundInTheKeyRingUnprotectOperationCannotProceedCallback = 105private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __KeyWasRevokedCallerRequestedUnprotectOperationProceedRegardlessCallback = 121private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __KeyWasRevokedUnprotectOperationCannotProceedCallback = 137private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __OpeningCNGAlgorithmFromProviderWithChainingModeGCMCallback = 153private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UsingManagedKeyedHashAlgorithmCallback = 169private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UsingManagedSymmetricAlgorithmCallback = 185private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, string, global::System.Exception?> __KeyIsIneligibleToBeTheDefaultKeyBecauseItsMethodFailedCallback = 193public static partial void KeyIsIneligibleToBeTheDefaultKeyBecauseItsMethodFailed(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Guid keyId, string methodName, global::System.Exception exception) 201private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.DateTimeOffset, global::System.Exception?> __ConsideringKeyWithExpirationDateAsDefaultKeyCallback = 217private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __KeyIsNoLongerUnderConsiderationAsDefaultCallback = 233private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Xml.Linq.XName, global::System.Exception?> __UnknownElementWithNameFoundInKeyringSkippingCallback = 249private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __MarkedKeyAsRevokedInTheKeyringCallback = 265private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __TriedToProcessRevocationOfKeyButNoSuchKeyWasFoundCallback = 281private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __FoundKeyCallback = 297private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.DateTimeOffset, global::System.Exception?> __FoundRevocationOfAllKeysCreatedPriorToCallback = 313private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __FoundRevocationOfKeyCallback = 329private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Xml.Linq.XElement, global::System.Exception?> __ExceptionWhileProcessingRevocationElementCallback = 337public static partial void ExceptionWhileProcessingRevocationElement(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Xml.Linq.XElement revocationElement, global::System.Exception exception) 345private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.DateTimeOffset, string?, global::System.Exception?> __RevokingAllKeysAsOfForReasonCallback = 361private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __KeyCacheExpirationTokenTriggeredByOperationCallback = 377private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Xml.Linq.XElement, global::System.Exception?> __ExceptionWhileProcessingKeyElementCallback = 385public static partial void ExceptionWhileProcessingKeyElement(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Xml.Linq.XElement element, global::System.Exception exception) 393private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Xml.Linq.XElement, global::System.Exception?> __AnExceptionOccurredWhileProcessingElementDebugCallback = 401public static partial void AnExceptionOccurredWhileProcessingElementDebug(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Xml.Linq.XElement element, global::System.Exception exception) 409private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __EncryptingToWindowsDPAPIForCurrentUserAccountCallback = 425private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AnErrorOccurredWhileEncryptingToX509CertificateWithThumbprintCallback = 433public static partial void AnErrorOccurredWhileEncryptingToX509CertificateWithThumbprint(this global::Microsoft.Extensions.Logging.ILogger logger, string thumbprint, global::System.Exception exception) 441private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __EncryptingToX509CertificateWithThumbprintCallback = 457private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ExceptionWhileTryingToResolveCertificateWithThumbprintCallback = 465public static partial void ExceptionWhileTryingToResolveCertificateWithThumbprint(this global::Microsoft.Extensions.Logging.ILogger logger, string thumbprint, global::System.Exception exception) 473private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, string, global::System.Exception?> __PerformingProtectOperationToKeyWithPurposesCallback = 489private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, string, global::System.Exception?> __DescriptorDeserializerTypeForKeyIsCallback = 505private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __KeyEscrowSinkFoundWritingKeyToEscrowCallback = 521private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __NoKeyEscrowSinkFoundNotWritingKeyToEscrowCallback = 537private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __NoXMLEncryptorConfiguredKeyMayBePersistedToStorageInUnencryptedFormCallback = 553private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.DateTimeOffset, string?, global::System.Exception?> __RevokingKeyForReasonCallback = 569private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ReadingDataFromFileCallback = 585private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __NameIsNotSafeFileNameCallback = 601private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __WritingDataToFileCallback = 617private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Win32.RegistryKey, string, global::System.Exception?> __ReadingDataFromRegistryKeyValueCallback = 633private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __NameIsNotSafeRegistryValueNameCallback = 649private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __DecryptingSecretElementUsingWindowsDPAPINGCallback = 665private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __EncryptingToWindowsDPAPINGUsingProtectionDescriptorRuleCallback = 681private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ExceptionOccurredTryingToDecryptElementCallback = 689public static partial void ExceptionOccurredTryingToDecryptElement(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 697private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __EncryptingUsingNullEncryptorCallback = 713private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UsingEphemeralDataProtectionProviderCallback = 729private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ExistingCachedKeyRingIsExpiredCallback = 745private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ErrorOccurredWhileRefreshingKeyRingCallback = 753public static partial void ErrorOccurredWhileRefreshingKeyRing(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 761private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ErrorOccurredWhileReadingKeyRingCallback = 769public static partial void ErrorOccurredWhileReadingKeyRing(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 777private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __KeyRingDoesNotContainValidDefaultKeyCallback = 793private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UsingInmemoryRepositoryCallback = 809private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __DecryptingSecretElementUsingWindowsDPAPICallback = 825private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __DefaultKeyExpirationImminentAndRepositoryCallback = 841private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RepositoryContainsNoViableDefaultKeyCallback = 857private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ErrorOccurredWhileEncryptingToWindowsDPAPICallback = 865public static partial void ErrorOccurredWhileEncryptingToWindowsDPAPI(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 873private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __EncryptingToWindowsDPAPIForLocalMachineAccountCallback = 889private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ErrorOccurredWhileEncryptingToWindowsDPAPINGCallback = 897public static partial void ErrorOccurredWhileEncryptingToWindowsDPAPING(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 905private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __PolicyResolutionStatesThatANewKeyShouldBeAddedToTheKeyRingCallback = 921private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.DateTimeOffset, global::System.DateTimeOffset, global::System.DateTimeOffset, global::System.Exception?> __CreatingKeyCallback = 937private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UsingEphemeralKeyRepositoryCallback = 953private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UsingRegistryAsKeyRepositoryWithDPAPICallback = 969private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UsingProfileAsKeyRepositoryCallback = 985private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UsingProfileAsKeyRepositoryWithDPAPICallback = 1001private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UsingAzureAsKeyRepositoryCallback = 1017private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __KeyRingWasLoadedOnStartupCallback = 1033private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __KeyRingFailedToLoadOnStartupCallback = 1041public static partial void KeyRingFailedToLoadOnStartup(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception innerException) 1049private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UsingEphemeralFileSystemLocationInContainerCallback = 1065private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __IgnoringReadOnlyConfigurationForNonDefaultOptionsCallback = 1081private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UsingReadOnlyKeyConfigurationCallback = 1097private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NotUsingReadOnlyKeyConfigurationBecauseOfRepositoryCallback = 1113private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NotUsingReadOnlyKeyConfigurationBecauseOfEncryptorCallback = 1129private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __KeyRingDefaultKeyIsRevokedCallback = 1145private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, string, global::System.Exception?> __RetryingMethodOfKeyAfterFailureCallback = 1153public static partial void RetryingMethodOfKeyAfterFailure(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Guid keyId, string methodName, global::System.Exception exception) 1161private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __DeletingFileCallback = 1177private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FailedToDeleteFileCallback = 1185public static partial void FailedToDeleteFile(this global::Microsoft.Extensions.Logging.ILogger logger, string fileName, global::System.Exception exception) 1193private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Win32.RegistryKey, string, global::System.Exception?> __RemovingDataFromRegistryKeyValueCallback = 1209private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Win32.RegistryKey, string, global::System.Exception?> __FailedToRemoveDataFromRegistryKeyValueCallback = 1217public static partial void FailedToRemoveDataFromRegistryKeyValue(this global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.Win32.RegistryKey registryKeyName, string valueName, global::System.Exception exception) 1225private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __KeyRevokedMultipleTimesCallback = 1241private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.DateTimeOffset, global::System.DateTimeOffset, global::System.Exception?> __DateBasedRevocationSupersededCallback = 1257private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Guid, global::System.Exception?> __DeletingKeyCallback =
Cng\CngGcmAuthenticatedEncryptor.cs (1)
286catch (Exception ex) when (ex.RequiresHomogenization())
Error.cs (4)
29public static CryptographicException CryptCommon_GenericError(Exception? inner = null) 52public static CryptographicException Common_EncryptionFailed(Exception? inner = null) 74public static CryptographicException DecryptionFailed(Exception inner) 101public static InvalidOperationException KeyRingProvider_RefreshFailedOnOtherThread(Exception? inner)
Internal\DataProtectionHostedService.cs (1)
39catch (Exception ex)
KeyManagement\DefaultKeyResolver.cs (2)
95List<Exception>? exceptions = null; 114catch (Exception ex)
KeyManagement\Key.cs (3)
25private Exception? _descriptorException; 103Exception? descriptorException) 158catch (Exception ex)
KeyManagement\KeyRingBasedDataProtector.cs (2)
140catch (Exception ex) when (ex.RequiresHomogenization()) 295catch (Exception ex) when (ex.RequiresHomogenization())
KeyManagement\KeyRingBasedSpanDataProtector.cs (2)
83catch (Exception ex) when (ex.RequiresHomogenization()) 190catch (Exception ex) when (ex.RequiresHomogenization())
KeyManagement\KeyRingProvider.cs (3)
276catch (Exception ex) 385catch (Exception ex) 499catch (Exception e)
KeyManagement\XmlKeyManager.cs (4)
322catch (Exception ex) 366catch (Exception ex) 490private void WriteKeyDeserializationErrorToLog(Exception error, XElement keyElement) 587catch (Exception ex)
LoggingExtensions.cs (15)
77public static partial void KeyIsIneligibleToBeTheDefaultKeyBecauseItsMethodFailed(this ILogger logger, Guid keyId, string methodName, Exception exception); 104public static partial void ExceptionWhileProcessingRevocationElement(this ILogger logger, XElement revocationElement, Exception exception); 113public static partial void ExceptionWhileProcessingKeyElement(this ILogger logger, XElement element, Exception exception); 116public static partial void AnExceptionOccurredWhileProcessingElementDebug(this ILogger logger, XElement element, Exception exception); 122public static partial void AnErrorOccurredWhileEncryptingToX509CertificateWithThumbprint(this ILogger logger, string thumbprint, Exception exception); 128public static partial void ExceptionWhileTryingToResolveCertificateWithThumbprint(this ILogger logger, string thumbprint, Exception exception); 170public static partial void ExceptionOccurredTryingToDecryptElement(this ILogger logger, Exception exception); 182public static partial void ErrorOccurredWhileRefreshingKeyRing(this ILogger logger, Exception exception); 185public static partial void ErrorOccurredWhileReadingKeyRing(this ILogger logger, Exception exception); 203public static partial void ErrorOccurredWhileEncryptingToWindowsDPAPI(this ILogger logger, Exception exception); 209public static partial void ErrorOccurredWhileEncryptingToWindowsDPAPING(this ILogger logger, Exception exception); 236public static partial void KeyRingFailedToLoadOnStartup(this ILogger logger, Exception innerException); 257public static partial void RetryingMethodOfKeyAfterFailure(this ILogger logger, Guid keyId, string methodName, Exception exception); 263public static partial void FailedToDeleteFile(this ILogger logger, string fileName, Exception exception); 269public static partial void FailedToRemoveDataFromRegistryKeyValue(this ILogger logger, RegistryKey registryKeyName, string valueName, Exception exception);
Managed\AesGcmAuthenticatedEncryptor.cs (2)
138catch (Exception ex) when (ex.RequiresHomogenization()) 283catch (Exception ex) when (ex.RequiresHomogenization())
Managed\ManagedAuthenticatedEncryptor.cs (2)
162catch (Exception ex) when (ex.RequiresHomogenization()) 272catch (Exception ex) when (ex.RequiresHomogenization())
Repositories\FileSystemXmlRepository.cs (2)
43catch (Exception ex) 207catch (Exception ex)
Repositories\RegistryXmlRepository.cs (1)
189catch (Exception ex)
src\aspnetcore\src\DataProtection\shared\src\ExceptionExtensions.cs (1)
15public static bool RequiresHomogenization(this Exception ex)
XmlEncryption\CertificateXmlEncryptor.cs (2)
114catch (Exception ex) 134catch (Exception ex)
XmlEncryption\DpapiNGXmlDecryptor.cs (1)
80catch (Exception ex)
XmlEncryption\DpapiNGXmlEncryptor.cs (1)
73catch (Exception ex)
XmlEncryption\DpapiXmlDecryptor.cs (1)
63catch (Exception ex)
XmlEncryption\DpapiXmlEncryptor.cs (1)
71catch (Exception ex)
Microsoft.AspNetCore.DataProtection.Abstractions (5)
CryptoUtil.cs (1)
19public static Exception Fail(string message)
DataProtectionCommonExtensions.cs (2)
167catch (Exception ex) when (ex.RequiresHomogenization()) 194catch (Exception ex) when (ex.RequiresHomogenization())
Error.cs (1)
12public static CryptographicException CryptCommon_GenericError(Exception? inner = null)
src\aspnetcore\src\DataProtection\shared\src\ExceptionExtensions.cs (1)
15public static bool RequiresHomogenization(this Exception ex)
Microsoft.AspNetCore.DataProtection.Extensions (2)
src\aspnetcore\src\DataProtection\shared\src\ExceptionExtensions.cs (1)
15public static bool RequiresHomogenization(this Exception ex)
TimeLimitedDataProtector.cs (1)
97catch (Exception ex) when (ex.RequiresHomogenization())
Microsoft.AspNetCore.DeveloperCertificates.XPlat (28)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (13)
199catch (Exception e) 344catch (Exception e) 383catch (Exception e) 399catch (Exception e) 422catch (Exception e) 452catch (Exception e) 568catch (Exception e) 593catch (Exception e) 730catch (Exception e) when (Log.IsEnabled()) 753catch (Exception ex) when (Log.IsEnabled()) 781catch (Exception ex) when (Log.IsEnabled()) 886catch (Exception ex) when (Log.IsEnabled()) 1014catch (Exception ex) when (Log.IsEnabled())
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
144catch (Exception ex) 321catch (Exception ex) 441catch (Exception) 462catch (Exception ex)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (11)
226catch (Exception ex) 432catch (Exception ex) 457catch (Exception ex) 720catch (Exception ex) 748catch (Exception ex) 777catch (Exception ex) 797catch (Exception ex) 823catch (Exception ex) 957catch (Exception ex) 992catch (Exception ex) 1067catch (Exception ex)
Microsoft.AspNetCore.Diagnostics (43)
_generated\0\LoggerMessage.g.cs (11)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResponseStartedErrorPageMiddlewareCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __DisplayErrorPageExceptionCallback = 33public static partial void DisplayErrorPageException(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 47private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UnhandledExceptionCallback = 55public static partial void UnhandledException(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 63private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestAbortedExceptionCallback = 79private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResponseStartedErrorHandlerCallback = 95private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ErrorHandlerExceptionCallback = 103public static partial void ErrorHandlerException(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 117private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FailedToReadStackTraceInfoCallback = 125public static partial void FailedToReadStackTraceInfo(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception)
DeveloperExceptionPage\DeveloperExceptionPageExtensions.cs (2)
15/// Captures synchronous and asynchronous <see cref="Exception"/> instances from the pipeline and generates HTML error responses. 31/// Captures synchronous and asynchronous <see cref="Exception"/> instances from the pipeline and generates HTML error responses.
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (3)
116catch (Exception ex) 177catch (Exception ex2) 334private Task DisplayRuntimeException(HttpContext context, Exception ex)
DeveloperExceptionPage\Views\ErrorPage.Designer.cs (1)
468foreach (var ex in reflectionTypeLoadException.LoaderExceptions)
DiagnosticsLoggerExtensions.cs (3)
12public static partial void UnhandledException(this ILogger logger, Exception exception); 22public static partial void ErrorHandlerException(this ILogger logger, Exception exception); 31public static partial void DisplayErrorPageException(this ILogger logger, Exception exception);
DiagnosticsTelemetry.cs (1)
12public static void ReportUnhandledException(ILogger logger, HttpContext context, Exception ex)
ExceptionHandler\ExceptionHandlerFeature.cs (1)
15public Exception Error { get; set; } = default!;
ExceptionHandler\ExceptionHandlerMiddlewareImpl.cs (3)
85catch (Exception exception) 100catch (Exception exception) 265catch (Exception ex2)
ExceptionHandler\ExceptionHandlerOptions.cs (1)
50public Func<Exception, int>? StatusCodeSelector { get; set; }
ExceptionHandler\ExceptionHandlerSuppressDiagnosticsContext.cs (2)
19/// Gets the <see cref="System.Exception"/> that the exception handler middleware is processing. 21public required Exception Exception { get; init; }
ExceptionHandler\IExceptionHandler.cs (1)
26ValueTask<bool> TryHandleAsync(HttpContext httpContext, Exception exception, CancellationToken cancellationToken);
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetails.cs (2)
16public ExceptionDetails(Exception error, IEnumerable<StackFrameSourceCodeInfo> stackFrames) 31public Exception? Error { get; }
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (9)
29public IEnumerable<ExceptionDetails> GetDetails(Exception exception) 33foreach (var ex in exceptions) 39private IEnumerable<StackFrameSourceCodeInfo> GetStackFrames(Exception original) 55private static IEnumerable<Exception> FlattenAndReverseExceptionTree(Exception? ex) 62var typeLoadExceptions = new List<Exception>(); 63foreach (var loadException in typeLoadException.LoaderExceptions) 72var list = new List<Exception>(); 76foreach (var innerException in aggregateException.Flatten().InnerExceptions)
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\LoggerExtensions.cs (1)
11public static partial void FailedToReadStackTraceInfo(this ILogger logger, Exception exception);
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
21public static IList<StackFrameInfo> GetFrames(Exception exception, out AggregateException? error) 41List<Exception>? exceptions = null;
Microsoft.AspNetCore.Diagnostics.Abstractions (3)
ErrorContext.cs (2)
18public ErrorContext(HttpContext httpContext, Exception exception) 32public Exception Exception { get; }
IExceptionHandlerFeature.cs (1)
17Exception Error { get; }
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Log.cs (1)
12internal static partial void EnricherFailed(this ILogger logger, Exception exception, string enricher);
Logging\HttpLoggingRedactionInterceptor.cs (1)
167catch (Exception ex)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Latency\RequestLatencyTelemetryMiddlewareTests.cs (1)
264var e = await Record.ExceptionAsync(() => Task.Delay(_timeSpanToDelay, cancellationToken));
Logging\AcceptanceTests.cs (2)
695var originalException = ex.InnerException?.InnerException; 729var originalException = ex.InnerException?.InnerException;
Logging\LoggingOptionsValidationTests.cs (2)
44var ex = Record.Exception( 60var ex = Record.Exception(
Microsoft.AspNetCore.HeaderParsing (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.AspNetCore.HostFiltering (8)
_generated\0\LoggerMessage.g.cs (8)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __WildcardDetectedCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AllowedHostsCallback = 38private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __AllHostsAllowedCallback = 54private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RequestRejectedMissingHostCallback = 70private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RequestAllowedMissingHostCallback = 86private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AllowedHostMatchedCallback = 102private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __NoAllowedHostMatchedCallback = 118private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __MiddlewareConfigurationStartedCallback =
Microsoft.AspNetCore.Hosting (63)
_generated\0\LoggerMessage.g.cs (10)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ListeningOnAddressCallback = 27private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __StartupAssemblyLoadedCallback = 49private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __StartingCallback = 65private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __StartedCallback = 81private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ShutdownCallback = 97private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ServerShutdownExceptionCallback = 105public static partial void ServerShutdownException(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception ex) 113private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __StartupAssemblyLoadedCallback = 133private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FailedToReadStackTraceInfoCallback = 141public static partial void FailedToReadStackTraceInfo(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception)
GenericHost\GenericWebHostBuilder.cs (4)
105catch (Exception ex) when (webHostOptions.CaptureStartupErrors) 129var exceptions = new List<Exception>(); 153catch (Exception ex) 262catch (Exception ex) when (webHostOptions.CaptureStartupErrors)
GenericHost\GenericWebHostService.cs (2)
145catch (Exception ex) 190foreach (var exception in Options.HostingStartupExceptions.InnerExceptions)
Internal\ApplicationLifetime.cs (3)
63catch (Exception ex) 81catch (Exception ex) 98catch (Exception ex)
Internal\ConfigureBuilder.cs (1)
44catch (Exception ex)
Internal\ErrorPageBuilder.cs (1)
18Exception exception)
Internal\HostedServiceExecutor.cs (2)
27List<Exception>? exceptions = null; 35catch (Exception ex)
Internal\HostingApplication.cs (1)
100public void DisposeContext(Context context, Exception? exception)
Internal\HostingApplicationDiagnostics.cs (6)
155public void RequestEnd(HttpContext httpContext, Exception? exception, HostingApplication.Context context) 340private void RecordUnhandledExceptionDiagnostics(HttpContext httpContext, long currentTimestamp, Exception exception) 377internal UnhandledExceptionData(HttpContext httpContext, long timestamp, Exception exception) 387public Exception exception { get; } 504private void StopActivity(HttpContext httpContext, Activity activity, Exception? exception, bool hasDiagnosticListener) 521private static void SetActivityEndTags(HttpContext httpContext, Activity activity, Exception? exception)
Internal\HostingLoggerExtensions.cs (4)
11public static void ApplicationError(this ILogger logger, Exception exception) 19public static void HostingStartupAssemblyError(this ILogger logger, Exception exception) 27public static void ApplicationError(this ILogger logger, EventId eventId, string message, Exception exception) 31foreach (var ex in reflectionTypeLoadException.LoaderExceptions)
Internal\HostingMetrics.cs (1)
45public void RequestEnd(string protocol, string scheme, string method, string? route, int statusCode, bool unhandledRequest, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp, bool disableHttpRequestDurationMetric)
Internal\HostingRequestFinishedLog.cs (1)
14internal static readonly Func<object, Exception?, string> Callback = (state, exception) => ((HostingRequestFinishedLog)state).ToString();
Internal\HostingRequestStartingLog.cs (1)
15internal static readonly Func<object, Exception?, string> Callback = (state, exception) => ((HostingRequestStartingLog)state).ToString();
Internal\HostingRequestUnhandledLog.cs (1)
13internal static readonly Func<object, Exception?, string> Callback = (state, exception) => ((HostingRequestUnhandledLog)state).ToString();
Internal\WebHost.cs (5)
103catch (Exception ex) 166foreach (var exception in _hostingStartupErrors.InnerExceptions) 228catch (Exception ex) 327catch (Exception ex) 362public static partial void ServerShutdownException(ILogger logger, Exception ex);
Internal\WebHostLifetime.cs (1)
70catch (Exception) { }
src\aspnetcore\src\Shared\ErrorPage\ErrorPage.Designer.cs (1)
406foreach (var ex in reflectionTypeLoadException.LoaderExceptions)
src\aspnetcore\src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
22Exception exception)
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetails.cs (2)
16public ExceptionDetails(Exception error, IEnumerable<StackFrameSourceCodeInfo> stackFrames) 31public Exception? Error { get; }
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (9)
29public IEnumerable<ExceptionDetails> GetDetails(Exception exception) 33foreach (var ex in exceptions) 39private IEnumerable<StackFrameSourceCodeInfo> GetStackFrames(Exception original) 55private static IEnumerable<Exception> FlattenAndReverseExceptionTree(Exception? ex) 62var typeLoadExceptions = new List<Exception>(); 63foreach (var loadException in typeLoadException.LoaderExceptions) 72var list = new List<Exception>(); 76foreach (var innerException in aggregateException.Flatten().InnerExceptions)
src\aspnetcore\src\Shared\StackTrace\ExceptionDetails\LoggerExtensions.cs (1)
11public static partial void FailedToReadStackTraceInfo(this ILogger logger, Exception exception);
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (2)
21public static IList<StackFrameInfo> GetFrames(Exception exception, out AggregateException? error) 41List<Exception>? exceptions = null;
WebHostBuilder.cs (3)
226var exceptions = new List<Exception>(); 248catch (Exception ex) 339catch (Exception ex)
Microsoft.AspNetCore.Hosting.Server.Abstractions (1)
IHttpApplication.cs (1)
32void DisposeContext(TContext context, Exception? exception);
Microsoft.AspNetCore.Http (4)
_generated\0\LoggerMessage.g.cs (3)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __SameSiteCookieNotSecureCallback = 34private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __TimeoutExceptionHandledCallback = 42public static partial void TimeoutExceptionHandled(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception)
Timeouts\LoggerExtensions.cs (1)
11public static partial void TimeoutExceptionHandled(this ILogger logger, Exception exception);
Microsoft.AspNetCore.Http.Abstractions (3)
BadHttpRequestException.cs (2)
38public BadHttpRequestException(string message, int statusCode, Exception innerException) 49public BadHttpRequestException(string message, Exception innerException)
ProblemDetails\ProblemDetailsContext.cs (1)
38public Exception? Exception { get; init; }
Microsoft.AspNetCore.Http.Connections (89)
_generated\0\LoggerMessage.g.cs (68)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __DisposingConnectionCallback = 27private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __WaitingForApplicationCallback = 43private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ApplicationCompleteCallback = 59private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Http.Connections.HttpTransportType, global::System.Exception?> __WaitingForTransportCallback = 75private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Http.Connections.HttpTransportType, global::System.Exception?> __TransportCompleteCallback = 91private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Http.Connections.HttpTransportType, global::System.Exception?> __ShuttingDownTransportAndApplicationCallback = 107private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Http.Connections.HttpTransportType, global::System.Exception?> __WaitingForTransportAndApplicationCallback = 123private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Http.Connections.HttpTransportType, global::System.Exception?> __TransportAndApplicationCompleteCallback = 139private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.TimeSpan, string, global::System.Exception?> __TransportSendTimeoutCallback = 164private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ConnectionDisposedCallback = 180private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __ConnectionAlreadyActiveCallback = 196private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __PollCanceledCallback = 212private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __EstablishedConnectionCallback = 228private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResumingConnectionCallback = 244private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, global::System.Exception?> __ReceivedBytesCallback = 260private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Http.Connections.HttpTransportType, global::System.Exception?> __TransportNotSupportedCallback = 276private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Http.Connections.HttpTransportType, global::Microsoft.AspNetCore.Http.Connections.HttpTransportType, global::System.Exception?> __CannotChangeTransportCallback = 292private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __PostNotAllowedForWebSocketsCallback = 308private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NegotiationRequestCallback = 324private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Http.Connections.HttpTransportType, global::System.Exception?> __ReceivedDeleteRequestForUnsupportedTransportCallback = 340private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __TerminatingConnectionCallback = 356private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ConnectionDisposedWhileWriteInProgressCallback = 364public static partial void ConnectionDisposedWhileWriteInProgress(global::Microsoft.Extensions.Logging.ILogger logger, string transportConnectionId, global::System.Exception ex) 372private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FailedToReadHttpRequestBodyCallback = 380public static partial void FailedToReadHttpRequestBody(global::Microsoft.Extensions.Logging.ILogger logger, string transportConnectionId, global::System.Exception ex) 388private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, global::System.Exception?> __NegotiateProtocolVersionMismatchCallback = 404private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __InvalidNegotiateProtocolVersionCallback = 420private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __UserNameChangedInternalCallback = 436private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NotifyOnReconnectErrorCallback = 444public static partial void NotifyOnReconnectError(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception ex) 461private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CreatedNewConnectionCallback = 477private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RemovedConnectionCallback = 493private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FailedDisposeCallback = 501public static partial void FailedDispose(global::Microsoft.Extensions.Logging.ILogger logger, string transportConnectionId, global::System.Exception exception) 509private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ConnectionTimedOutCallback = 525private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ConnectionResetCallback = 533public static partial void ConnectionReset(global::Microsoft.Extensions.Logging.ILogger logger, string transportConnectionId, global::System.Exception exception) 541private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ScanningConnectionsFailedCallback = 549public static partial void ScanningConnectionsFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 557private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __HeartBeatStartedCallback = 573private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __HeartBeatEndedCallback = 589private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AuthenticationExpiredCallback = 614private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __LongPolling204Callback = 630private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __PollTimedOutCallback = 646private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, global::System.Exception?> __LongPollingWritingMessageCallback = 662private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __LongPollingDisconnectedCallback = 678private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __LongPollingTerminatedCallback = 686public static partial void LongPollingTerminated(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception ex) 703private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, global::System.Exception?> __SSEWritingMessageCallback = 728private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __SocketOpenedCallback = 744private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SocketClosedCallback = 760private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Net.WebSockets.WebSocketCloseStatus?, string, global::System.Exception?> __ClientClosedCallback = 776private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __WaitingForSendCallback = 792private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FailedSendingCallback = 808private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FinishedSendingCallback = 824private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __WaitingForCloseCallback = 840private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __CloseTimedOutCallback = 856private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Net.WebSockets.WebSocketMessageType, int, bool, global::System.Exception?> __MessageReceivedCallback = 872private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, global::System.Exception?> __MessageToApplicationCallback = 888private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, global::System.Exception?> __SendPayloadCallback = 904private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ErrorWritingFrameCallback = 912public static partial void ErrorWritingFrame(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception ex) 920private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ClosedPrematurelyCallback = 928public static partial void ClosedPrematurely(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception ex) 936private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ClosingWebSocketFailedCallback = 944public static partial void ClosingWebSocketFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception ex) 952private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SendErroredCallback = 960public static partial void SendErrored(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception)
Internal\HttpConnectionContext.cs (1)
397catch (Exception ex)
Internal\HttpConnectionDispatcher.cs (1)
250catch (Exception ex)
Internal\HttpConnectionDispatcher.Log.cs (3)
49public static partial void ConnectionDisposedWhileWriteInProgress(ILogger logger, string transportConnectionId, Exception ex); 52public static partial void FailedToReadHttpRequestBody(ILogger logger, string transportConnectionId, Exception ex); 69public static partial void NotifyOnReconnectError(ILogger logger, Exception ex);
Internal\HttpConnectionManager.cs (2)
131catch (Exception ex) 217catch (Exception ex)
Internal\HttpConnectionManager.Log.cs (3)
19public static partial void FailedDispose(ILogger logger, string transportConnectionId, Exception exception); 25public static partial void ConnectionReset(ILogger logger, string transportConnectionId, Exception exception); 28public static partial void ScanningConnectionsFailed(ILogger logger, Exception exception);
Internal\Transports\LongPollingServerTransport.cs (2)
105catch (Exception ex) 130public static partial void LongPollingTerminated(ILogger logger, Exception ex);
Internal\Transports\WebSocketsServerTransport.cs (5)
182catch (Exception ex) 202Exception? error = null; 248catch (Exception ex) 269catch (Exception ex) 283catch (Exception ex)
Internal\Transports\WebSocketsServerTransport.Log.cs (4)
47public static partial void ErrorWritingFrame(ILogger logger, Exception ex); 50public static partial void ClosedPrematurely(ILogger logger, Exception ex); 53public static partial void ClosingWebSocketFailed(ILogger logger, Exception ex); 56public static partial void SendErrored(ILogger logger, Exception exception);
Microsoft.AspNetCore.Http.Connections.Common (1)
NegotiateProtocol.cs (1)
267catch (Exception ex)
Microsoft.AspNetCore.Http.Extensions (58)
_generated\0\LoggerMessage.g.cs (42)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __CannotResolveConverterCallback = 19public static partial void CannotResolveConverter(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Type type, global::System.Exception? ex) 36private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __StartResolveMetadataGraphCallback = 52private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __EndResolveMetadataGraphCallback = 68private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __MetadataFoundCallback = 84private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __NoMetadataFoundCallback = 100private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, string, global::System.Exception?> __RecursiveTypeFoundCallback = 116private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __PrimitiveTypeCallback = 132private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __DictionaryTypeCallback = 148private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __CollectionTypeCallback = 164private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __ObjectTypeCallback = 180private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, string, global::System.Exception?> __ConstructorFoundCallback = 221public static readonly global::System.Func<__ConstructorParameterStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 267private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Type, global::System.Exception?> __CandidatePropertyCallback = 305public static readonly global::System.Func<__MatchingConstructorParameterFoundStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 372public static readonly global::System.Func<__CustomParameterNameMetadataStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 417private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __IgnoredPropertyCallback = 433private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __NonPublicSetterCallback = 449private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __PropertyRequiredCallback = 465private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __MetadataComputedCallback = 481private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __GenericTypeDefinitionNotSupportedCallback = 497private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __MultiplePublicConstructorsFoundCallback = 513private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __InterfacesNotSupportedCallback = 529private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __AbstractClassesNotSupportedCallback = 545private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __NoPublicConstructorFoundCallback = 561private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, string, global::System.Type, global::System.Exception?> __ConstructorParameterTypeNotSupportedCallback = 577private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, string, global::System.Type, global::System.Exception?> __PropertyTypeNotSupportedCallback = 602private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestBodyIOExceptionCallback = 618private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __InvalidJsonRequestBodyCallback = 626private static partial void InvalidJsonRequestBody(global::Microsoft.Extensions.Logging.ILogger logger, string parameterType, string parameterName, global::System.Exception exception) 634private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, global::System.Exception?> __ParameterBindingFailedCallback = 650private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, global::System.Exception?> __RequiredParameterNotProvidedCallback = 666private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ImplicitBodyNotProvidedCallback = 682private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UnexpectedJsonContentTypeCallback = 698private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UnexpectedNonFormContentTypeCallback = 714private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __InvalidFormRequestBodyCallback = 722private static partial void InvalidFormRequestBody(global::Microsoft.Extensions.Logging.ILogger logger, string parameterType, string parameterName, global::System.Exception exception) 730private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __InvalidAntiforgeryTokenCallback = 738private static partial void InvalidAntiforgeryToken(global::Microsoft.Extensions.Logging.ILogger logger, string parameterType, string parameterName, global::System.Exception exception) 746private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __FormDataMappingFailedCallback = 754private static partial void FormDataMappingFailed(global::Microsoft.Extensions.Logging.ILogger logger, string parameterType, string parameterName, global::System.Exception exception) 762private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __UnexpectedRequestWithoutBodyCallback =
HttpRequestJsonExtensions.cs (1)
423catch (Exception ex)
RequestDelegateFactory.cs (7)
2733public static void InvalidJsonRequestBody(HttpContext httpContext, string parameterTypeName, string parameterName, Exception exception, bool shouldThrow) 2745private static partial void InvalidJsonRequestBody(ILogger logger, string parameterType, string parameterName, Exception exception); 2817public static void InvalidFormRequestBody(HttpContext httpContext, string parameterTypeName, string parameterName, Exception exception, bool shouldThrow) 2829private static partial void InvalidFormRequestBody(ILogger logger, string parameterType, string parameterName, Exception exception); 2831public static void InvalidAntiforgeryToken(HttpContext httpContext, string parameterTypeName, string parameterName, Exception exception, bool shouldThrow) 2843private static partial void InvalidAntiforgeryToken(ILogger logger, string parameterType, string parameterName, Exception exception); 2857private static partial void FormDataMappingFailed(ILogger logger, string parameterType, string parameterName, Exception exception);
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\CollectionConverter.cs (1)
243catch (Exception ex)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\CompiledComplexTypeConverter.cs (1)
23catch (Exception ex)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (2)
39var exceptionVar = Expression.Variable(typeof(Exception), "mappingException"); 145var exception = Expression.Variable(typeof(Exception), "constructorException");
src\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataMapper.cs (2)
27catch (Exception ex) 46public static partial void CannotResolveConverter(ILogger logger, Type type, Exception? ex);
src\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataMappingException.cs (1)
10public FormDataMappingException(FormDataMappingError error, Exception? innerException)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataReader.cs (1)
85public void AddMappingError(Exception exception, string? attemptedValue)
Microsoft.AspNetCore.Http.Features (3)
IAntiforgeryValidationFeature.cs (2)
17/// Gets the <see cref="Exception"/> that occurred when validating the anti-forgery token. 19Exception? Error { get; }
IBadRequestExceptionFeature.cs (1)
14Exception? Error { get; }
Microsoft.AspNetCore.Http.Results (16)
_generated\0\LoggerMessage.g.cs (16)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string[], global::System.Exception?> __ChallengeResultExecutingCallback = 33private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string[], global::System.Exception?> __ForbidResultExecutingCallback = 55private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RedirectResultExecutingCallback = 80private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __RedirectToRouteResultExecutingCallback = 105private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Security.Claims.ClaimsPrincipal, global::System.Exception?> __SignInResultExecutingCallback = 130private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string[], global::System.Exception?> __SignOutResultExecutingCallback = 152private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, global::System.Exception?> __WritingResultAsStatusCodeCallback = 168private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __WritingResultAsContentCallback = 184private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __WritingResultAsJsonCallback = 200private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __WritingResultAsFileCallback = 225private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __WritingRangeToBodyCallback = 241private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Net.Http.Headers.EntityTagHeaderValue, global::System.Exception?> __IfMatchPreconditionFailedCallback = 257private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.DateTimeOffset?, global::System.DateTimeOffset?, global::System.Exception?> __IfUnmodifiedSincePreconditionFailedCallback = 273private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.DateTimeOffset?, global::System.DateTimeOffset?, global::System.Exception?> __IfRangeLastModifiedPreconditionFailedCallback = 289private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Net.Http.Headers.EntityTagHeaderValue, global::Microsoft.Net.Http.Headers.EntityTagHeaderValue, global::System.Exception?> __IfRangeETagPreconditionFailedCallback = 305private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NotEnabledForRangeProcessingCallback =
Microsoft.AspNetCore.HttpLogging (20)
_generated\0\LoggerMessage.g.cs (12)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __WriteMessagesFailedCallback = 19public static partial void WriteMessagesFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception ex) 27private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CreateDirectoryFailedCallback = 35public static partial void CreateDirectoryFailed(global::Microsoft.Extensions.Logging.ILogger logger, string path, global::System.Exception ex) 43private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __MaxFilesReachedCallback = 66private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __RequestBodyCallback = 82private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ResponseBodyCallback = 98private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __DecodeFailureCallback = 106public static partial void DecodeFailure(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception ex) 114private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UnrecognizedMediaTypeCallback = 130private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __NoMediaTypeCallback = 146private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, double, global::System.Exception?> __DurationCallback =
BufferingStream.cs (1)
219private static Exception CreateArgumentOutOfRangeException(string argumentName) { return new ArgumentOutOfRangeException(argumentName); }
FileLoggerProcessor.cs (4)
133catch (Exception ex) 250catch (Exception ex) 342public static partial void WriteMessagesFailed(ILogger logger, Exception ex); 345public static partial void CreateDirectoryFailed(ILogger logger, string path, Exception ex);
HttpLog.cs (1)
15internal static readonly Func<object, Exception?, string> Callback = (state, exception) => ((HttpLog)state).ToString();
HttpLoggingExtensions.cs (1)
30public static partial void DecodeFailure(this ILogger logger, Exception ex);
HttpLoggingMiddleware.cs (1)
104catch (Exception)
Microsoft.AspNetCore.HttpOverrides (4)
_generated\0\LoggerMessage.g.cs (2)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NoCertificateCallback = 17public static partial void NoCertificate(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception)
CertificateForwardingFeature.cs (1)
41catch (Exception e)
LoggingExtensions.cs (1)
9public static partial void NoCertificate(this ILogger logger, Exception exception);
Microsoft.AspNetCore.HttpsPolicy (7)
_generated\0\LoggerMessage.g.cs (7)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SkippingInsecureCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __SkippingExcludedHostCallback = 41private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __AddingHstsHeaderCallback = 63private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RedirectingToHttpsCallback = 79private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, global::System.Exception?> __PortLoadedFromConfigCallback = 95private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FailedToDeterminePortCallback = 111private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, global::System.Exception?> __PortFromServerCallback =
Microsoft.AspNetCore.Identity (48)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (10)
1559private static readonly Action<ILogger, Exception?> _requestBodyIOException = 1562public void InvalidJsonRequestBody(string parameterTypeName, string parameterName, Exception exception) 1576private static readonly Action<ILogger, string, string, Exception?> _invalidJsonRequestBody = 1593private static readonly Action<ILogger, string, string, string, Exception?> _parameterBindingFailed = 1610private static readonly Action<ILogger, string, string, string, Exception?> _requiredParameterNotProvided = 1627private static readonly Action<ILogger, string, Exception?> _implicitBodyNotProvided = 1644private static readonly Action<ILogger, string, Exception?> _unexpectedJsonContentType = 1661private static readonly Action<ILogger, string, Exception?> _unexpectedNonFormContentType = 1664public void InvalidFormRequestBody(string parameterTypeName, string parameterName, Exception exception) 1678private static readonly Action<ILogger, string, string, Exception?> _invalidFormRequestBody =
_generated\1\LoggerMessage.g.cs (7)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __InvalidExpirationTimeCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UserIdsNotEqualsCallback = 41private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __PurposeNotEqualsCallback = 57private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UnexpectedEndOfInputCallback = 73private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SecurityStampNotEqualsCallback = 89private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SecurityStampIsNotEmptyCallback = 105private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UnhandledExceptionCallback =
PasskeyException.cs (1)
22public PasskeyException(string message, Exception? innerException)
PasskeyExceptionExtensions.cs (5)
75public static PasskeyException InvalidAttestationObject(Exception ex) 78public static PasskeyException InvalidAttestationObjectFormat(Exception ex) 93public static PasskeyException InvalidAuthenticatorDataFormat(Exception? ex = null) 99public static PasskeyException InvalidAttestedCredentialDataFormat(Exception? ex = null) 123public static PasskeyException InvalidCredentialPublicKey(Exception ex)
PasskeyHandler.cs (2)
173catch (Exception ex) 197catch (Exception ex)
Passkeys\AttestationObject.cs (1)
58catch (Exception ex)
Passkeys\AttestedCredentialData.cs (1)
41catch (Exception ex)
Passkeys\AuthenticatorData.cs (1)
85catch (Exception ex)
Passkeys\CredentialPublicKey.cs (1)
94catch (Exception ex)
SignInManager.cs (12)
185catch (Exception ex) 297catch (Exception ex) 324catch (Exception ex) 414catch (Exception ex) 464catch (Exception ex) 655catch (Exception ex) 774catch (Exception ex) 792catch (Exception ex) 814catch (Exception ex) 896catch (Exception ex) 961catch (Exception ex) 1051catch (Exception ex)
SignInManagerMetrics.cs (7)
66internal void CheckPasswordSignIn(string userType, SignInResult? result, Exception? exception = null) 83internal void AuthenticateSignIn(string userType, string authenticationScheme, SignInResult? result, SignInType signInType, bool? isPersistent, long startTimestamp, Exception? exception = null) 104internal void SignInUserPrincipal(string userType, string authenticationScheme, bool? isPersistent, Exception? exception = null) 122internal void SignOutUserPrincipal(string userType, string authenticationScheme, Exception? exception = null) 139internal void RememberTwoFactorClient(string userType, string authenticationScheme, Exception? exception = null) 156internal void ForgetTwoFactorClient(string userType, string authenticationScheme, Exception? exception = null) 194private static void AddErrorTag(ref TagList tags, Exception? exception)
Microsoft.AspNetCore.Localization (2)
_generated\0\LoggerMessage.g.cs (2)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Collections.Generic.IList<global::Microsoft.Extensions.Primitives.StringSegment>, global::System.Exception?> __UnsupportedCulturesCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Collections.Generic.IList<global::Microsoft.Extensions.Primitives.StringSegment>, global::System.Exception?> __UnsupportedUICulturesCallback =
Microsoft.AspNetCore.Mvc.Abstractions (39)
Filters\ActionExecutedContext.cs (4)
13private Exception? _exception; 42/// Gets or sets the <see cref="System.Exception"/> caught while executing the action or action filters, if 45public virtual Exception? Exception 68/// <see cref="Exception"/>, if an <see cref="System.Exception"/> was caught and this information captured.
Filters\ExceptionContext.cs (3)
14private Exception? _exception; 28/// Gets or sets the <see cref="System.Exception"/> caught while executing the action. 30public virtual Exception Exception
Filters\IAsyncExceptionFilter.cs (2)
7/// A filter that runs asynchronously after an action has thrown an <see cref="System.Exception"/>. 12/// Called after an action has thrown an <see cref="System.Exception"/>.
Filters\IExceptionFilter.cs (2)
7/// A filter that runs after an action has thrown an <see cref="System.Exception"/>. 12/// Called after an action has thrown an <see cref="System.Exception"/>.
Filters\ResourceExecutedContext.cs (2)
13private Exception? _exception; 45public virtual Exception? Exception
Filters\ResultExecutedContext.cs (4)
13private Exception? _exception; 50/// Gets or sets the <see cref="System.Exception"/> caught while executing the result or result filters, if 53public virtual Exception? Exception 76/// <see cref="Exception"/>, if an <see cref="System.Exception"/> was caught and this information captured.
Formatters\InputFormatterException.cs (1)
33public InputFormatterException(string message, Exception innerException)
ModelBinding\ModelError.cs (6)
14/// <param name="exception">The <see cref="System.Exception"/>.</param> 15public ModelError(Exception exception) 24/// <param name="exception">The <see cref="System.Exception"/>.</param> 26public ModelError(Exception exception, string? errorMessage) 42/// Gets the <see cref="System.Exception"/> associated with this <see cref="ModelError"/> instance. 44public Exception? Exception { get; }
ModelBinding\ModelErrorCollection.cs (2)
16/// <param name="exception">The <see cref="Exception"/></param> 17public void Add(Exception exception)
ModelBinding\ModelMetadata.cs (1)
48private Exception? _recordTypeValidatorsOnPropertiesError;
ModelBinding\ModelStateDictionary.cs (10)
97/// <see cref="AddModelError(string, Exception, ModelMetadata)"/> or 98/// <see cref="TryAddModelError(string, Exception, ModelMetadata)"/>. 199/// Where <see cref="ModelMetadata"/> is available, use <see cref="AddModelError(string, Exception, ModelMetadata)"/> instead. 202/// <param name="exception">The <see cref="Exception"/> to add.</param> 207public bool TryAddModelException(string key, Exception exception) 236/// <param name="exception">The <see cref="Exception"/> to add. Some exception types will be replaced with 239public void AddModelError(string key, Exception exception, ModelMetadata metadata) 255/// <param name="exception">The <see cref="Exception"/> to add. Some exception types will be replaced with 262public bool TryAddModelError(string key, Exception exception, ModelMetadata metadata) 677private void AddModelErrorCore(string key, Exception exception)
ModelBinding\TooManyModelErrorsException.cs (1)
7/// The <see cref="Exception"/> that is thrown when too many model errors are encountered.
ModelBinding\ValueProviderException.cs (1)
26public ValueProviderException(string message, Exception innerException)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
_generated\0\LoggerMessage.g.cs (1)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, string?, global::System.Exception?> __ApiDescriptionProviderExecutingCallback =
Microsoft.AspNetCore.Mvc.Core (165)
_generated\0\LoggerMessage.g.cs (117)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __WritingRangeToBodyCallback = 27private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Net.Http.Headers.EntityTagHeaderValue, global::System.Exception?> __IfMatchPreconditionFailedCallback = 43private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.DateTimeOffset?, global::System.DateTimeOffset?, global::System.Exception?> __IfUnmodifiedSincePreconditionFailedCallback = 59private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.DateTimeOffset?, global::System.DateTimeOffset?, global::System.Exception?> __IfRangeLastModifiedPreconditionFailedCallback = 75private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Net.Http.Headers.EntityTagHeaderValue, global::Microsoft.Net.Http.Headers.EntityTagHeaderValue, global::System.Exception?> __IfRangeETagPreconditionFailedCallback = 91private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NotEnabledForRangeProcessingCallback = 116private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string[], global::System.Exception?> __ChallengeResultExecutingCallback = 138private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FeatureNotFoundCallback = 154private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FeatureIsReadOnlyCallback = 170private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestBodySizeLimitDisabledCallback = 186private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Type, global::System.Type, global::System.Exception?> __NotMostEffectiveFilterCallback = 211private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Type, global::System.Type, global::System.Exception?> __NotMostEffectiveFilterCallback = 236private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __CannotApplyRequestFormLimitsCallback = 252private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __AppliedRequestFormLimitsCallback = 268private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Type, global::System.Type, global::System.Exception?> __NotMostEffectiveFilterCallback = 293private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FeatureNotFoundCallback = 309private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FeatureIsReadOnlyCallback = 325private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __MaxRequestBodySizeSetCallback = 341private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Type, global::System.Type, global::System.Exception?> __NotMostEffectiveFilterCallback = 366private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Type, global::System.Type, global::System.Exception?> __NotMostEffectiveFilterCallback = 391private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string[], global::System.Exception?> __ForbidResultExecutingCallback = 413private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UnsupportedFormatFilterContentTypeCallback = 429private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection, global::System.Exception?> __ActionDoesNotSupportFormatFilterContentTypeCallback = 445private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CannotApplyFormatFilterContentTypeCallback = 461private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ActionDoesNotExplicitlySpecifyContentTypesCallback = 486private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __JsonInputExceptionCallback = 502private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __JsonInputSuccessCallback = 527private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AmbiguousActionsCallback = 543private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string, global::Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint, global::System.Exception?> __ConstraintMismatchCallback = 593public static readonly global::System.Func<__TransformingClientErrorStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 648private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ContentResultExecutingCallback = 673private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __ExecutingControllerFactoryCallback = 686private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __ExecutedControllerFactoryCallback = 699private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState, global::System.Exception?> __ActionMethodExecutingCallback = 712private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string?[], global::System.Exception?> __ActionMethodExecutingWithArgumentsCallback = 725private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string?, double, global::System.Exception?> __ActionMethodExecutedCallback = 747private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NoActionDescriptorsCallback = 772private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter, string?, global::System.Exception?> __FormatterSelectedCallback = 785private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NoAcceptForNegotiationCallback = 801private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality>, global::System.Exception?> __NoFormatterFromNegotiationCallback = 817private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality>, global::System.Exception?> __SelectingOutputFormatterUsingAcceptHeaderCallback = 833private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeSegmentWithQuality>, global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection, global::System.Exception?> __SelectingOutputFormatterUsingAcceptHeaderAndExplicitContentTypesCallback = 849private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SelectingOutputFormatterWithoutUsingContentTypesCallback = 865private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Mvc.Formatters.MediaTypeCollection, global::System.Exception?> __SelectingOutputFormatterUsingContentTypesCallback = 881private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SelectFirstCanWriteFormatterCallback = 897private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter>, global::System.Exception?> __RegisteredOutputFormattersCallback = 922private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __ExecutingFileResultWithNoFileNameCallback = 935private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __WritingRangeToBodyCallback = 960private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __ExecutingFileResultWithNoFileNameCallback = 973private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __WritingRangeToBodyCallback = 998private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __LocalRedirectResultExecutingCallback = 1023private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ModelStateInvalidFilterExecutingCallback = 1048private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __ObjectResultExecutingCallback = 1061private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Collections.Generic.List<string?>, global::System.Exception?> __NoFormatterCallback = 1083private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, global::System.Exception?> __ExecutingFileResultCallback = 1096private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __WritingRangeToBodyCallback = 1121private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RedirectResultExecutingCallback = 1146private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RedirectToActionResultExecutingCallback = 1171private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __RedirectToPageResultExecutingCallback = 1196private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __RedirectToRouteResultExecutingCallback = 1221private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __ActionExecutingCallback = 1234private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Reflection.MethodInfo, string, string?, global::System.Exception?> __ControllerActionExecutingCallback = 1247private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __PageExecutingCallback = 1260private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, global::System.Exception?> __AuthorizationFailureCallback = 1276private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, global::System.Exception?> __ResourceFilterShortCircuitedCallback = 1292private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __BeforeExecutingActionResultCallback = 1308private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __AfterExecutingActionResultCallback = 1324private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, double, global::System.Exception?> __PageExecutedCallback = 1337private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, double, global::System.Exception?> __ActionExecutedCallback = 1359private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __JsonResultExecutingCallback = 1381private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, global::System.Exception?> __ExecutingFileResultCallback = 1394private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __WritingRangeToBodyCallback = 1419private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter, string?, global::System.Exception?> __InputFormatterSelectedCallback = 1432private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Mvc.Formatters.IInputFormatter, string?, global::System.Exception?> __InputFormatterRejectedCallback = 1445private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __NoInputFormatterSelectedCallback = 1458private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __RemoveFromBodyAttributeCallback = 1499public static readonly global::System.Func<__AttemptingToBindCollectionUsingIndicesStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 1559public static readonly global::System.Func<__AttemptingToBindCollectionOfKeyValuePairStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 1619public static readonly global::System.Func<__NoNonIndexBasedFormatFoundForCollectionStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 1672private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Type, global::System.Exception?> __NoPublicSettableItemsCallback = 1688private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __CannotBindToComplexTypeCallback = 1713private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Type, global::System.Exception?> __NoPublicSettablePropertiesCallback = 1729private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __CannotBindToComplexTypeCallback = 1773public static readonly global::System.Func<__NoKeyValueFormatForDictionaryModelBinderStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 1826private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NoFilesFoundInRequestCallback = 1851private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __CannotCreateHeaderModelBinderCallback = 1876private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider[], global::System.Exception?> __RegisteredModelBinderProvidersCallback = 1901private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Type, global::System.Exception?> __AttemptingToBindParameterCallback = 1914private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type?, string?, global::System.Type, global::System.Exception?> __AttemptingToBindPropertyCallback = 1927private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Type, global::System.Exception?> __DoneAttemptingToBindParameterCallback = 1940private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type?, string?, global::System.Type, global::System.Exception?> __DoneAttemptingToBindPropertyCallback = 1953private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Type, global::System.Exception?> __AttemptingToValidateParameterCallback = 1966private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type?, string?, global::System.Type, global::System.Exception?> __AttemptingToValidatePropertyCallback = 1979private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Type, global::System.Exception?> __DoneAttemptingToValidateParameterCallback = 1995private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type?, string?, global::System.Type, global::System.Exception?> __DoneAttemptingToValidatePropertyCallback = 2011private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type?, string?, global::System.Exception?> __ParameterBinderRequestPredicateShortCircuitOfPropertyCallback = 2024private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __ParameterBinderRequestPredicateShortCircuitOfParameterCallback = 2044private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, global::System.Exception?> __BeforeExecutingMethodOnFilterCallback = 2060private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, global::System.Exception?> __AfterExecutingMethodOnFilterCallback = 2076private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string[]?, global::System.Exception?> __NoActionsMatchedCallback = 2089private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, global::System.Exception?> __ResultFilterShortCircuitedCallback = 2105private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, global::System.Exception?> __ExceptionFilterShortCircuitedCallback = 2121private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, global::System.Exception?> __ActionFilterShortCircuitedCallback = 2137private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Type?, string?, global::System.Type, global::System.Exception?> __FoundNoValueForPropertyInRequestCallback = 2150private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Type, global::System.Exception?> __FoundNoValueForParameterInRequestCallback = 2163private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Type, global::System.Exception?> __FoundNoValueInRequestCallback = 2176private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Type, global::System.Exception?> __CannotBindToFilesCollectionDueToUnsupportedContentTypeCallback = 2192private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Type, string, global::System.Exception?> __AttemptingToBindParameterModelCallback = 2205private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type?, string?, global::System.Type, string, global::System.Exception?> __AttemptingToBindPropertyModelCallback = 2218private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, string, global::System.Exception?> __AttemptingToBindModelCallback = 2231private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type?, string?, global::System.Type, global::System.Exception?> __DoneAttemptingToBindPropertyModelCallback = 2247private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, string, global::System.Exception?> __DoneAttemptingToBindModelCallback = 2260private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Type, global::System.Exception?> __DoneAttemptingToBindParameterModelCallback = 2273private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string[], global::System.Exception?> __LogFilterExecutionPlanCallback = 2294private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Security.Claims.ClaimsPrincipal, global::System.Exception?> __SignInResultExecutingCallback = 2319private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string[], global::System.Exception?> __SignOutResultExecutingCallback = 2341private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, global::System.Exception?> __HttpStatusCodeResultExecutingCallback =
Filters\ExceptionFilterAttribute.cs (1)
7/// An abstract filter that runs asynchronously after an action has thrown an <see cref="Exception"/>. Subclasses
Filters\MiddlewareFilterConfigurationProvider.cs (1)
108catch (Exception ex)
Formatters\SystemTextJsonInputFormatter.cs (4)
92var modelStateException = WrapExceptionForModelState(jsonException); 100catch (Exception exception) when (exception is FormatException || exception is OverflowException) 133private Exception WrapExceptionForModelState(JsonException jsonException) 151public static void JsonInputException(ILogger logger, Exception exception)
Formatters\SystemTextJsonOutputFormatter.cs (1)
123catch (Exception ex)
Infrastructure\ControllerActionInvoker.cs (3)
308catch (Exception exception) 330catch (Exception exception) 476catch (Exception ex)
Infrastructure\ResourceInvoker.cs (17)
76catch (Exception exception) 148Exception? releaseException = null; 158catch (Exception exception) 167Exception? releaseException = null; 172catch (Exception exception) 180static ValueTask HandleReleaseErrors(IDisposable? scope, Exception? releaseException) 182Exception? scopeException = null; 187catch (Exception exception) 245catch (Exception ex) 967catch (Exception exception) 989catch (Exception exception) 1021catch (Exception ex) 1039catch (Exception exception) 1069catch (Exception ex) 1107catch (Exception ex) 1369catch (Exception exception) 1392catch (Exception exception)
Infrastructure\SystemTextJsonResultExecutor.cs (1)
87catch (Exception ex)
ModelBinding\Binders\BodyModelBinder.cs (1)
183catch (Exception exception) when (exception is InputFormatterException || ShouldHandleException(formatter))
ModelBinding\Binders\ByteArrayModelBinder.cs (1)
60catch (Exception exception)
ModelBinding\Binders\ComplexObjectModelBinder.cs (3)
165catch (Exception ex) 708catch (Exception exception) 715Exception exception,
ModelBinding\Binders\ComplexTypeModelBinder.cs (2)
546catch (Exception exception) 553Exception exception,
ModelBinding\Binders\DateTimeModelBinder.cs (1)
89catch (Exception exception)
ModelBinding\Binders\DecimalModelBinder.cs (1)
92catch (Exception exception)
ModelBinding\Binders\DictionaryModelBinder.cs (1)
171catch (Exception ex)
ModelBinding\Binders\DoubleModelBinder.cs (1)
92catch (Exception exception)
ModelBinding\Binders\FloatModelBinder.cs (1)
92catch (Exception exception)
ModelBinding\Binders\SimpleTypeModelBinder.cs (1)
87catch (Exception exception)
ModelBinding\Binders\TryParseModelBinder.cs (2)
88catch (Exception exception) 98private static void AddModelError(ModelBindingContext bindingContext, Exception exception)
ModelBinding\ModelBindingHelper.cs (1)
728catch (Exception ex)
ModelBinding\UnsupportedContentTypeException.cs (1)
9/// The <see cref="Exception"/> that is added to model state when a model binder for the body of the request is
Routing\AttributeRoute.cs (1)
201catch (Exception ex)
Routing\ConventionalRouteEntry.cs (1)
42catch (Exception exception)
src\aspnetcore\src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (1)
363catch (Exception)
Microsoft.AspNetCore.Mvc.Cors (1)
_generated\0\LoggerMessage.g.cs (1)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __NotMostEffectiveFilterCallback =
Microsoft.AspNetCore.Mvc.Formatters.Xml (12)
_generated\0\LoggerMessage.g.cs (6)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __BufferingAsyncEnumerableCallback = 24private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FailedToCreateDataContractSerializerCallback = 32public static partial void FailedToCreateDataContractSerializer(global::Microsoft.Extensions.Logging.ILogger logger, string type, global::System.Exception exception) 49private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __BufferingAsyncEnumerableCallback = 62private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FailedToCreateXmlSerializerCallback = 70public static partial void FailedToCreateXmlSerializer(global::Microsoft.Extensions.Logging.ILogger logger, string type, global::System.Exception exception)
XmlDataContractSerializerInputFormatter.cs (1)
223catch (Exception)
XmlDataContractSerializerOutputFormatter.cs (2)
158catch (Exception ex) 321public static partial void FailedToCreateDataContractSerializer(ILogger logger, string type, Exception exception);
XmlSerializerInputFormatter.cs (1)
228catch (Exception)
XmlSerializerOutputFormatter.cs (2)
137catch (Exception ex) 310public static partial void FailedToCreateXmlSerializer(ILogger logger, string type, Exception exception);
Microsoft.AspNetCore.Mvc.Razor (8)
_generated\0\LoggerMessage.g.cs (8)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ViewCompilerLocatedCompiledViewCallback = 27private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ViewCompilerNoCompiledViewsFoundCallback = 43private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ViewCompilerLocatedCompiledViewForPathCallback = 59private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ViewCompilerCouldNotFindFileAtPathCallback = 84private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __ViewLookupCacheMissCallback = 100private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __ViewLookupCacheHitCallback = 125private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __TagHelperComponentInitializedCallback = 138private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __TagHelperComponentProcessedCallback =
Microsoft.AspNetCore.Mvc.RazorPages (19)
_generated\0\LoggerMessage.g.cs (14)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UnsupportedAreaPathCallback = 34private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __ExecutingPageModelFactoryCallback = 47private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __ExecutedPageModelFactoryCallback = 60private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __ExecutingPageFactoryCallback = 73private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __ExecutedPageFactoryCallback = 86private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState, global::System.Exception?> __ExecutingHandlerMethodCallback = 99private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string[], global::System.Exception?> __ExecutingHandlerMethodWithArgumentsCallback = 112private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Mvc.ModelBinding.ModelValidationState, global::System.Exception?> __ExecutingImplicitHandlerMethodCallback = 125private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __ExecutedHandlerMethodCallback = 141private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ExecutedImplicitHandlerMethodCallback = 154private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, global::System.Exception?> __BeforeExecutingMethodOnFilterCallback = 170private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, global::System.Exception?> __AfterExecutingMethodOnFilterCallback = 186private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata, global::System.Exception?> __PageFilterShortCircuitedCallback = 202private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __NotMostEffectiveFilterCallback =
Filters\PageHandlerExecutedContext.cs (4)
17private Exception? _exception; 62/// Gets or sets the <see cref="System.Exception"/> caught while executing the action or action filters, if 65public virtual Exception? Exception 88/// <see cref="Exception"/>, if an <see cref="System.Exception"/> was caught and this information captured.
Infrastructure\PageActionInvoker.cs (1)
664catch (Exception exception)
Microsoft.AspNetCore.Mvc.TagHelpers (5)
_generated\0\LoggerMessage.g.cs (2)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __DistributedFormatterDeserializationExceptionCallback = 19public static partial void DistributedFormatterDeserializationException(global::Microsoft.Extensions.Logging.ILogger logger, string key, global::System.Exception exception)
Cache\DistributedCacheTagHelperService.cs (2)
125catch (Exception e) 205public static partial void DistributedFormatterDeserializationException(ILogger logger, string key, Exception exception);
CacheTagHelper.cs (1)
135catch (Exception ex)
Microsoft.AspNetCore.Mvc.ViewFeatures (29)
_generated\0\LoggerMessage.g.cs (20)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AntiforgeryTokenInvalidCallback = 19public static partial void AntiforgeryTokenInvalid(global::Microsoft.Extensions.Logging.ILogger logger, string message, global::System.Exception exception) 36private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string[], global::System.Exception?> __ViewComponentExecutingCallback = 49private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, double, string?, global::System.Exception?> __ViewComponentExecutedCallback = 71private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __TempDataCookieNotFoundCallback = 87private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __TempDataCookieLoadSuccessCallback = 103private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __TempDataCookieLoadFailureCallback = 111public static partial void TempDataCookieLoadFailure(global::Microsoft.Extensions.Logging.ILogger logger, string cookieName, global::System.Exception exception) 128private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AntiforgeryTokenInvalidCallback = 136public static partial void AntiforgeryTokenInvalid(global::Microsoft.Extensions.Logging.ILogger logger, string message, global::System.Exception exception) 144private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Type, global::System.Exception?> __NotMostEffectiveFilterCallback = 169private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __PartialViewResultExecutingCallback = 185private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, double, global::System.Exception?> __PartialViewFoundCallback = 201private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Collections.Generic.IEnumerable<string>, global::System.Exception?> __PartialViewNotFoundCallback = 217private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, double, global::System.Exception?> __PartialViewResultExecutedCallback = 242private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __ViewComponentResultExecutingCallback = 267private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ViewResultExecutingCallback = 283private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, double, global::System.Exception?> __ViewFoundCallback = 299private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Collections.Generic.IEnumerable<string>, global::System.Exception?> __ViewNotFoundCallback = 315private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, double, global::System.Exception?> __ViewResultExecutedCallback =
CookieTempDataProvider.cs (2)
80catch (Exception ex) 148public static partial void TempDataCookieLoadFailure(ILogger logger, string cookieName, Exception exception);
DefaultHtmlGenerator.cs (1)
1389catch (Exception exception)
Filters\AntiforgeryMiddlewareAuthorizationFilter.cs (1)
35public static partial void AntiforgeryTokenInvalid(ILogger logger, string message, Exception exception);
Filters\ValidateAntiforgeryTokenAuthorizationFilter.cs (1)
57public static partial void AntiforgeryTokenInvalid(ILogger logger, string message, Exception exception);
ModelStateDictionaryExtensions.cs (4)
51/// <param name="exception">The <see cref="Exception"/> to add.</param> 55Exception exception) 72/// <param name="exception">The <see cref="Exception"/> to add.</param> 77Exception exception,
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
XmlComments\XmlComment.InheritDoc.cs (1)
47catch (Exception)
Microsoft.AspNetCore.OutputCaching (20)
_generated\0\LoggerMessage.g.cs (14)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NotModifiedIfNoneMatchStarCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Net.Http.Headers.EntityTagHeaderValue, global::System.Exception?> __NotModifiedIfNoneMatchMatchedCallback = 41private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.DateTimeOffset, global::System.DateTimeOffset, global::System.Exception?> __NotModifiedIfModifiedSinceSatisfiedCallback = 57private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NotModifiedServedCallback = 73private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __CachedResponseServedCallback = 89private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __GatewayTimeoutServedCallback = 105private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NoResponseServedCallback = 121private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResponseCachedCallback = 137private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResponseNotCachedCallback = 153private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResponseContentLengthMismatchNotCachedCallback = 169private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UnableToQueryOutputCacheCallback = 177internal static partial void UnableToQueryOutputCache(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 185private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UnableToWriteToOutputCacheCallback = 193internal static partial void UnableToWriteToOutputCache(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception)
DispatcherExtensions.cs (2)
34catch (Exception ex) 73catch (Exception ex)
LoggerExtensions.cs (2)
51internal static partial void UnableToQueryOutputCache(this ILogger logger, Exception exception); 54internal static partial void UnableToWriteToOutputCache(this ILogger logger, Exception exception);
OutputCacheEntryFormatter.cs (1)
66catch (Exception ex)
OutputCacheMiddleware.cs (1)
354catch (Exception ex)
Microsoft.AspNetCore.RateLimiting (10)
_generated\0\LoggerMessage.g.cs (3)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestRejectedLimitsExceededCallback = 27private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __WarnMissingPolicyCallback = 43private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestCanceledCallback =
DefaultCombinedLease.cs (5)
62List<Exception>? exceptions = null; 71catch (Exception ex) 73exceptions ??= new List<Exception>(); 81catch (Exception ex) 83exceptions ??= new List<Exception>(1);
RateLimitingMiddleware.cs (2)
201catch (Exception) 232catch (Exception ex)
Microsoft.AspNetCore.RequestDecompression (4)
_generated\0\LoggerMessage.g.cs (4)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NoContentEncodingCallback = 27private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __MultipleContentEncodingsSpecifiedCallback = 43private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NoDecompressionProviderCallback = 59private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __DecompressingWithCoreCallback =
Microsoft.AspNetCore.ResponseCaching (30)
_generated\0\LoggerMessage.g.cs (30)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RequestMethodNotCacheableCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestWithAuthorizationNotCacheableCallback = 41private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestWithNoCacheNotCacheableCallback = 57private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestWithPragmaNoCacheNotCacheableCallback = 73private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.TimeSpan, global::System.Exception?> __ExpirationMinFreshAddedCallback = 89private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.TimeSpan, global::System.TimeSpan, global::System.Exception?> __ExpirationSharedMaxAgeExceededCallback = 105private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.TimeSpan, global::System.TimeSpan, global::System.Exception?> __ExpirationMustRevalidateCallback = 121private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.TimeSpan, global::System.TimeSpan, global::System.TimeSpan, global::System.Exception?> __ExpirationMaxStaleSatisfiedCallback = 137private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.TimeSpan, global::System.TimeSpan, global::System.Exception?> __ExpirationMaxAgeExceededCallback = 153private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.DateTimeOffset, global::System.DateTimeOffset, global::System.Exception?> __ExpirationExpiresExceededCallback = 169private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResponseWithoutPublicNotCacheableCallback = 185private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResponseWithNoStoreNotCacheableCallback = 201private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResponseWithNoCacheNotCacheableCallback = 217private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResponseWithSetCookieNotCacheableCallback = 233private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResponseWithVaryStarNotCacheableCallback = 249private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResponseWithPrivateNotCacheableCallback = 265private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, global::System.Exception?> __ResponseWithUnsuccessfulStatusCodeNotCacheableCallback = 281private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NotModifiedIfNoneMatchStarCallback = 297private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Net.Http.Headers.EntityTagHeaderValue, global::System.Exception?> __NotModifiedIfNoneMatchMatchedCallback = 313private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.DateTimeOffset, global::System.DateTimeOffset, global::System.Exception?> __NotModifiedIfModifiedSinceSatisfiedCallback = 329private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NotModifiedServedCallback = 345private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __CachedResponseServedCallback = 361private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __GatewayTimeoutServedCallback = 377private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NoResponseServedCallback = 393private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __VaryByRulesUpdatedCallback = 409private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResponseCachedCallback = 425private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __LogResponseNotCachedCallback = 441private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ResponseContentLengthMismatchNotCachedCallback = 457private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.TimeSpan, global::System.TimeSpan, global::System.Exception?> __ExpirationInfiniteMaxStaleSatisfiedCallback = 473private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestContainsInvalidCacheSymbolsCallback =
Microsoft.AspNetCore.ResponseCompression (8)
_generated\0\LoggerMessage.g.cs (8)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NoAcceptEncodingCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NoCompressionForHttpsCallback = 41private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestAcceptsCompressionCallback = 57private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __NoCompressionDueToHeaderCallback = 73private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __NoCompressionForContentTypeCallback = 89private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ShouldCompressResponseCallback = 105private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NoCompressionProviderCallback = 121private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CompressingWithCallback =
Microsoft.AspNetCore.Rewrite (15)
_generated\0\LoggerMessage.g.cs (14)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RewriteMiddlewareRequestContinueResultsCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, int, global::System.Exception?> __RewriteMiddlewareRequestResponseCompleteCallback = 41private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RewriteMiddlewareRequestStopRulesCallback = 57private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __UrlRewriteNotMatchedRuleCallback = 73private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __UrlRewriteMatchedRuleCallback = 89private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ModRewriteNotMatchedRuleCallback = 105private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ModRewriteMatchedRuleCallback = 121private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RedirectedToHttpsCallback = 137private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RedirectedToWwwCallback = 153private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RedirectedToNonWwwCallback = 169private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RedirectedRequestCallback = 185private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RewrittenRequestCallback = 201private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AbortedRequestCallback = 217private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CustomResponseCallback =
IISUrlRewrite\InvalidUrlRewriteFormatException.cs (1)
19public InvalidUrlRewriteFormatException(XElement element, string message, Exception innerException)
Microsoft.AspNetCore.Routing (41)
_generated\0\LoggerMessage.g.cs (36)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestNotMatchedCallback = 36private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Collections.Generic.IEnumerable<string?>, object?, global::System.Exception?> __EndpointsFoundCallback = 49private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, object?, global::System.Exception?> __EndpointsNotFoundCallback = 65private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string?, string?, string?, global::System.Exception?> __TemplateSucceededCallback = 81private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string?, string, string, string, global::System.Exception?> __TemplateFailedRequiredValuesCallback = 94private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string?, global::Microsoft.AspNetCore.Routing.IRouteConstraint?, string?, string, global::System.Exception?> __TemplateFailedConstraintCallback = 107private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string?, string, global::System.Exception?> __TemplateFailedExpansionCallback = 120private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Collections.Generic.IEnumerable<string?>, string, global::System.Exception?> __LinkGenerationSucceededCallback = 133private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Collections.Generic.IEnumerable<string?>, global::System.Exception?> __LinkGenerationFailedCallback = 155private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Collections.Generic.IEnumerable<string?>, object?, global::System.Exception?> __EndpointsFoundCallback = 168private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, object?, global::System.Exception?> __EndpointsNotFoundCallback = 184private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string?, global::System.Exception?> __PathParsingSucceededCallback = 197private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Collections.Generic.IEnumerable<string?>, string?, global::System.Exception?> __PathParsingFailedCallback = 219private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Http.Endpoint, global::System.Exception?> __ExecutingEndpointCallback = 235private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Http.Endpoint, global::System.Exception?> __ExecutedEndpointCallback = 260private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __MatchSuccessCallback = 276private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __MatchFailureCallback = 292private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __MatchingSkippedCallback = 308private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Http.Endpoint, global::System.Exception?> __ExecutingEndpointCallback = 324private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Http.Endpoint, global::System.Exception?> __ExecutedEndpointCallback = 340private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Http.Endpoint, global::System.Exception?> __ShortCircuitedEndpointCallback = 356private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.Http.Endpoint, global::System.Exception?> __FallbackMatchCallback = 372private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestSizeLimitMetadataNotFoundCallback = 388private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestSizeFeatureNotFoundCallback = 404private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __RequestSizeFeatureIsReadOnlyCallback = 420private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __MaxRequestBodySizeSetCallback = 436private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __MaxRequestBodySizeDisabledCallback = 461private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CandidatesNotFoundCallback = 474private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, string, global::System.Exception?> __CandidatesFoundCallback = 487private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string, string, string, global::System.Exception?> __CandidateRejectedByComplexSegmentCallback = 500private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string, string, string?, object?, string, global::System.Exception?> __CandidateRejectedByConstraintCallback = 513private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string, string, global::System.Exception?> __CandidateNotValidCallback = 526private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string, string, global::System.Exception?> __CandidateValidCallback = 548private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string?, global::System.Exception?> __RequestMatchedRouteCallback = 573private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, object, string, global::Microsoft.AspNetCore.Routing.IRouteConstraint, global::System.Exception?> __ConstraintNotMatchedCallback = 598private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __RequestMatchedRouteCallback =
EndpointRoutingMiddleware.cs (1)
272catch (Exception ex)
ParameterPolicyActivator.cs (1)
61catch (Exception exception)
RouteBase.cs (1)
58catch (Exception exception)
RouteCreationException.cs (1)
30public RouteCreationException(string message, Exception innerException)
src\aspnetcore\src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (1)
363catch (Exception)
Microsoft.AspNetCore.Server.IISIntegration (1)
ForwardedTlsConnectionFeature.cs (1)
34catch (Exception ex)
Microsoft.AspNetCore.Server.Kestrel.Core (270)
_generated\0\LoggerMessage.g.cs (104)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __DirectoryDoesNotExistCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UnknownFileCallback = 41private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UnknownObserverCallback = 57private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CreatedDirectoryWatcherCallback = 73private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CreatedFileWatcherCallback = 89private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RemovedDirectoryWatcherCallback = 105private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RemovedFileWatcherCallback = 121private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __LastModifiedTimeErrorCallback = 129public static partial void LastModifiedTimeError(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Core.Internal.CertificatePathWatcher> logger, string path, global::System.Exception e) 137private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UntrackedFileEventCallback = 153private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ReusedObserverCallback = 169private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AddedObserverCallback = 185private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RemovedObserverCallback = 201private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, int, global::System.Exception?> __ObserverCountCallback = 217private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, int, global::System.Exception?> __FileCountCallback = 255public static readonly global::System.Func<__FlaggedObserversStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 300private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __EventWithoutFileCallback = 324private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __ConnectionBadRequestCallback = 340private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RequestProcessingErrorCallback = 348public static partial void RequestProcessingError(global::Microsoft.Extensions.Logging.ILogger logger, string connectionId, global::System.Exception ex) 356private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, double, global::System.Exception?> __RequestBodyMinimumDataRateNotSatisfiedCallback = 372private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __ResponseMinimumDataRateNotSatisfiedCallback = 388private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, string, global::System.Exception?> __PossibleInvalidHttpVersionDetectedCallback = 410private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ConnectionStartCallback = 426private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ConnectionStopCallback = 442private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ConnectionPauseCallback = 458private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ConnectionResumeCallback = 474private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ConnectionKeepAliveCallback = 490private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ConnectionDisconnectCallback = 506private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NotAllConnectionsClosedGracefullyCallback = 522private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __NotAllConnectionsAbortedCallback = 538private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ConnectionRejectedCallback = 554private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __ApplicationAbortedConnectionCallback = 570private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ConnectionAcceptedCallback = 595private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __ApplicationErrorCallback = 603public static partial void ApplicationError(global::Microsoft.Extensions.Logging.ILogger logger, string connectionId, string traceIdentifier, global::System.Exception ex) 611private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long, global::System.Exception?> __ConnectionHeadResponseBodyWriteCallback = 627private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.DateTimeOffset, global::System.TimeSpan, global::System.TimeSpan, global::System.Exception?> __HeartbeatSlowCallback = 643private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ApplicationNeverCompletedCallback = 659private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __RequestBodyStartCallback = 672private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __RequestBodyDoneCallback = 685private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __RequestBodyNotEntirelyReadCallback = 701private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __RequestBodyDrainTimedOutCallback = 717private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __InvalidResponseHeaderRemovedCallback = 733private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Net.EndPoint, global::System.Exception?> __Http2DisabledWithHttp1AndNoTlsCallback = 749private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Net.EndPoint, global::System.Exception?> __Http3DisabledWithHttp1AndNoTlsCallback = 765private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __RequestAbortedExceptionCallback = 781private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __RequestBodyDrainBodyReaderInvalidStateCallback = 789public static partial void RequestBodyDrainBodyReaderInvalidState(global::Microsoft.Extensions.Logging.ILogger logger, string connectionId, string traceIdentifier, global::System.Exception ex) 806private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __Http2ConnectionErrorCallback = 822private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __Http2StreamErrorCallback = 838private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, int, global::System.Exception?> __HPackDecodingErrorCallback = 846public static partial void HPackDecodingError(global::Microsoft.Extensions.Logging.ILogger logger, string connectionId, int streamId, global::System.Exception ex) 854private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2ErrorCode, global::System.Exception?> __Http2StreamResetAbortCallback = 870private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __Http2ConnectionClosingCallback = 886private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameType, int, int, object, global::System.Exception?> __Http2FrameReceivedCallback = 899private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, int, global::System.Exception?> __HPackEncodingErrorCallback = 907public static partial void HPackEncodingError(global::Microsoft.Extensions.Logging.ILogger logger, string connectionId, int streamId, global::System.Exception ex) 915private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __Http2MaxConcurrentStreamsReachedCallback = 931private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, int, global::System.Exception?> __Http2ConnectionClosedCallback = 947private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2.Http2FrameType, int, int, object, global::System.Exception?> __Http2FrameSendingCallback = 960private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __Http2QueueOperationsExceededCallback = 976private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, string, global::System.Exception?> __Http2UnexpectedDataRemainingCallback = 992private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __Http2ConnectionQueueProcessingCompletedCallback = 1008private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __Http2UnexpectedConnectionQueueErrorCallback = 1016public static partial void Http2UnexpectedConnectionQueueError(global::Microsoft.Extensions.Logging.ILogger logger, string connectionId, global::System.Exception ex) 1024private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, int, global::System.Exception?> __Http2TooManyEnhanceYourCalmsCallback = 1040private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, int, global::System.Exception?> __Http2FlowControlQueueOperationsExceededCallback = 1081public static readonly global::System.Func<__Http2FlowControlQueueMaximumTooLowStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 1136private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __Http3ConnectionErrorCallback = 1152private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __Http3ConnectionClosingCallback = 1168private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long?, global::System.Exception?> __Http3ConnectionClosedCallback = 1184private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __Http3StreamAbortCallback = 1197private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, long, long, global::System.Exception?> __Http3FrameReceivedCallback = 1210private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, long, long, global::System.Exception?> __Http3FrameSendingCallback = 1223private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __Http3OutboundControlStreamErrorCallback = 1231public static partial void Http3OutboundControlStreamError(global::Microsoft.Extensions.Logging.ILogger logger, string connectionId, global::System.Exception ex) 1239private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long, global::System.Exception?> __QPackDecodingErrorCallback = 1247public static partial void QPackDecodingError(global::Microsoft.Extensions.Logging.ILogger logger, string connectionId, long streamId, global::System.Exception ex) 1255private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long, global::System.Exception?> __QPackEncodingErrorCallback = 1263public static partial void QPackEncodingError(global::Microsoft.Extensions.Logging.ILogger logger, string connectionId, long streamId, global::System.Exception ex) 1271private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long, global::System.Exception?> __Http3GoAwayStreamIdCallback = 1294private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __LocatedDevelopmentCertificateCallback = 1310private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UnableToLocateDevelopmentCertificateCallback = 1326private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FailedToLocateDevelopmentCertificateFileCallback = 1342private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FailedToLoadDevelopmentCertificateCallback = 1358private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __BadDeveloperCertificateStateCallback = 1374private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __DeveloperCertificateFirstRunCallback = 1390private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FailedToLoadCertificateCallback = 1406private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FailedToLoadCertificateKeyCallback = 1422private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __DeveloperCertificateNotTrustedCallback = 1438private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __DeveloperCertificatePartiallyTrustedCallback = 1460private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __AuthenticationFailedCallback = 1468public static partial void AuthenticationFailed(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware> logger, global::System.Exception exception) 1476private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __AuthenticationTimedOutCallback = 1492private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Security.Authentication.SslProtocols, global::System.Exception?> __HttpsConnectionEstablishedCallback = 1508private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __Http2DefaultCiphersInsufficientCallback = 1524private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __LocatingCertWithPrivateKeyCallback = 1540private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __FoundCertWithPrivateKeyCallback = 1556private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FailedToFindCertificateInStoreCallback = 1564public static partial void FailedToFindCertificateInStore(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware> logger, global::System.Exception exception) 1572private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __FailedToOpenStoreCallback = 1580public static partial void FailedToOpenStore(this global::Microsoft.Extensions.Logging.ILogger<global::Microsoft.AspNetCore.Server.Kestrel.Https.Internal.HttpsConnectionMiddleware> logger, string? storeName, global::System.Exception exception) 1588private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __NoSubjectAlternativeNameCallback =
AnyIPListenOptions.cs (1)
28catch (Exception ex) when (ex is not IOException
Internal\CertificatePathWatcherLoggerExtensions.cs (1)
32public static partial void LastModifiedTimeError(this ILogger<CertificatePathWatcher> logger, string path, Exception e);
Internal\Certificates\CertificateConfigLoader.cs (7)
149catch (Exception ex) 163catch (Exception ex) 177catch (Exception ex) 193catch (Exception ex) 217catch (Exception ex) 247catch (Exception ex) 258private static InvalidOperationException CreateErrorGettingPrivateKeyException(string keyPath, Exception ex)
Internal\ConnectionDispatcher.cs (1)
71catch (Exception ex)
Internal\Http\Http1ChunkedEncodingMessageBody.cs (2)
96Exception? error = null; 155catch (Exception ex)
Internal\Http\Http1Connection.cs (1)
887catch (Exception)
Internal\Http\Http1MessageBody.cs (1)
45public override void Complete(Exception? exception)
Internal\Http\HttpProtocol.cs (16)
62protected Exception? _applicationException; 502catch (Exception ex) 530protected void PoisonBody(Exception abortReason) 622catch (Exception ex) 635catch (Exception ex) 709if (!_connectionAborted && !VerifyResponseContentLength(out var lengthException)) 730catch (Exception ex) 751catch (Exception ex) 849catch (Exception ex) 876catch (Exception ex) 932protected bool VerifyResponseContentLength([NotNullWhen(false)] out Exception? ex) 1459public void ReportApplicationError(Exception? ex) 1546public Task CompleteAsync(Exception? exception = null) 1572if (!VerifyResponseContentLength(out var lengthException)) 1593if (!VerifyResponseContentLength(out var lengthException)) 1603private static void ThrowException(Exception exception)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
244Exception? IBadRequestExceptionFeature.Error
Internal\Http\HttpRequestPipeReader.cs (3)
45public override void Complete(Exception? exception = null) 52public override ValueTask CompleteAsync(Exception? exception = null) 91public void Abort(Exception? error = null)
Internal\Http\HttpResponsePipeWriter.cs (2)
34public override void Complete(Exception? exception = null) 40public override ValueTask CompleteAsync(Exception? exception = null)
Internal\Http\IHttpResponseControl.cs (1)
18Task CompleteAsync(Exception? exception = null);
Internal\Http\MessageBody.cs (2)
61public abstract void Complete(Exception? exception); 63public virtual ValueTask CompleteAsync(Exception? exception)
Internal\Http\ZeroContentLengthMessageBody.cs (1)
32public override void Complete(Exception? ex) { }
Internal\Http2\Http2Connection.cs (4)
292Exception? error = null; 436catch (Exception ex) 1892Exception? error = null; 1925catch (Exception ex)
Internal\Http2\Http2FrameWriter.cs (3)
340catch (Exception ex) 556catch (Exception ex) 597catch (Exception ex)
Internal\Http2\Http2MessageBody.cs (2)
130public override void Complete(Exception? exception) 136public override ValueTask CompleteAsync(Exception? exception)
Internal\Http2\Http2Stream.cs (1)
613private void AbortCore(Exception abortReason)
Internal\Http3\Http3Connection.cs (5)
341Exception? error = null; 499catch (Exception ex) 565catch (Exception ex) 659private static ConnectionAbortedException CreateConnectionAbortError(Exception? error, bool clientAbort) 738catch (Exception ex)
Internal\Http3\Http3FrameWriter.cs (2)
318catch (Exception ex) 373catch (Exception ex)
Internal\Http3\Http3MessageBody.cs (2)
98public override void Complete(Exception? exception) 104public override ValueTask CompleteAsync(Exception? exception)
Internal\Http3\Http3OutputProducer.cs (1)
460catch (Exception ex)
Internal\Http3\Http3PendingStream.cs (1)
79catch (Exception)
Internal\Http3\Http3PendingStreamException.cs (1)
8public Http3PendingStreamException(string message, long streamId, Exception? innerException = null)
Internal\Http3\Http3Stream.cs (3)
168private void AbortCore(Exception exception, Http3ErrorCode errorCode) 613Exception? error = null; 702catch (Exception ex)
Internal\HttpConnection.cs (1)
122catch (Exception ex)
Internal\Infrastructure\BodyControl.cs (1)
96public void Abort(Exception error)
Internal\Infrastructure\Heartbeat.cs (1)
64catch (Exception ex)
Internal\Infrastructure\KestrelConnection.cs (3)
119catch (Exception ex) 134catch (Exception ex) 145catch (Exception ex)
Internal\Infrastructure\KestrelConnectionOfT.cs (2)
46Exception? unhandledException = null; 71catch (Exception ex)
Internal\Infrastructure\KestrelMetrics.cs (4)
100public void ConnectionStop(ConnectionMetricsContext metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp) 109private void ConnectionStopCore(ConnectionMetricsContext metricsContext, Exception? exception, List<KeyValuePair<string, object?>>? customTags, long startTimestamp, long currentTimestamp) 282public void TlsHandshakeStop(ConnectionMetricsContext metricsContext, long startTimestamp, long currentTimestamp, SslProtocols? protocol = null, Exception? exception = null) 291private void TlsHandshakeStopCore(ConnectionMetricsContext metricsContext, long startTimestamp, long currentTimestamp, SslProtocols? protocol = null, Exception? exception = null)
Internal\Infrastructure\KestrelTrace.BadRequests.cs (2)
16public void RequestProcessingError(string connectionId, Exception ex) 45public static partial void RequestProcessingError(ILogger logger, string connectionId, Exception ex);
Internal\Infrastructure\KestrelTrace.cs (2)
25public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Internal\Infrastructure\KestrelTrace.General.cs (4)
11public void ApplicationError(string connectionId, string traceIdentifier, Exception ex) 72public void RequestBodyDrainBodyReaderInvalidState(string connectionId, string traceIdentifier, Exception ex) 80public static partial void ApplicationError(ILogger logger, string connectionId, string traceIdentifier, Exception ex); 116public static partial void RequestBodyDrainBodyReaderInvalidState(ILogger logger, string connectionId, string traceIdentifier, Exception ex);
Internal\Infrastructure\KestrelTrace.Http2.cs (6)
22public void HPackDecodingError(string connectionId, int streamId, Exception ex) 45public void HPackEncodingError(string connectionId, int streamId, Exception ex) 83public void Http2UnexpectedConnectionQueueError(string connectionId, Exception ex) 112public static partial void HPackDecodingError(ILogger logger, string connectionId, int streamId, Exception ex); 124public static partial void HPackEncodingError(ILogger logger, string connectionId, int streamId, Exception ex); 145public static partial void Http2UnexpectedConnectionQueueError(ILogger logger, string connectionId, Exception ex);
Internal\Infrastructure\KestrelTrace.Http3.cs (6)
52public void Http3OutboundControlStreamError(string connectionId, Exception ex) 57public void QPackDecodingError(string connectionId, long streamId, Exception ex) 62public void QPackEncodingError(string connectionId, long streamId, Exception ex) 93public static partial void Http3OutboundControlStreamError(ILogger logger, string connectionId, Exception ex); 96public static partial void QPackDecodingError(ILogger logger, string connectionId, long streamId, Exception ex); 99public static partial void QPackEncodingError(ILogger logger, string connectionId, long streamId, Exception ex);
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (6)
22private static readonly Exception _successfullyCompletedSentinel = new UnreachableException(); 51private Exception? _completeException; 177catch (Exception ex) 193public override void Complete(Exception? exception = null) 288private void CompleteFlushUnsynchronized(FlushResult flushResult, Exception? flushEx) 405private static Exception CreateArgumentOutOfRangeException(string argumentName) { return new ArgumentOutOfRangeException(argumentName); }
Internal\Infrastructure\PipeWriterHelpers\TimingPipeFlusher.cs (1)
97catch (Exception ex)
Internal\Infrastructure\StatusCheckPipeWriter.cs (2)
52public override void Complete(Exception? exception = null) 82public override ValueTask CompleteAsync(Exception? exception = null)
Internal\Infrastructure\ThrowingPipeWriter.cs (1)
21public override void Complete(Exception? exception = null) => throw new InvalidOperationException(_message);
Internal\Infrastructure\WrappingPipeWriter.cs (2)
36public override void Complete(Exception? exception = null) 61public override ValueTask CompleteAsync(Exception? exception = null)
Internal\KestrelServerImpl.cs (3)
265catch (Exception ex) 394catch (Exception ex) 404catch (Exception ex)
Internal\TlsConnectionFeature.cs (1)
109public Exception? Exception { get; set; }
LocalhostListenOptions.cs (3)
40var exceptions = new List<Exception>(); 47catch (Exception ex) when (!(ex is IOException or OperationCanceledException)) 61catch (Exception ex) when (!(ex is IOException or OperationCanceledException))
Middleware\HttpsConnectionMiddleware.cs (6)
269static void RecordHandshakeFailed(KestrelMetrics metrics, long startTimestamp, long currentTimestamp, ConnectionMetricsContext metricsContext, IConnectionMetricsTagsFeature? metricsTagsFeature, Exception ex) 295catch (Exception exception) when (exception is CryptographicException || exception is SecurityException) 614public static partial void AuthenticationFailed(this ILogger<HttpsConnectionMiddleware> logger, Exception exception); 641public static partial void FailedToFindCertificateInStore(this ILogger<HttpsConnectionMiddleware> logger, Exception exception); 644public static partial void FailedToOpenStore(this ILogger<HttpsConnectionMiddleware> logger, string? storeName, Exception exception); 649public static void FailedToOpenStore(this ILogger<HttpsConnectionMiddleware> logger, StoreLocation storeLocation, Exception exception)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DefaultMemoryPoolFactory.cs (1)
40catch (Exception ex)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (3)
24private readonly List<Exception> _blockAccessExceptions; 43_blockAccessExceptions = new List<Exception>(); 93internal void ReportException(Exception exception)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (6)
62catch (Exception exception) 93catch (Exception exception) 119catch (Exception exception) 157catch (Exception exception) 183catch (Exception exception) 211catch (Exception exception)
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
167catch (Exception ex)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (13)
199catch (Exception e) 344catch (Exception e) 383catch (Exception e) 399catch (Exception e) 422catch (Exception e) 452catch (Exception e) 568catch (Exception e) 593catch (Exception e) 730catch (Exception e) when (Log.IsEnabled()) 753catch (Exception ex) when (Log.IsEnabled()) 781catch (Exception ex) when (Log.IsEnabled()) 886catch (Exception ex) when (Log.IsEnabled()) 1014catch (Exception ex) when (Log.IsEnabled())
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
144catch (Exception ex) 321catch (Exception ex) 441catch (Exception) 462catch (Exception ex)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (11)
226catch (Exception ex) 432catch (Exception ex) 457catch (Exception ex) 720catch (Exception ex) 748catch (Exception ex) 777catch (Exception ex) 797catch (Exception ex) 823catch (Exception ex) 957catch (Exception ex) 992catch (Exception ex) 1067catch (Exception ex)
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)
17public HPackEncodingException(string message, Exception 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)
16public QPackEncodingException(string message, Exception innerException)
src\aspnetcore\src\Shared\ServerInfrastructure\ManualResetValueTaskSource.cs (1)
19public void SetException(Exception error) => _core.SetException(error);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (77)
_generated\0\LoggerMessage.g.cs (29)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AcceptedConnectionCoreCallback = 22private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Internal.QuicLog.StreamType, global::System.Exception?> __AcceptedStreamCoreCallback = 35private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Internal.QuicLog.StreamType, global::System.Exception?> __ConnectedStreamCoreCallback = 48private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ConnectionErrorCoreCallback = 56private static partial void ConnectionErrorCore(global::Microsoft.Extensions.Logging.ILogger logger, string connectionId, global::System.Exception ex) 61private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long, global::System.Exception?> __ConnectionAbortedCoreCallback = 69private static partial void ConnectionAbortedCore(global::Microsoft.Extensions.Logging.ILogger logger, string connectionId, long errorCode, global::System.Exception ex) 74private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long, string, global::System.Exception?> __ConnectionAbortCoreCallback = 87private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __StreamErrorCoreCallback = 95private static partial void StreamErrorCore(global::Microsoft.Extensions.Logging.ILogger logger, string connectionId, global::System.Exception ex) 100private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __StreamPauseCoreCallback = 113private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __StreamResumeCoreCallback = 126private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __StreamShutdownWriteCoreCallback = 139private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long, global::System.Exception?> __StreamAbortedReadCoreCallback = 152private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long, global::System.Exception?> __StreamAbortedWriteCoreCallback = 165private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long, string, global::System.Exception?> __StreamAbortCoreCallback = 178private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long, string, global::System.Exception?> __StreamAbortReadCoreCallback = 191private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, long, string, global::System.Exception?> __StreamAbortWriteCoreCallback = 204private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __StreamPooledCoreCallback = 217private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __StreamReusedCoreCallback = 230private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ConnectionListenerCertificateNotSpecifiedCallback = 246private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ConnectionListenerApplicationProtocolsNotSpecifiedCallback = 262private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Net.IPEndPoint, global::System.Exception?> __ConnectionListenerStartingCallback = 278private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ConnectionListenerAbortedCallback = 286public static partial void ConnectionListenerAborted(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 294private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __StreamTimeoutReadCoreCallback = 307private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __StreamTimeoutWriteCoreCallback = 320private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ConnectionListenerAcceptConnectionFailedCallback = 328public static partial void ConnectionListenerAcceptConnectionFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception)
Internal\QuicConnectionContext.cs (3)
65catch (Exception ex) 187catch (Exception ex) 204catch (Exception ex)
Internal\QuicConnectionListener.cs (1)
188catch (Exception ex)
Internal\QuicLog.cs (8)
47private static partial void ConnectionErrorCore(ILogger logger, string connectionId, Exception ex); 49public static void ConnectionError(ILogger logger, BaseConnectionContext connection, Exception ex) 58private static partial void ConnectionAbortedCore(ILogger logger, string connectionId, long errorCode, Exception ex); 60public static void ConnectionAborted(ILogger logger, BaseConnectionContext connection, long errorCode, Exception ex) 80private static partial void StreamErrorCore(ILogger logger, string connectionId, Exception ex); 82public static void StreamError(ILogger logger, QuicStreamContext streamContext, Exception ex) 211public static partial void ConnectionListenerAborted(ILogger logger, Exception exception); 236public static partial void ConnectionListenerAcceptConnectionFailed(ILogger logger, Exception exception);
Internal\QuicStreamContext.cs (16)
36private volatile Exception? _shutdownReadReason; 37private volatile Exception? _shutdownWriteReason; 38private volatile Exception? _shutdownReason; 39private volatile Exception? _writeAbortException; 175catch (Exception ex) 190catch (Exception ex) 206Exception? error = null; 297catch (Exception ex) 316private Exception? ResolveCompleteReceiveException(Exception? error) 358catch (Exception ex) 369Exception? shutdownReason = null; 370Exception? unexpectedError = null; 460catch (Exception ex) 520private void ShutdownWrite(Exception? shutdownReason) 538catch (Exception ex)
src\aspnetcore\src\Servers\Kestrel\shared\CompletionPipeReader.cs (3)
15public Exception? CompleteException { get; private set; } 33public override ValueTask CompleteAsync(Exception? exception = null) 40public override void Complete(Exception? exception = null)
src\aspnetcore\src\Servers\Kestrel\shared\CompletionPipeWriter.cs (3)
15public Exception? CompleteException { get; private set; } 33public override void Complete(Exception? exception = null) 40public override ValueTask CompleteAsync(Exception? exception = null)
src\aspnetcore\src\Servers\Kestrel\shared\ConnectionCompletion.cs (3)
34catch (Exception ex) 49catch (Exception ex) 60catch (Exception ex)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DefaultMemoryPoolFactory.cs (1)
40catch (Exception ex)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (3)
24private readonly List<Exception> _blockAccessExceptions; 43_blockAccessExceptions = new List<Exception>(); 93internal void ReportException(Exception exception)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (6)
62catch (Exception exception) 93catch (Exception exception) 119catch (Exception exception) 157catch (Exception exception) 183catch (Exception exception) 211catch (Exception exception)
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
167catch (Exception ex)
Microsoft.AspNetCore.Session (23)
_generated\0\LoggerMessage.g.cs (16)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ErrorClosingTheSessionCallback = 17public static partial void ErrorClosingTheSession(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __AccessingExpiredSessionCallback = 41private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __SessionStartedCallback = 54private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, int, global::System.Exception?> __SessionLoadedCallback = 67private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, int, global::System.Exception?> __SessionStoredCallback = 83private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __SessionCacheReadExceptionCallback = 91public static partial void SessionCacheReadException(this global::Microsoft.Extensions.Logging.ILogger logger, string sessionKey, global::System.Exception exception) 96private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ErrorUnprotectingSessionCookieCallback = 104public static partial void ErrorUnprotectingSessionCookie(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 112private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SessionLoadingTimeoutCallback = 128private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SessionCommitTimeoutCallback = 144private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SessionCommitCanceledCallback = 160private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SessionRefreshTimeoutCallback = 176private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SessionRefreshCanceledCallback = 192private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SessionNotAvailableCallback =
CookieProtection.cs (1)
49catch (Exception ex)
DistributedSession.cs (2)
195catch (Exception exception) 267catch (Exception exception)
LoggingExtensions.cs (3)
9public static partial void ErrorClosingTheSession(this ILogger logger, Exception exception); 24public static partial void SessionCacheReadException(this ILogger logger, string sessionKey, Exception exception); 27public static partial void ErrorUnprotectingSessionCookie(this ILogger logger, Exception exception);
SessionMiddleware.cs (1)
106catch (Exception ex)
Microsoft.AspNetCore.SignalR.Common (6)
HubException.cs (2)
41public HubException(string? message, Exception? innerException) : base(message, innerException) 51/// <exception cref="SerializationException">The class name is <c>null</c> or <see cref="Exception.HResult"/> is zero (0).</exception>
Protocol\HubMethodInvocationMessage.cs (4)
106catch (Exception ex) 115catch (Exception ex) 161catch (Exception ex) 170catch (Exception ex)
Microsoft.AspNetCore.SignalR.Core (108)
_generated\0\LoggerMessage.g.cs (55)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __HandshakeCompleteCallback = 27private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __HandshakeCanceledCallback = 43private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __SentPingCallback = 59private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __TransportBufferFullCallback = 75private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __HandshakeFailedCallback = 83public static partial void HandshakeFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception? exception) 91private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __FailedWritingMessageCallback = 99public static partial void FailedWritingMessage(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 129public static readonly global::System.Func<__ProtocolVersionFailedStruct, global::System.Exception?, string> Format = (state, ex) => state.ToString(); 174private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __AbortFailedCallback = 182public static partial void AbortFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 190private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.TimeSpan, global::System.Exception?> __ClientTimeoutCallback = 206private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, global::System.Exception?> __HandshakeSizeLimitExceededCallback = 222private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, int, global::System.Exception?> __DisablingReconnectCallback = 245private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __ErrorDispatchingHubEventCallback = 253public static partial void ErrorDispatchingHubEvent(global::Microsoft.Extensions.Logging.ILogger logger, string hubMethod, global::System.Exception exception) 261private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ErrorProcessingRequestCallback = 269public static partial void ErrorProcessingRequest(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 277private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __AbortFailedCallback = 285public static partial void AbortFailed(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 293private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ErrorSendingCloseCallback = 301public static partial void ErrorSendingClose(global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception exception) 309private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ConnectedStartingCallback = 325private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __ConnectedEndingCallback = 347private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.SignalR.Protocol.InvocationMessage, global::System.Exception?> __ReceivedHubInvocationCallback = 363private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UnsupportedMessageReceivedCallback = 379private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UnknownHubMethodCallback = 395private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __HubMethodNotAuthorizedCallback = 411private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __StreamingResultCallback = 424private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string?, global::System.Exception?> __SendingResultCallback = 437private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FailedInvokingHubMethodCallback = 445public static partial void FailedInvokingHubMethod(global::Microsoft.Extensions.Logging.ILogger logger, string hubMethod, global::System.Exception exception) 453private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __HubMethodBoundCallback = 469private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CancelStreamCallback = 485private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UnexpectedCancelCallback = 501private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.SignalR.Protocol.StreamInvocationMessage, global::System.Exception?> __ReceivedStreamHubInvocationCallback = 517private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.SignalR.Protocol.HubMethodInvocationMessage, global::System.Exception?> __StreamingMethodCalledWithInvokeCallback = 533private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.AspNetCore.SignalR.Protocol.HubMethodInvocationMessage, global::System.Exception?> __NonStreamingMethodCalledWithStreamCallback = 549private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __InvalidReturnValueFromStreamingMethodCallback = 565private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __ReceivedStreamItemCallback = 581private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __StartingParameterStreamCallback = 597private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, global::System.Exception?> __CompletingStreamCallback = 613private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string?, global::System.Exception?> __ClosingStreamWithBindingErrorCallback = 629private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __UnexpectedStreamItemCallback = 645private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __InvalidHubParametersCallback = 653public static partial void InvalidHubParameters(global::Microsoft.Extensions.Logging.ILogger logger, string hubMethod, global::System.Exception exception) 661private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __InvocationIdInUseCallback = 677private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __UnexpectedCompletionCallback = 693private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __FailedStreamingCallback = 701public static partial void FailedStreaming(global::Microsoft.Extensions.Logging.ILogger logger, string invocationId, string hubMethod, global::System.Exception exception) 709private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string?, global::System.Exception?> __DroppingMessageCallback = 725private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, global::System.Exception?> __ReceivedAckMessageCallback = 741private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, long, global::System.Exception?> __ReceivedSequenceMessageCallback = 765private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Type, global::System.Exception?> __RegisteredSignalRProtocolCallback = 781private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FoundImplementationForProtocolCallback =
Hub.cs (1)
84public virtual Task OnDisconnectedAsync(Exception? exception)
HubConnectionContext.cs (9)
114internal Exception? CloseException { get; private set; } 303catch (Exception ex) 341catch (Exception ex) 361catch (Exception ex) when (ex is not OperationCanceledException || !cancellationToken.IsCancellationRequested) 392catch (Exception ex) when (ex is not OperationCanceledException || !cancellationToken.IsCancellationRequested) 421catch (Exception ex) when (ex is not OperationCanceledException || !cancellationToken.IsCancellationRequested) 459catch (Exception ex) 676catch (Exception ex) 772catch (Exception ex)
HubConnectionContext.Log.cs (3)
25public static partial void HandshakeFailed(ILogger logger, Exception? exception); 28public static partial void FailedWritingMessage(ILogger logger, Exception exception); 34public static partial void AbortFailed(ILogger logger, Exception exception);
HubConnectionHandler.cs (7)
167catch (Exception ex) 187catch (Exception ex) 200private async Task HubOnDisconnectedAsync(HubConnectionContext connection, Exception? exception) 202var disconnectException = exception; 232catch (Exception ex) 239private async Task SendCloseAsync(HubConnectionContext connection, Exception? exception, bool allowReconnect) 257catch (Exception ex)
HubConnectionHandlerLog.cs (4)
11public static partial void ErrorDispatchingHubEvent(ILogger logger, string hubMethod, Exception exception); 14public static partial void ErrorProcessingRequest(ILogger logger, Exception exception); 17public static partial void AbortFailed(ILogger logger, Exception exception); 20public static partial void ErrorSendingClose(ILogger logger, Exception exception);
HubLifetimeContext.cs (1)
7/// Context for the hub lifetime events <see cref="Hub.OnConnectedAsync"/> and <see cref="Hub.OnDisconnectedAsync(Exception)"/>.
IHubFilter.cs (3)
28/// Allows handling of the <see cref="Hub.OnDisconnectedAsync(Exception)"/> method. 34Task OnDisconnectedAsync(HubLifetimeContext context, Exception? exception, Func<HubLifetimeContext, Exception?, Task> next) => next(context, exception);
Internal\DefaultHubDispatcher.cs (10)
33private readonly Func<HubLifetimeContext, Exception?, Task>? _onDisconnectedMiddleware; 107catch (Exception ex) 119public override async Task OnDisconnectedAsync(HubConnectionContext connection, Exception? exception) 142catch (Exception ex) 415catch (Exception ex) 470catch (Exception ex) 541catch (Exception ex) 571var exception = ex.InnerException ?? ex; 577catch (Exception ex) 897private static void SetActivityError(Activity? activity, Exception ex)
Internal\DefaultHubDispatcherLog.cs (3)
51public static partial void FailedInvokingHubMethod(ILogger logger, string hubMethod, Exception exception); 101public static partial void InvalidHubParameters(ILogger logger, string hubMethod, Exception exception); 110public static partial void FailedStreaming(ILogger logger, string invocationId, string hubMethod, Exception exception);
Internal\ErrorMessageHelper.cs (1)
8internal static string BuildErrorMessage(string message, Exception exception, bool includeExceptionDetails)
Internal\HubDispatcher.cs (1)
12public abstract Task OnDisconnectedAsync(HubConnectionContext connection, Exception? exception);
Internal\HubFilterFactory.cs (2)
56public async Task OnDisconnectedAsync(HubLifetimeContext context, Exception? exception, Func<HubLifetimeContext, Exception?, Task> next)
src\aspnetcore\src\SignalR\common\Shared\ClientResultsManager.cs (4)
161public new void SetException(Exception exception) 170public static new void SetException(IEnumerable<Exception> exceptions) => Debug.Assert(false); 181public static new bool TrySetException(IEnumerable<Exception> exceptions) 186public static new bool TrySetException(Exception exception)
src\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (1)
298catch (Exception ex)
StreamTracker.cs (3)
85public void CompleteAll(Exception ex) 103void TryComplete(Exception? ex); 137public void TryComplete(Exception? ex)
Microsoft.AspNetCore.SignalR.Protocols.Json (8)
Protocol\JsonHubProtocol.cs (7)
248catch (Exception ex) 281catch (Exception ex) 312catch (Exception ex) 367catch (Exception ex) 393catch (Exception ex) 445catch (Exception ex) 851catch (Exception ex)
src\aspnetcore\src\SignalR\common\Shared\TryGetReturnType.cs (1)
19catch (Exception)
Microsoft.AspNetCore.StaticAssets (18)
_generated\0\LoggerMessage.g.cs (17)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __StaticAssetNotFoundInManifestCallback = 34private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RequestMethodNotSupportedCallback = 50private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __FileServedCoreCallback = 66private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __EndpointMatchedCallback = 82private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __PathMismatchCallback = 98private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FileTypeNotSupportedCallback = 114private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FileNotFoundCallback = 130private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FileNotModifiedCallback = 146private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __PreconditionFailedCallback = 162private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, string, global::System.Exception?> __HandledCallback = 178private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RangeNotSatisfiableCallback = 194private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Extensions.Primitives.StringValues, string, global::System.Exception?> __SendingFileRangeCallback = 210private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Extensions.Primitives.StringValues, string, global::System.Exception?> __CopyingFileRangeCallback = 226private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __WriteCancelledCallback = 234public static partial void WriteCancelled(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception ex) 242private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __WebRootPathNotFoundCallback = 258private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __EnsureStaticWebAssetsEnabledCallback =
LoggerExtensions.cs (1)
57public static partial void WriteCancelled(this ILogger logger, Exception ex);
Microsoft.AspNetCore.StaticFiles (16)
_generated\0\LoggerMessage.g.cs (15)
9private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RequestMethodNotSupportedCallback = 25private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Exception?> __FileServedCoreCallback = 41private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __EndpointMatchedCallback = 57private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __PathMismatchCallback = 73private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FileTypeNotSupportedCallback = 89private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FileNotFoundCallback = 105private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __FileNotModifiedCallback = 121private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __PreconditionFailedCallback = 137private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, int, string, global::System.Exception?> __HandledCallback = 153private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __RangeNotSatisfiableCallback = 169private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Extensions.Primitives.StringValues, string, global::System.Exception?> __SendingFileRangeCallback = 185private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Extensions.Primitives.StringValues, string, global::System.Exception?> __CopyingFileRangeCallback = 201private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __WriteCancelledCallback = 209public static partial void WriteCancelled(this global::Microsoft.Extensions.Logging.ILogger logger, global::System.Exception ex) 217private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __WebRootPathNotFoundCallback =
LoggerExtensions.cs (1)
60public static partial void WriteCancelled(this ILogger logger, Exception ex);
Microsoft.AspNetCore.Testing (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.AspNetCore.Testing.Tests (8)
FakesExtensionsTests.cs (7)
109var exception = Record.Exception(() => hostMock.Object.CreateClient(null, _ => false)); 120var exception = Record.Exception(() => hostMock.Object.CreateClient(null, _ => false)); 129var exception = Record.Exception(() => ((IHost)null!).CreateClient(new TestHandler(), _ => true)); 140var exception = Record.Exception(() => hostMock.Object.CreateClient(new TestHandler(), _ => true)); 187var exception = Record.Exception(() => hostMock.Object.GetListenUris()); 202var exception = Record.Exception(() => hostMock.Object.GetListenUris()); 210var exception = Record.Exception(() => ((IHost)null!).GetListenUris());
FakeStartupTests.cs (1)
17var exception = Record.Exception(() =>
Microsoft.AspNetCore.Watch.BrowserRefresh (5)
src\sdk\src\Dotnet.Watch\Web.Middleware\BrowserRefreshMiddleware.cs (5)
221private static readonly Action<ILogger, Exception?> _setupResponseForBrowserRefresh = LoggerMessage.Define( 226private static readonly Action<ILogger, Exception?> _browserConfiguredForRefreshes = LoggerMessage.Define( 231private static readonly Action<ILogger, Exception?> _failedToConfigureForRefreshes = LoggerMessage.Define( 237private static readonly Action<ILogger, StringValues, Exception?> _responseCompressionDetected = LoggerMessage.Define<StringValues>( 244private static readonly Action<ILogger, int, string?, Exception?> _scriptInjectionSkipped = LoggerMessage.Define<int, string?>(
Microsoft.AspNetCore.WebSockets (2)
_generated\0\LoggerMessage.g.cs (2)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __CompressionAcceptedCallback = 27private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __CompressionNotAcceptedCallback =
Microsoft.Build (328)
BackEnd\BuildManager\BuildManager.cs (20)
715catch (Exception) 1110catch (Exception e) 1233private void RecordCrashTelemetry(Exception exception, bool isUnhandled) 1372catch (Exception) 1590catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1626catch (Exception e) 1697catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1708catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1820catch (Exception ex) 1840catch (Exception e) 1909private void CompleteSubmissionWithException(BuildSubmission submission, BuildRequestConfiguration configuration, Exception exception) 1930private void HandleSubmissionException(BuildSubmissionBase submission, Exception ex) 1944foreach (Exception innerException in ae.InnerExceptions) 2066catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 2098catch (Exception ex) when (IsInvalidProjectOrIORelatedException(ex)) 2137private bool IsInvalidProjectOrIORelatedException(Exception e) 2577catch (Exception e) 3056private void OnThreadException(Exception e) 3102private void OnLoggingThreadException(Exception e) 3263catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\BuildManager\BuildSubmission.cs (4)
90protected internal abstract TResultData CreateFailedResult(Exception exception); 92internal override BuildResultBase CompleteResultsWithException(Exception exception) 95private TResultData CompleteResults(Exception exception) 214protected internal override BuildResult CreateFailedResult(Exception exception)
BackEnd\BuildManager\BuildSubmissionBase.cs (1)
89internal abstract BuildResultBase CompleteResultsWithException(Exception exception);
BackEnd\BuildManager\CacheSerialization.cs (3)
93catch (Exception e) 101public static (IConfigCache ConfigCache, IResultsCache ResultsCache, Exception exception) DeserializeCaches(string inputCacheFile) 121catch (Exception e)
BackEnd\BuildManager\EnvironmentVariableValidator.cs (1)
48catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
BackEnd\Client\MSBuildClient.cs (5)
358catch (Exception ex) 381catch (Exception ex) 420catch (Exception ex) 481catch (Exception ex) 642catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Client\MSBuildClientPacketPump.cs (2)
38public Exception? PacketPumpException { get; set; } 326catch (Exception ex)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (7)
259var deactivateExceptions = new List<Exception>(_requests.Count); 274catch (Exception e) 293catch (Exception e) 337catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 725private void RaiseEngineException(Exception e) 1450catch (Exception e) 1504catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
BackEnd\Components\BuildRequestEngine\IBuildRequestEngine.cs (1)
54internal delegate void EngineExceptionDelegate(Exception e);
BackEnd\Components\Communications\NodeEndpointInProc.cs (1)
459catch (Exception e)
BackEnd\Components\Communications\NodeFailedToLaunchException.cs (2)
33internal NodeFailedToLaunchException(Exception innerException) 37public NodeFailedToLaunchException(string message, Exception inner)
BackEnd\Components\Communications\NodeLauncher.cs (1)
141catch (Exception ex)
BackEnd\Components\Communications\NodeProviderInProc.cs (2)
392Exception e; 430private void InProcNodeShutdown(NodeEngineShutdownReason reason, Exception e)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (6)
284ConcurrentQueue<Exception> exceptions = new(); 303catch (Exception ex) 615catch (Exception ex) 733catch (Exception ex) 848catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1354catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
665catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
58internal void LogFatalTaskError(Exception exception, BuildEventFileInfo file, string taskName)
BackEnd\Components\Logging\EventSourceSink.cs (4)
233/// <exception cref="Exception">ExceptionHandling.IsCriticalException exceptions will not be wrapped</exception> 315catch (Exception exception) when (exception is not InternalErrorException) 402/// <exception cref="Exception">ExceptionHandling.IsCriticalException exceptions will not be wrapped</exception> 428catch (Exception exception)
BackEnd\Components\Logging\ILoggingService.cs (5)
24internal delegate void LoggingExceptionDelegate(Exception e); 442void LogFatalBuildError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file); 451void LogFatalTaskError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string taskName); 461void LogFatalError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs); 472void LogTaskWarningFromException(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string taskName);
BackEnd\Components\Logging\LoggingContext.cs (2)
244internal void LogFatalError(Exception exception, BuildEventFileInfo file, string messageResourceName, params object?[]? messageArgs) 299internal void LogFatalBuildError(Exception exception, BuildEventFileInfo file)
BackEnd\Components\Logging\LoggingService.cs (5)
1513catch (Exception e) when (!ExceptionHandling.IsCriticalException(e) && e is not LoggerException) 1562catch (Exception e) 1826/// <exception cref="Exception">Any exception which is a ExceptionHandling.IsCriticalException will not be wrapped</exception> 1853catch (Exception e) when (!ExceptionHandling.IsCriticalException(e) && e is not LoggerException) 1934private void RaiseLoggingExceptionEvent(Exception ex)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (4)
195public void LogFatalBuildError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file) 209public void LogFatalTaskError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string taskName) 226public void LogFatalError(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string messageResourceName, params object[] messageArgs) 260public void LogTaskWarningFromException(BuildEventContext buildEventContext, Exception exception, BuildEventFileInfo file, string taskName)
BackEnd\Components\Logging\TaskLoggingContext.cs (1)
148internal void LogTaskWarningFromException(Exception exception, BuildEventFileInfo file, string taskName)
BackEnd\Components\ProjectCache\CacheResult.cs (3)
54internal Exception? Exception { get; } 71private CacheResult(Exception exception) 100internal static CacheResult IndicateException(Exception e)
BackEnd\Components\ProjectCache\Experimental\CacheResult.cs (3)
56internal Exception? Exception { get; } 73private CacheResult(Exception exception) 102internal static CacheResult IndicateException(Exception e)
BackEnd\Components\ProjectCache\Experimental\ProjectCacheException.cs (3)
26Exception innerException, 38internal ProjectCacheException(string message, Exception inner) 55Exception innerException,
BackEnd\Components\ProjectCache\ProjectCacheException.cs (3)
25Exception innerException, 37internal ProjectCacheException(string message, Exception inner) 54Exception innerException,
BackEnd\Components\ProjectCache\ProjectCacheService.cs (8)
237catch (Exception e) 349catch (Exception e) 522catch (Exception e) 547catch (Exception ex) 651catch (Exception e) when (e is not ProjectCacheException) 916catch (Exception e) when (e is not ProjectCacheException) 1000catch (Exception e) when (e is not ProjectCacheException && e is not Experimental.ProjectCache.ProjectCacheException) 1028private static void HandlePluginException(Exception e, string apiExceptionWasThrownFrom)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (3)
775Exception thrownException = null; 815catch (Exception ex) 891catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (3)
987catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 1012catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 1047catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (5)
779Exception taskException = null; 848catch (Exception ex) 936else if (type == typeof(Exception) || type.GetTypeInfo().IsSubclassOf(typeof(Exception))) 948Exception exceptionToLog = taskException;
BackEnd\Components\Scheduler\Scheduler.cs (4)
2688catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2857catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2897catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2924catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
BackEnd\Components\Scheduler\SchedulerCircularDependencyException.cs (1)
40internal SchedulerCircularDependencyException(string message, Exception inner)
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (1)
81catch (Exception e)
BackEnd\Components\SdkResolution\SdkResolverException.cs (2)
22public SdkResolverException(string resourceName, SdkResolver resolver, SdkReference sdk, Exception innerException, params string[] args) 30internal SdkResolverException(string message, Exception inner)
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (2)
303catch (Exception e) 324catch (Exception e)
BackEnd\Components\SdkResolution\SdkResolverService.cs (2)
342catch (Exception e) when ((e is FileNotFoundException || e is FileLoadException) && sdkResolver.GetType().GetTypeInfo().Name.Equals("NuGetSdkResolver", StringComparison.Ordinal)) 351catch (Exception e)
BackEnd\Components\SdkResolution\SdkResolverServiceException.cs (1)
22internal SdkResolverServiceException(string message, Exception inner)
BackEnd\Node\INode.cs (2)
18internal delegate void NodeShutdownDelegate(NodeEngineShutdownReason reason, Exception e); 31NodeEngineShutdownReason Run(out Exception shutdownException);
BackEnd\Node\InProcNode.cs (8)
74private Exception _shutdownException; 138public NodeEngineShutdownReason Run(out Exception shutdownException) 185catch (Exception e) 295private void OnLoggingThreadException(Exception e) 303private void OnEngineException(Exception e) 313private NodeEngineShutdownReason HandleShutdown(out Exception exception) 324catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 511HandleShutdown(out Exception exception);
BackEnd\Node\OutOfProcNode.cs (10)
126private Exception _shutdownException; 227public NodeEngineShutdownReason Run(out Exception shutdownException) 239public NodeEngineShutdownReason Run(bool enableReuse, out Exception shutdownException) 251public NodeEngineShutdownReason Run(bool enableReuse, bool lowPriority, out Exception shutdownException) 439private void OnLoggingThreadException(Exception e) 447private void OnEngineException(Exception e) 457private NodeEngineShutdownReason HandleShutdown(out Exception exception) 505catch (Exception ex) 820catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 854HandleShutdown(out Exception exception);
BackEnd\Node\OutOfProcServerNode.cs (6)
65private Exception? _shutdownException = null; 94public NodeEngineShutdownReason Run(out Exception? shutdownException) 136private NodeEngineShutdownReason RunInternal(out Exception? shutdownException, ServerNodeHandshake handshake) 256private NodeEngineShutdownReason HandleShutdown(out Exception? exception) 363catch (Exception e) 427catch (Exception)
BackEnd\Shared\BuildAbortedException.cs (3)
53public BuildAbortedException(string message, Exception innerException) 57internal static BuildAbortedException CreateFromRemote(string message, Exception innerException) 62private BuildAbortedException(string message, Exception innerException, bool calledFromDeserialization)
BackEnd\Shared\BuildRequestConfiguration.cs (2)
738catch (Exception e) when (e is DirectoryNotFoundException or UnauthorizedAccessException) 777catch (Exception e) when (e is DirectoryNotFoundException or UnauthorizedAccessException)
BackEnd\Shared\BuildResult.cs (5)
100private Exception? _requestException; 178internal BuildResult(BuildRequest request, Exception? exception) 221internal BuildResult(BuildRequest request, BuildResult? existingResults, Exception? exception) 233internal BuildResult(BuildRequest request, BuildResult? existingResults, string[]? targetNames, Exception? exception) 357public override Exception? Exception
BackEnd\Shared\BuildResultBase.cs (1)
23public abstract Exception? Exception { get; internal set; }
BackEnd\Shared\CircularDependencyException.cs (1)
35internal CircularDependencyException(string message, Exception inner)
BackEnd\Shared\IBuildResults.cs (1)
21Exception Exception { get; }
BackEnd\Shared\ITargetResult.cs (1)
42Exception Exception { get; }
BackEnd\Shared\TargetResult.cs (1)
98public Exception Exception
BackEnd\Shared\WorkUnitResult.cs (5)
70private readonly Exception _exception; 85internal WorkUnitResult(WorkUnitResultCode resultCode, WorkUnitActionCode actionCode, Exception e) 115internal Exception Exception => _exception; 131Exception exception = _exception; 161Exception aggregateException = _exception;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (8)
435catch (Exception e) when (!ExceptionHandling.NotExpectedReflectionException(e)) 574catch (Exception e) when (!ExceptionHandling.NotExpectedReflectionException(e)) 718catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 829catch (Exception ex) 1084catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1291catch (Exception ex) 1457catch (Exception e) when (e is not LoggerException && e is not InternalLoggerException && !ExceptionHandling.NotExpectedReflectionException(e)) 1743catch (Exception e) when (!ExceptionHandling.NotExpectedReflectionException(e))
BuildCheck\Acquisition\BuildCheckAcquisitionModule.cs (3)
60foreach (Exception? unrolledEx in ex.LoaderExceptions.Where(e => e != null).Prepend(ex)) 65catch (Exception ex) 72void ReportLoadingError(Exception ex)
BuildCheck\Infrastructure\BuildCheckCentralContext.cs (1)
257catch (Exception e)
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)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
305catch (Exception e) 771catch (Exception e)
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (1)
68public void DispatchFailedAcquisitionTelemetry(string assemblyName, Exception exception)
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (1)
45public void DispatchFailedAcquisitionTelemetry(string assemblyName, Exception exception)
BuildCheck\Infrastructure\CheckContext\ICheckContext.cs (1)
48void DispatchFailedAcquisitionTelemetry(string assemblyName, Exception exception);
BuildCheck\Infrastructure\ConfigurationProvider.cs (1)
199catch (Exception exception)
Construction\ProjectRootElement.cs (3)
1997catch (Exception) 2065catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex)) 2116catch (Exception ex) when (!ExceptionHandling.NotExpectedIoOrXmlException(ex))
Construction\Solution\ProjectInSolution.cs (1)
202catch (Exception)
Construction\Solution\SolutionFile.cs (4)
334catch (Exception ex) 653catch (Exception e) when (e is JsonException || e is KeyNotFoundException || e is InvalidOperationException) 676catch (Exception e) when (e is JsonException || e is KeyNotFoundException || e is InvalidOperationException) 748catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
Construction\Solution\SolutionProjectGenerator.cs (1)
2249catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) // We don't want any problems scanning the project file to result in aborting the build.
Definition\Project.cs (1)
480catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
Definition\ProjectCollection.cs (2)
401catch (Exception) 1810catch (Exception ex)
Definition\Toolset.cs (4)
607catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 864catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 911catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 957catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
Definition\ToolsetReader.cs (1)
623catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
Errors\InternalLoggerException.cs (3)
66public InternalLoggerException(string message, Exception innerException) 85Exception innerException, 241Exception innerException,
Errors\InvalidProjectFileException.cs (2)
62public InvalidProjectFileException(string message, Exception innerException) 216Exception innerException) : base(message, innerException)
Errors\InvalidToolsetDefinitionException.cs (3)
50public InvalidToolsetDefinitionException(string message, Exception innerException) 86public InvalidToolsetDefinitionException(string message, string errorCode, Exception innerException) 165Exception innerException,
Errors\RegistryException.cs (2)
40public RegistryException(string message, Exception innerException) 76public RegistryException(string message, string source, Exception innerException)
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
61catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
Evaluation\Evaluator.cs (3)
1820catch (Exception e) when (e is SdkResolverException or SdkResolverServiceException) 2081catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex)) 2126catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex))
Evaluation\Expander.cs (15)
1536catch (Exception) when (options.HasFlag(ExpanderOptions.LeavePropertiesUnexpandedOnError)) 1817catch (Exception ex) when (!ExceptionHandling.NotExpectedRegistryException(ex)) 2567catch (Exception e) when (!ExceptionHandling.NotExpectedException(e) || e is InvalidOperationException) 2622catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 2708catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 2783catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 2824catch (Exception ex) when (ex is ArgumentException || ex is InvalidOperationException) 3176catch (Exception ex) when (ex is ArgumentException || ex is InvalidOperationException) 3211catch (Exception ex) when (ex is ArgumentException || ex is InvalidOperationException) 3244catch (Exception ex) when (ex is ArgumentException || ex is InvalidOperationException) 3280catch (Exception ex) when (ex is ArgumentException || ex is InvalidOperationException) 4141catch (Exception ex) 4225catch (Exception ex) when (!ExceptionHandling.NotExpectedFunctionException(ex)) 4279catch (Exception) 4783private object LateBindExecute(Exception ex, BindingFlags bindingFlags, object objectInstance /* null unless instance method */, object[] args, bool isConstructor)
Evaluation\ToolsetElement.cs (1)
102catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex))
Graph\GraphBuildResult.cs (2)
30internal GraphBuildResult(int submissionId, Exception exception) 50public override Exception? Exception { get; internal set; }
Graph\GraphBuildSubmission.cs (1)
66protected internal override GraphBuildResult CreateFailedResult(Exception exception)
Graph\ParallelWorkSet.cs (3)
40private readonly List<Exception> _exceptions = new List<Exception>(0); 201catch (Exception ex)
Instance\HostObjectException.cs (2)
40Exception innerException) : 61internal HostObjectException(string message, Exception innerException)
Instance\HostServices.cs (1)
97catch (Exception ex) when (ex is COMException || ex is InvalidCastException)
Instance\TaskFactories\AssemblyTaskFactory.cs (4)
270foreach (Exception exception in e.LoaderExceptions) 285catch (Exception e) when (!ExceptionHandling.NotExpectedReflectionException(e)) 484foreach (Exception exception in e.LoaderExceptions) 506catch (Exception e) when (!ExceptionHandling.NotExpectedReflectionException(e))
Instance\TaskFactories\TaskHostTask.cs (2)
265if (value is Exception ex) 813private void LogErrorUnableToCreateTaskHost(HandshakeOptions requiredContext, string runtime, string architecture, Exception e)
Instance\TaskRegistry.cs (4)
1364catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1484foreach (Exception exception in e.LoaderExceptions) 1494catch (Exception e) when (!ExceptionHandling.NotExpectedReflectionException(e)) 1588catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
Logging\BinaryLogger\BinaryLogger.cs (4)
367catch (Exception) 396catch (Exception e) 561catch (Exception ex) 688catch (Exception e)
Logging\BinaryLogger\BinaryLogReplayEventSource.cs (1)
130catch (Exception)
Logging\BinaryLogger\BuildEventArgsReader.cs (3)
237catch (Exception e) when ( 247Exception localException = e; 285void HandleError(FormatErrorMessage msgFactory, bool noThrow, ReaderErrorType readerErrorType, BinaryLogRecordKind recordKind, Exception? innerException = null)
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
789catch (Exception ex) when (ex is ArgumentOutOfRangeException or InvalidOperationException)
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
146catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
Logging\FileLogger.cs (2)
120catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 149catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex))
Logging\LoggerDescription.cs (1)
169catch (Exception e) // Wrap other exceptions in a more meaningful exception. LoggerException and InternalLoggerException are already meaningful.
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
91catch (Exception)
Logging\ProfilerLogger.cs (1)
300catch (Exception ex) when (ex is
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\ArraySortHelper.cs (7)
45catch (Exception e) 58catch (Exception e) 78catch (Exception e) 335catch (Exception e) 356catch (Exception e) 685catch (Exception e) 938catch (Exception e)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\ThrowHelper.cs (1)
179internal static void ThrowInvalidOperationException(ExceptionResource resource, Exception e)
src\msbuild\src\Shared\Debugging\DebugUtils.cs (4)
95Exception ex = (Exception)e.ExceptionObject; 105private static void RecordCrashTelemetryForUnhandledException(Exception ex) 117internal static void DumpExceptionToFile(Exception ex)
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (1)
30catch (Exception e)
src\msbuild\src\Shared\ErrorUtilities.cs (7)
168internal static void ThrowArgument(Exception? innerException, string resourceName, params object?[]? args) 220internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName) 232internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0) 245internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1) 258internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2) 271internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2, object arg3) 349throw new ArgumentNullException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, parameterName), (Exception?)null);
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (5)
507catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 542catch (Exception) 657catch (Exception e) 716catch (Exception e) 775catch (Exception e)
src\msbuild\src\Shared\NodeShutdown.cs (3)
46private Exception _exception; 59public NodeShutdown(NodeShutdownReason reason, Exception e) 95public Exception Exception
src\msbuild\src\Shared\OutOfProcTaskHostTaskResult.cs (4)
39internal OutOfProcTaskHostTaskResult(TaskCompleteType result, Exception taskException) 48internal OutOfProcTaskHostTaskResult(TaskCompleteType result, Exception taskException, string exceptionMessage, string[] exceptionMessageArgs) 57internal OutOfProcTaskHostTaskResult(TaskCompleteType result, IDictionary<string, Object> finalParams, Exception taskException, string exceptionMessage, string[] exceptionMessageArgs) 111public Exception TaskException
src\msbuild\src\Shared\ProjectFileErrorUtilities.cs (3)
48Exception innerException, 127/// <param name="innerException">The inner <see cref="Exception"/>.</param> 134Exception innerException,
src\msbuild\src\Shared\RegisteredTaskObjectCacheBase.cs (1)
150catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
src\msbuild\src\Shared\TaskHostTaskComplete.cs (2)
68private Exception _taskException; 159public Exception TaskException
src\msbuild\src\Shared\TaskLoggingHelper.cs (14)
527public static string GetInnerExceptionMessageString(Exception e) 530Exception excep = e; 898public void LogErrorFromException(Exception exception) 910public void LogErrorFromException(Exception exception, bool showStackTrace) 925public void LogErrorFromException(Exception exception, bool showStackTrace, bool showDetail, string file) 934foreach (Exception innerException in aggregateException.Flatten().InnerExceptions) 1236public void LogWarningFromException(Exception exception) 1248public void LogWarningFromException(Exception exception, bool showStackTrace) 1537Exception exception, 1554foreach (Exception innerException in aggregateException.Flatten().InnerExceptions) 1588Exception exception, 1608Exception exception, 1621private static string GetFormattedExceptionDetails(Exception exception, bool showStackTrace, bool showDetail) 1637Exception currentException = exception;
src\msbuild\src\Shared\TaskParameter.cs (3)
109if (wrappedParameter is Exception) 252Exception exceptionParam = (Exception)_wrappedParameter;
Utilities\NuGetFrameworkWrapper.cs (1)
248catch (Exception ex)
Utilities\SimpleVersion.cs (1)
186private static Exception InvalidVersionFormat()
Xml\ProjectXmlUtilities.cs (1)
27internal UnbuildableProjectTypeException(string message, Exception inner)
Microsoft.Build.Framework (104)
BackEnd\InterningBinaryReader.cs (1)
155catch (Exception e)
BinaryTranslator.cs (2)
522public void TranslateException(ref Exception value) 1337public void TranslateException(ref Exception value)
BuildException\BuildExceptionBase.cs (4)
28Exception? inner) 72internal static void WriteExceptionToTranslator(ITranslator translator, Exception exception) 115internal static Exception ReadExceptionFromTranslator(ITranslator translator) 118Exception? innerException = null;
BuildException\BuildExceptionSerializationHelper.cs (9)
14public TypeConstructionTuple(Type type, Func<string, Exception?, BuildExceptionBase> factory) 21public Func<string, Exception?, BuildExceptionBase> Factory { get; } 24private static Dictionary<string, Func<string, Exception?, BuildExceptionBase>>? s_exceptionFactories; 26private static readonly Func<string, Exception?, BuildExceptionBase> s_defaultFactory = 33type.IsSubclassOf(typeof(Exception)) && 49var exceptionFactories = new Dictionary<string, Func<string, Exception?, BuildExceptionBase>>(); 54Func<string, Exception?, BuildExceptionBase> exceptionFactory = typeConstructionTuple.Factory; 73internal static Func<string, Exception?, BuildExceptionBase> CreateExceptionFactory(string serializationType) 77return s_exceptionFactories.TryGetValue(serializationType, out Func<string, Exception?, BuildExceptionBase>? factory)
BuildException\GenericBuildTransferredException.cs (1)
19Exception? inner)
CriticalTaskException.cs (2)
17Exception innerException) 22internal CriticalTaskException(string message, Exception? inner)
DebugUtils.cs (1)
21catch (Exception ex)
EncodingUtilities.cs (2)
286catch (Exception ex) when (ex is IOException || ex is SecurityException) 312catch (Exception ex) when (ex is SecurityException or ObjectDisposedException)
ExceptionHandling.cs (9)
25internal static bool IsCriticalException(Exception e) 63internal static bool NotExpectedException(Exception e) 73internal static bool IsIoRelatedException(Exception e) 93internal static bool IsXmlException(Exception e) 108internal static bool NotExpectedIoOrXmlException(Exception e) 126internal static bool NotExpectedReflectionException(Exception e) 160internal static bool NotExpectedSerializationException(Exception e) 176internal static bool NotExpectedRegistryException(Exception e) 193internal static bool NotExpectedFunctionException(Exception e)
FileSystem\NativeWin32Exception.cs (3)
15/// associated recent error code (<see cref="System.Runtime.InteropServices.Marshal.GetLastWin32Error" />). The <see cref="Exception.Message" /> 29/// The exception's <see cref="Exception.Message" /> includes the error code, a system-provided message describing it, 42/// The exception's <see cref="Exception.Message" /> includes the error code and a system-provided message describing it.
FileUtilities.cs (10)
94catch (Exception ex) 399catch (Exception ex) when (ex is ArgumentException or NotSupportedException or PathTooLongException) 463catch (Exception) 944catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex)) 1027catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex)) 1107catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex)) 1144catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex)) 1176catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException) 1212catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 1469catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex))
FileUtilities_TempFiles.cs (1)
204catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex))
InternalError.cs (4)
42public static void Throw(string message, Exception innerException) 53public static void Throw(ref UnconditionalInterpolatedStringHandler handler, Exception innerException) 100public static T Throw<T>(string message, Exception innerException) 116public static T Throw<T>(ref UnconditionalInterpolatedStringHandler handler, Exception innerException)
InternalErrorException.cs (4)
48Exception innerException) : 52internal static InternalErrorException CreateFromRemote(string message, Exception innerException) 57private InternalErrorException(string message, Exception innerException, bool calledFromDeserialization) 111private static void ConsiderDebuggerLaunch(string message, Exception innerException)
ITaskItemExtensions.cs (1)
56catch (Exception e)
ItemSpecModifiers.cs (1)
472catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
ITranslator.cs (1)
294void TranslateException(ref Exception value);
LazyFormattedBuildEventArgs.cs (1)
126catch (Exception e)
Loader\LoadedType.cs (4)
116catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 133catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 144catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 156catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
LoggerException.cs (2)
54public LoggerException(string? message, Exception? innerException) 68public LoggerException(string? message, Exception? innerException, string? errorCode, string? helpKeyword)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.contracts\5.0.0-1.25277.114\contentFiles\cs\net9.0\ErrorReporting\FailFast.cs (3)
26internal static void OnFatalException(Exception exception) 63internal static void DumpStackTrace(Exception? exception = null, string? message = null) 74for (Exception? current = exception; current is object; current = current.InnerException)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.contracts\5.0.0-1.25277.114\contentFiles\cs\net9.0\ErrorReporting\FatalError.cs (14)
24public OperationCanceledIgnoringCallerTokenException(Exception innerException) 32public delegate void ErrorReporterHandler(Exception exception, ErrorSeverity severity, bool forceDump); 38private static Exception? s_reportedException; 46/// cref="ReportNonFatalError(Exception, ErrorSeverity, bool)"/></param> 102public static bool ReportAndPropagate(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 114public static bool ReportAndPropagateUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 143public static bool ReportAndPropagateUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 164public static bool ReportAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 176public static bool ReportWithDumpAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 189public static bool ReportAndCatchUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 219public static bool ReportAndCatchUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 259private static void Report(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 270public static void ReportNonFatalError(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 275private static void ReportException(Exception exception, ErrorSeverity severity, bool forceDump, ErrorReporterHandler? handler)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.contracts\5.0.0-1.25277.114\contentFiles\cs\net9.0\ExceptionUtilities.cs (3)
21internal static Exception UnexpectedValue(object? o) 30internal static Exception Unreachable([CallerFilePath] string? path = null, [CallerLineNumber] int line = 0) 39internal static bool IsCurrentOperationBeingCancelled(Exception exception, CancellationToken cancellationToken)
Telemetry\BuildCheckTelemetry.cs (1)
23Exception exception)
Telemetry\CrashTelemetry.cs (12)
392internal Exception? Exception { get; set; } 397public void PopulateFromException(Exception exception) 422private void PopulateInnerExceptionDetails(Exception exception) 424Exception? inner = exception.InnerException; 646private static Exception? GetInnermostException(Exception exception) 648Exception? inner = exception.InnerException; 672internal static string? ExtractOriginNamespace(Exception exception) 796private static string? ComputeStackHash(Exception exception) 875private static string? ExtractStackTop(Exception exception) 893internal static string? ExtractFullStackTrace(Exception exception) 917internal static string? ExtractStackCaller(Exception exception)
Telemetry\CrashTelemetryRecorder.cs (4)
39Exception exception, 75Exception exception, 190public SanitizedException(Exception original) 203Exception exception,
Telemetry\TelemetryManager.cs (1)
103catch (Exception ex) when (ex is FileNotFoundException or FileLoadException or TypeLoadException)
Utilities\FileMatcher.cs (2)
2029catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 2625catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex))
Utilities\FrameworkLocationHelper.cs (1)
1046catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
Microsoft.Build.NuGetSdkResolver (5)
GlobalJsonReader.cs (3)
73catch (Exception e) 251catch (Exception e) 272catch (Exception e)
NuGetSdkResolver.cs (2)
175catch (Exception e) 244catch (Exception e)
Microsoft.Build.Tasks.CodeAnalysis (51)
src\roslyn\src\Compilers\Core\MSBuildTask\CopyRefAssembly.cs (3)
49catch (Exception e) 72catch (Exception) 89catch (Exception e)
src\roslyn\src\Compilers\Core\MSBuildTask\Csc.cs (2)
550catch (Exception e) 684catch (Exception e)
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
585catch (Exception e)
src\roslyn\src\Compilers\Core\MSBuildTask\Utilities.cs (7)
119catch (Exception e) when (IsIoRelatedException(e)) { } 130catch (Exception e) when (IsIoRelatedException(e)) 143catch (Exception e) when (IsIoRelatedException(e)) { } 146internal static bool IsIoRelatedException(Exception e) => 153internal static Exception GetLocalizedArgumentException(Exception e, 160internal static Exception GetLocalizedArgumentException(string errorString,
src\roslyn\src\Compilers\Core\MSBuildTask\Vbc.cs (2)
333catch (Exception e) when (Utilities.IsIoRelatedException(e)) 977catch (Exception e)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (11)
135catch (Exception) 147catch (Exception) 303catch (Exception e) 328catch (Exception e) 372catch (Exception e) 416catch (Exception e) when (e is IOException || e is TimeoutException) 442catch (Exception e) when (!(e is TaskCanceledException || e is OperationCanceledException)) 857catch (Exception) 904catch (Exception) 936catch (Exception) 955catch (Exception)
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (4)
59internal static void LogException(this ICompilerServerLogger logger, Exception exception, string reason) 71Exception? e = exception.InnerException; 82void AppendException(Exception exception) 137catch (Exception e)
src\roslyn\src\Compilers\Shared\RuntimeHostInfo.cs (1)
56catch (Exception ex)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (3)
26internal static void OnFatalException(Exception exception) 63internal static void DumpStackTrace(Exception? exception = null, string? message = null) 74for (Exception? current = exception; current is object; current = current.InnerException)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (14)
24public OperationCanceledIgnoringCallerTokenException(Exception innerException) 32public delegate void ErrorReporterHandler(Exception exception, ErrorSeverity severity, bool forceDump); 38private static Exception? s_reportedException; 46/// cref="ReportNonFatalError(Exception, ErrorSeverity, bool)"/></param> 102public static bool ReportAndPropagate(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 114public static bool ReportAndPropagateUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 143public static bool ReportAndPropagateUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 164public static bool ReportAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 176public static bool ReportWithDumpAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 189public static bool ReportAndCatchUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 219public static bool ReportAndCatchUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 259private static void Report(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 270public static void ReportNonFatalError(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 275private static void ReportException(Exception exception, ErrorSeverity severity, bool forceDump, ErrorReporterHandler? handler)
src\roslyn\src\Dependencies\Contracts\ExceptionUtilities.cs (3)
21internal static Exception UnexpectedValue(object? o) 30internal static Exception Unreachable([CallerFilePath] string? path = null, [CallerLineNumber] int line = 0) 39internal static bool IsCurrentOperationBeingCancelled(Exception exception, CancellationToken cancellationToken)
Microsoft.Build.Tasks.Core (167)
AddToWin32Manifest.cs (1)
161catch (Exception ex)
AppConfig\AppConfig.cs (1)
54catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
AppConfig\AppConfigException.cs (1)
56public AppConfigException(string message, string fileName, int line, int column, System.Exception inner) : base(message, inner)
AppConfig\BindingRedirect.cs (2)
64catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 78catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
AssemblyDependency\BadImageReferenceException.cs (1)
19internal BadImageReferenceException(string message, Exception innerException)
AssemblyDependency\DependencyResolutionException.cs (1)
19internal DependencyResolutionException(string message, Exception innerException)
AssemblyDependency\GenerateBindingRedirects.cs (1)
390catch (Exception)
AssemblyDependency\Node\OutOfProcRarNode.cs (2)
36public RarNodeShutdownReason Run(out Exception? shutdownException, CancellationToken cancellationToken = default) 56catch (Exception ex)
AssemblyDependency\Node\OutOfProcRarNodeEndpoint.cs (1)
131catch (Exception e) when (e is not OperationCanceledException)
AssemblyDependency\Reference.cs (5)
48private List<Exception> _errors = new List<Exception>(); 222_errors = new List<Exception>(); 397internal void AddError(Exception e) 410internal List<Exception> GetErrors()
AssemblyDependency\ReferenceResolutionException.cs (1)
19internal ReferenceResolutionException(string message, Exception innerException)
AssemblyDependency\ReferenceTable.cs (9)
545List<Exception> exceptions) 563Exception e = SetPrimaryAssemblyReferenceItem(n); 578private Exception SetPrimaryAssemblyReferenceItem( 704catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 926catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 1018catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 1232catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 1655List<Exception> exceptions) 2944catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
AssemblyDependency\ResolveAssemblyReference.cs (15)
1235List<Exception> generalResolutionExceptions) 1429foreach (Exception error in generalResolutionExceptions) 1673catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 1868List<Exception> itemErrors = reference.GetErrors(); 1869foreach (Exception itemError in itemErrors) 2401List<Exception> inclusionListErrors = new List<Exception>(); 2469Exception e = redistList.Errors[i]; 2479Exception e = inclusionListErrors[i]; 2621var generalResolutionExceptions = new List<Exception>(); 2893catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2982List<Exception> inclusionListErrors = new List<Exception>(); 3004Exception e = fullFrameworkRedistList.Errors[i]; 3442catch (Exception ex)
AssemblyDependency\Resolver.cs (1)
334catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
AssignCulture.cs (1)
210catch (Exception e)
BootstrapperUtil\BootstrapperBuilder.cs (1)
247catch (Exception ex)
Copy.cs (2)
993catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 1023catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
CreateManifestResourceName.cs (1)
259catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
Delete.cs (1)
153catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
DownloadFile.cs (4)
114catch (Exception e) 116bool canRetry = IsRetriable(e, out Exception actualException) && retryAttemptCount++ < Retries; 244private static bool IsRetriable(Exception exception, out Exception actualException)
ErrorFromResources.cs (1)
61catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
FileIO\ReadLinesFromFile.cs (1)
71catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
FileIO\WriteLinesToFile.cs (7)
165catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 193catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 225Exception lastException = null; 242catch (Exception ex) when (attempt < maxAttempts && ExceptionHandling.IsIoRelatedException(ex)) 249catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 291catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 381catch (Exception)
FileState.cs (2)
78private readonly Exception _exceptionThrown; 176catch (Exception ex)
GenerateApplicationManifest.cs (1)
484catch (Exception ex)
GenerateManifestBase.cs (2)
461catch (Exception ex) 625catch (Exception ex)
GenerateResource.cs (14)
1544catch (Exception e) when (!ExceptionHandling.NotExpectedIoOrXmlException(e) || e is MSBuildResXException) 1638catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 2629catch (Exception e) when ( 2644catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 2729catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 2775catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2782catch (Exception e) when ( 2797catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 2884catch (Exception deleteException) 3520catch (Exception e) when 3761Exception capturedException = null; 3769catch (Exception e) 3785catch (Exception) { } // We aggressively catch all exception types since we already have one we will throw. 3789catch (Exception) { } // We aggressively catch all exception types since we already have one we will throw.
GetAssemblyIdentity.cs (1)
85catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
GetInstalledSDKLocations.cs (1)
160catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
GetReferenceAssemblyPaths.cs (1)
234catch (Exception e)
GetSDKReferenceFiles.cs (6)
290catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 940catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 970catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 983catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1105catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1139catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
InvalidParameterValueException.cs (1)
31internal InvalidParameterValueException(string paramName, string actualValue, string message, Exception innerException)
ListOperators\FindUnderPath.cs (2)
83catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 114catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
MakeDir.cs (1)
85catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
ManifestUtil\DeployManifest.cs (1)
229catch (Exception)
ManifestUtil\LauncherBuilder.cs (2)
90catch (Exception ex) 112catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex))
ManifestUtil\Manifest.cs (2)
587catch (Exception e) 604catch (Exception e)
ManifestUtil\MetadataReader.cs (1)
50catch (Exception)
ManifestUtil\SecurityUtil.cs (1)
738catch (Exception ex)
Move.cs (1)
179catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
RedistList.cs (7)
75private readonly ReadOnlyCollection<Exception> _errors; 94var errors = new List<Exception>(); 109_errors = new ReadOnlyCollection<Exception>(errors); 133internal Exception[] Errors => _errors.ToArray(); 564internal Dictionary<string, string> GenerateDenyList(AssemblyTableInfo[] allowListAssemblyTableInfo, List<Exception> allowListErrors, List<string> allowListErrorFileNames) 690internal static string ReadFile(AssemblyTableInfo assemblyTableInfo, List<AssemblyEntry> assembliesList, List<Exception> errorsList, List<string> errorFilenamesList, List<AssemblyRemapping> remapEntries) 745catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex))
RemoveDir.cs (2)
139catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 177catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
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)
ResourceHandling\MSBuildResXReader.cs (1)
52catch (Exception e)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (2)
335catch (Exception e) 819catch (Exception e)
src\msbuild\src\Shared\Debugging\DebugUtils.cs (4)
95Exception ex = (Exception)e.ExceptionObject; 105private static void RecordCrashTelemetryForUnhandledException(Exception ex) 117internal static void DumpExceptionToFile(Exception ex)
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (1)
30catch (Exception e)
src\msbuild\src\Shared\ErrorUtilities.cs (7)
168internal static void ThrowArgument(Exception? innerException, string resourceName, params object?[]? args) 220internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName) 232internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0) 245internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1) 258internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2) 271internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2, object arg3) 349throw new ArgumentNullException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, parameterName), (Exception?)null);
src\msbuild\src\Shared\NodePipeBase.cs (1)
259catch (Exception e) when (e is not InternalErrorException)
src\msbuild\src\Shared\NodePipeServer.cs (2)
151catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 183catch (Exception)
src\msbuild\src\Shared\NodeShutdown.cs (3)
46private Exception _exception; 59public NodeShutdown(NodeShutdownReason reason, Exception e) 95public Exception Exception
src\msbuild\src\Shared\TaskParameter.cs (3)
109if (wrappedParameter is Exception) 252Exception exceptionParam = (Exception)_wrappedParameter;
StateFileBase.cs (3)
80catch (Exception e) when (!ExceptionHandling.NotExpectedSerializationException(e)) 151catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 181catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
TaskEnvironmentExtensions.cs (1)
30catch (Exception e)
Touch.cs (4)
191catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 263catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 279catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 295catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e))
Unzip.cs (6)
97catch (Exception e) 119catch (Exception) 142catch (Exception e) 156catch (Exception e) 226catch (Exception e) 238catch (Exception e)
WriteCodeFragment.cs (3)
133catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex)) 569catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 597catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
XmlPeek.cs (4)
77catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 92catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 109catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 122catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
XmlPoke.cs (4)
81catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 95catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 109catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 136catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
XslTransformation.cs (4)
120catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 147catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 165catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 192catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
ZipDirectory.cs (2)
95catch (Exception e) 139catch (Exception e)
Microsoft.Build.Tasks.Git (10)
GitDataReader\GitConfig.Reader.cs (2)
211catch (Exception e) when (e is FileNotFoundException or DirectoryNotFoundException) 215catch (Exception e) when (e is not IOException)
GitDataReader\GitIgnore.cs (1)
115catch (Exception e) when (e is FileNotFoundException or DirectoryNotFoundException)
GitDataReader\GitReferenceResolver.cs (3)
111Exception invalidData() => new InvalidDataException($"Invalid packed references specification in '{path}': '{line}'"); 363catch (Exception e) when (e is ArgumentException or FileNotFoundException or DirectoryNotFoundException) 379catch (Exception e) when (e is not ArgumentException and not IOException)
GitDataReader\GitRepository.cs (2)
265catch (Exception e) when (e is IOException or InvalidDataException) 434catch (Exception e) when (e is not IOException)
RepositoryTask.cs (2)
94catch (Exception e) when (e is IOException or InvalidDataException or NotSupportedException) 133catch (Exception e) when (e is IOException or InvalidDataException or NotSupportedException)
Microsoft.Build.Utilities.Core (54)
MuxLogger.cs (15)
653catch (Exception) 698catch (Exception) 741catch (Exception) 781catch (Exception) 826catch (Exception) 884catch (Exception) 926catch (Exception) 968catch (Exception) 1010catch (Exception) 1052catch (Exception) 1094catch (Exception) 1136catch (Exception) 1183catch (Exception) 1242catch (Exception) 1288catch (Exception)
PlatformManifest.cs (1)
157catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
SDKManifest.cs (1)
358catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (4)
95Exception ex = (Exception)e.ExceptionObject; 105private static void RecordCrashTelemetryForUnhandledException(Exception ex) 117internal static void DumpExceptionToFile(Exception ex)
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (1)
30catch (Exception e)
src\msbuild\src\Shared\ErrorUtilities.cs (7)
168internal static void ThrowArgument(Exception? innerException, string resourceName, params object?[]? args) 220internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName) 232internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0) 245internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1) 258internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2) 271internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2, object arg3) 349throw new ArgumentNullException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, parameterName), (Exception?)null);
src\msbuild\src\Shared\TaskLoggingHelper.cs (14)
527public static string GetInnerExceptionMessageString(Exception e) 530Exception excep = e; 898public void LogErrorFromException(Exception exception) 910public void LogErrorFromException(Exception exception, bool showStackTrace) 925public void LogErrorFromException(Exception exception, bool showStackTrace, bool showDetail, string file) 934foreach (Exception innerException in aggregateException.Flatten().InnerExceptions) 1236public void LogWarningFromException(Exception exception) 1248public void LogWarningFromException(Exception exception, bool showStackTrace) 1537Exception exception, 1554foreach (Exception innerException in aggregateException.Flatten().InnerExceptions) 1588Exception exception, 1608Exception exception, 1621private static string GetFormattedExceptionDetails(Exception exception, bool showStackTrace, bool showDetail) 1637Exception currentException = exception;
ToolLocationHelper.cs (7)
866catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 1063catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 1183catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 1472catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 3079catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 3174catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex)) 3222catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
ToolTask.cs (4)
915catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 1434catch (Exception) 1674catch (Exception e) 1711catch (Exception e) when (e is Win32Exception || e is IOException || e is UnauthorizedAccessException)
Microsoft.CodeAnalysis (227)
CommandLine\CommandLineArguments.cs (1)
446catch (Exception e) when (diagnosticsOpt != null && (e is BadImageFormatException || e is IOException))
CommandLine\CommandLineParser.cs (2)
304catch (Exception) 649catch (Exception)
CommandLine\CommonCompiler.CompilerEmitStreamProvider.cs (3)
41catch (Exception e) 103catch (Exception e) 115private void ReportOpenFileDiagnostic(DiagnosticBag diagnostics, Exception e)
CommandLine\CommonCompiler.cs (9)
273catch (Exception e) 366catch (Exception e) 406catch (Exception e) 494internal static DiagnosticInfo ToFileReadDiagnostics(CommonMessageProvider messageProvider, Exception e, string filePath) 1374catch (Exception e) 1601catch (Exception e) 1645catch (Exception e) 1686catch (Exception ex) 1720catch (Exception ex)
CommandLine\CommonCompiler.ExistingReferencesResolver.cs (1)
63catch (Exception e) when (e is BadImageFormatException || e is IOException)
CommandLine\NoThrowStreamDisposer.cs (1)
65catch (Exception e)
Compilation\Compilation.cs (1)
2126catch (Exception ex)
Compilation\SourceReferenceResolver.cs (1)
46/// <exception cref="IOException">Error reading file <paramref name="resolvedPath"/>. See <see cref="Exception.InnerException"/> for details.</exception>
Compilation\XmlReferenceResolver.cs (1)
36/// <exception cref="IOException">Error reading file <paramref name="resolvedPath"/>. See <see cref="Exception.InnerException"/> for details.</exception>
Diagnostic\CommonMessageProvider.cs (1)
259public void ReportStreamWriteException(Exception e, string filePath, DiagnosticBag diagnostics)
Diagnostic\Diagnostic_SimpleDiagnostic.cs (1)
104catch (Exception)
Diagnostic\LocalizableString.cs (5)
19public event EventHandler<Exception>? OnException; 30catch (Exception ex) 63catch (Exception ex) 76catch (Exception ex) 109private void RaiseOnException(Exception ex)
DiagnosticAnalyzer\AnalysisValueProvider.cs (1)
58catch (Exception)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
236catch (Exception ex)
DiagnosticAnalyzer\AnalyzerDriver.cs (9)
495var newOnAnalyzerException = (Exception ex, DiagnosticAnalyzer analyzer, Diagnostic diagnostic, CancellationToken cancellationToken) => 730var innerException = faultedTask.Exception?.InnerException; 834Action<Exception, DiagnosticAnalyzer, Diagnostic> onAnalyzerException = 837Func<Exception, bool>? nullFilter = null; 847Action<Exception, DiagnosticAnalyzer, Diagnostic> onAnalyzerException, 848Func<Exception, bool>? analyzerExceptionFilter, 1584catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken)) 1643catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken)) 2783catch (Exception ex) when (ex is InsufficientExecutionStackException)
DiagnosticAnalyzer\AnalyzerExecutor.cs (18)
38private readonly Func<Exception, bool>? _analyzerExceptionFilter; 117Action<Exception, DiagnosticAnalyzer, Diagnostic, CancellationToken> onAnalyzerException, 118Func<Exception, bool>? analyzerExceptionFilter, 151Action<Exception, DiagnosticAnalyzer, Diagnostic, CancellationToken> onAnalyzerException, 152Func<Exception, bool>? analyzerExceptionFilter, 227internal Action<Exception, DiagnosticAnalyzer, Diagnostic, CancellationToken> OnAnalyzerException { get; } 1376catch (Exception ex) when (HandleAnalyzerException(analyzer, ex, info) && 1382private bool HandleAnalyzerException(DiagnosticAnalyzer analyzer, Exception ex, in AnalysisContextInfo? info) 1395Exception exception, 1398Action<Exception, DiagnosticAnalyzer, Diagnostic, CancellationToken> onAnalyzerException, 1399Func<Exception, bool>? analyzerExceptionFilter, 1413catch (Exception) 1420static bool exceptionFilter(Exception ex, Func<Exception, bool>? analyzerExceptionFilter, CancellationToken cancellationToken) 1436internal static Diagnostic CreateAnalyzerExceptionDiagnostic(DiagnosticAnalyzer analyzer, Exception e, AnalysisContextInfo? info = null) 1447private static string CreateDiagnosticDescription(AnalysisContextInfo? info, Exception e) 1472catch (Exception ex) 1485internal static Diagnostic CreateDriverExceptionDiagnostic(Exception e)
DiagnosticAnalyzer\AnalyzerFileReference.cs (5)
203private static AnalyzerLoadFailureEventArgs CreateAnalyzerFailedArgs(Exception e, string? typeName = null) 484catch (Exception e) 535catch (Exception e) 603catch (Exception e) 631catch (Exception e)
DiagnosticAnalyzer\AnalyzerLoadFailureEventArgs.cs (2)
39public Exception? Exception { get; } 46public AnalyzerLoadFailureEventArgs(FailureErrorCode errorCode, string message, Exception? exceptionOpt = null, string? typeNameOpt = null)
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (7)
25private static ImmutableDictionary<LocalizableString, Exception?> s_localizableStringToException = ImmutableDictionary<LocalizableString, Exception?>.Empty.WithComparers(ReferenceEqualityComparer.Instance); 336var exception = getAndCacheToStringException(localizableString); 344static Exception? getAndCacheToStringException(LocalizableString localizableString) 351static Exception? computeException(LocalizableString localizableString) 353Exception? localException = null; 354EventHandler<Exception> handler = (_, ex) => localException = ex;
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (6)
809catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken)) 1223Action<Exception, DiagnosticAnalyzer, Diagnostic>? onAnalyzerException = null) 1234Action<Exception, DiagnosticAnalyzer, Diagnostic, CancellationToken> wrappedOnAnalyzerException = 1243catch (Exception ex) when (AnalyzerExecutor.HandleAnalyzerException(ex, analyzer, info: null, wrappedOnAnalyzerException, analyzerExceptionFilter: null, CancellationToken.None)) 1255catch (Exception ex) when (AnalyzerExecutor.HandleAnalyzerException(ex, suppressor, info: null, wrappedOnAnalyzerException, analyzerExceptionFilter: null, CancellationToken.None)) 1289catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
DiagnosticAnalyzer\CompilationWithAnalyzersOptions.cs (12)
15private readonly Action<Exception, DiagnosticAnalyzer, Diagnostic>? _onAnalyzerException; 16private readonly Func<Exception, bool>? _analyzerExceptionFilter; 29public Action<Exception, DiagnosticAnalyzer, Diagnostic>? OnAnalyzerException => _onAnalyzerException; 34public Func<Exception, bool>? AnalyzerExceptionFilter => _analyzerExceptionFilter; 67Action<Exception, DiagnosticAnalyzer, Diagnostic>? onAnalyzerException, 84Action<Exception, DiagnosticAnalyzer, Diagnostic>? onAnalyzerException, 103Action<Exception, DiagnosticAnalyzer, Diagnostic>? onAnalyzerException, 107Func<Exception, bool>? analyzerExceptionFilter) 112/// <inheritdoc cref="CompilationWithAnalyzersOptions.CompilationWithAnalyzersOptions(AnalyzerOptions?, Action{Exception, DiagnosticAnalyzer, Diagnostic}?, bool, bool, bool, Func{Exception, bool}?)"/> 119Action<Exception, DiagnosticAnalyzer, Diagnostic>? onAnalyzerException, 123Func<Exception, bool>? analyzerExceptionFilter,
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
243catch (Exception ex)
DiaSymReader\SymUnmanagedFactory.cs (3)
166internal static object CreateObject(bool createReader, bool useAlternativeLoadPath, bool useComRegistry, out string moduleName, out Exception loadException) 211catch (Exception e) 233catch (Exception e)
DiaSymReader\Writer\SymUnmanagedWriterException.cs (3)
29public SymUnmanagedWriterException(string message, Exception innerException) 34public SymUnmanagedWriterException(string message, Exception innerException, string implementationModuleName) 40internal SymUnmanagedWriterException(Exception innerException, string implementationModuleName)
DiaSymReader\Writer\SymUnmanagedWriterFactory.cs (2)
46loadException: out var loadException); 88catch (Exception e)
DiaSymReader\Writer\SymUnmanagedWriterImpl.cs (30)
50private Exception PdbWritingException(Exception inner) 71catch (Exception ex) 114catch (Exception ex) 165catch (Exception ex) 184catch (Exception ex) 202catch (Exception ex) 242catch (Exception ex) 256catch (Exception ex) 270catch (Exception ex) 284catch (Exception ex) 298catch (Exception ex) 313catch (Exception ex) 339catch (Exception ex) 354catch (Exception ex) 422catch (Exception ex) 473catch (Exception ex) 518catch (Exception ex) 533catch (Exception ex) 571catch (Exception ex) 585catch (Exception ex) 599catch (Exception ex) 626catch (Exception ex) 653catch (Exception ex) 667catch (Exception ex) 692catch (Exception ex) 706catch (Exception ex) 733catch (Exception ex) 745catch (Exception ex) 787catch (Exception ex)
Emit\EditAndContinue\DefinitionMap.cs (3)
352catch (Exception e) when (e is InvalidDataException or IOException or BadImageFormatException) 437catch (Exception e) when (e is UnsupportedSignatureContent || e is BadImageFormatException || e is IOException) 753catch (Exception e) when (e is InvalidDataException or IOException or BadImageFormatException)
EncodedStringText.cs (1)
65catch (Exception)
FileSystem\FileUtilities.cs (8)
205catch (Exception) 304catch (Exception e) 328catch (Exception e) when (e is not IOException) 345catch (Exception e) when (e is not IOException) 387catch (Exception e) 405catch (Exception e) 424catch (Exception e) 449catch (Exception e)
FileSystem\ICommonCompilerFileSystem.cs (1)
46catch (Exception e)
FileSystem\PathUtilities.cs (1)
803catch (Exception ex) when (
InternalUtilities\ExceptionExtensions.cs (1)
18internal static bool IsCurrentOperationBeingCancelled(this Exception exception, CancellationToken cancellationToken)
InternalUtilities\RoslynParallel.cs (1)
33catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
InternalUtilities\StringExtensions.cs (1)
259catch (Exception ex)
InternalUtilities\XmlUtilities.cs (1)
85catch (Exception e) when (e.GetType().FullName == "System.Xml.XPath.XPathException")
MetadataReader\MetadataDecoder.cs (2)
1672catch (Exception e) when (e is UnsupportedSignatureContent || e is BadImageFormatException) 1809catch (Exception e) when ((e is UnsupportedSignatureContent || e is BadImageFormatException) && !isFunctionPointerSignature)
MetadataReader\PEModule.cs (3)
1422catch (Exception e) when (e is UnsupportedSignatureContent or BadImageFormatException) { } 1481catch (Exception ex) when (ex is BadImageFormatException or UnsupportedSignatureContent) 1589catch (Exception e) when (e is UnsupportedSignatureContent or BadImageFormatException) { }
MetadataReference\AssemblyMetadata.cs (5)
161/// <exception cref="IOException">Error reading file <paramref name="path"/>. See <see cref="Exception.InnerException"/> for details.</exception> 279/// <exception cref="IOException">IO error reading the metadata. See <see cref="Exception.InnerException"/> for details.</exception> 305/// <exception cref="IOException">IO error while reading the metadata. See <see cref="Exception.InnerException"/> for details.</exception> 313/// <exception cref="IOException">IO error while reading the metadata. See <see cref="Exception.InnerException"/> for details.</exception> 408/// <exception cref="IOException">IO error reading the metadata. See <see cref="Exception.InnerException"/> for details.</exception>
MetadataReference\ModuleMetadata.cs (1)
257/// <exception cref="IOException">Error opening file <paramref name="path"/>. See <see cref="Exception.InnerException"/> for details.</exception>
MetadataReference\PortableExecutableReference.cs (1)
186internal static Diagnostic ExceptionToDiagnostic(Exception e, CommonMessageProvider messageProvider, Location location, string display, MetadataImageKind kind)
NativePdbWriter\PdbWriter.cs (1)
756catch (Exception e)
PEWriter\ManagedResource.cs (1)
67catch (Exception e)
PEWriter\MetadataWriter.cs (2)
1757catch (Exception e) when (e is not OperationCanceledException) 1780catch (Exception e) when (!(e is OperationCanceledException))
PEWriter\MetadataWriter.PortablePdb.cs (1)
857catch (Exception e) when (!(e is OperationCanceledException))
PEWriter\PeWriter.cs (3)
29public PeWritingException(Exception inner) 231catch (Exception e) when (!(e is OperationCanceledException)) 308catch (Exception e) when (!(e is OperationCanceledException))
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
504catch (Exception e) when (e is BadImageFormatException || e is IOException)
ResourceDescription.cs (1)
124catch (Exception ex)
ResourceException.cs (1)
11internal ResourceException(string? name, Exception? inner = null)
RuleSet\InvalidRuleSetException.cs (1)
18public InvalidRuleSetException(string message, Exception inner) : base(message, inner) { }
RuleSet\RuleSetInclude.cs (1)
69catch (Exception e)
RuleSet\RuleSetProcessor.cs (1)
75catch (Exception e)
SourceGeneration\GeneratorDriver.cs (5)
273Exception? ex = null; 278catch (Exception e) when (handleGeneratorException(compilation, MessageProvider, sourceGenerator, e, isInit: true)) 448static bool handleGeneratorException(Compilation compilation, CommonMessageProvider messageProvider, ISourceGenerator sourceGenerator, Exception e, bool isInit) 578private static GeneratorState SetGeneratorException(Compilation compilation, CommonMessageProvider provider, GeneratorState generatorState, ISourceGenerator generator, Exception e, DiagnosticBag? diagnosticBag, GeneratorRunPhase phase, TimeSpan? runTime, CancellationToken cancellationToken) 603private static Diagnostic CreateGeneratorExceptionDiagnostic(CommonMessageProvider provider, ISourceGenerator generator, Exception e, bool isInit)
SourceGeneration\GeneratorState.cs (3)
71Exception? exception, 127public GeneratorState WithError(Exception exception, Diagnostic error, TimeSpan elapsedTime, GeneratorRunPhase phase) 157internal Exception? Exception { get; }
SourceGeneration\Nodes\SyntaxReceiverStrategy.cs (2)
48catch (Exception e) 90catch (Exception e) when (!ExceptionUtilities.IsCurrentOperationBeingCancelled(e, cancellationToken))
SourceGeneration\Nodes\TransformNode.cs (1)
87catch (Exception e) when (_wrapUserFunc && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, cancellationToken))
SourceGeneration\RunResults.cs (3)
88Exception? exception, 131/// An <see cref="System.Exception"/> instance that was thrown by the generator, or <c>null</c> if the generator completed without error. 140public Exception? Exception { get; }
SourceGeneration\SyntaxStore.cs (2)
31private readonly ImmutableDictionary<SyntaxInputNode, Exception>.Builder _syntaxExceptions = ImmutableDictionary.CreateBuilder<SyntaxInputNode, Exception>();
SourceGeneration\UserFunction.cs (7)
16public new Exception InnerException => base.InnerException!; 18public UserFunctionException(Exception innerException) 42catch (Exception e) 54catch (Exception e) 71catch (Exception e) when (catchAnalyzerExceptions && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, token)) 91catch (Exception e) when (catchAnalyzerExceptions && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, token)) 106catch (Exception e) when (catchAnalyzerExceptions && !ExceptionUtilities.IsCurrentOperationBeingCancelled(e, token))
src\roslyn\src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (2)
18public static string CreateDiagnosticDescription(this Exception exception) 34private static string GetExceptionMessage(Exception exception)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (7)
45catch (Exception e) 58catch (Exception e) 78catch (Exception e) 335catch (Exception e) 356catch (Exception e) 685catch (Exception e) 938catch (Exception e)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
179internal static void ThrowInvalidOperationException(ExceptionResource resource, Exception e)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (3)
26internal static void OnFatalException(Exception exception) 63internal static void DumpStackTrace(Exception? exception = null, string? message = null) 74for (Exception? current = exception; current is object; current = current.InnerException)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (11)
24public OperationCanceledIgnoringCallerTokenException(Exception innerException) 32public delegate void ErrorReporterHandler(Exception exception, ErrorSeverity severity, bool forceDump); 38private static Exception? s_reportedException; 46/// cref="ReportNonFatalError(Exception, ErrorSeverity, bool)"/></param> 102public static bool ReportAndPropagate(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 114public static bool ReportAndPropagateUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 143public static bool ReportAndPropagateUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 164public static bool ReportAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 259private static void Report(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 270public static void ReportNonFatalError(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 275private static void ReportException(Exception exception, ErrorSeverity severity, bool forceDump, ErrorReporterHandler? handler)
src\roslyn\src\Dependencies\Contracts\ExceptionUtilities.cs (3)
21internal static Exception UnexpectedValue(object? o) 30internal static Exception Unreachable([CallerFilePath] string? path = null, [CallerLineNumber] int line = 0) 39internal static bool IsCurrentOperationBeingCancelled(Exception exception, CancellationToken cancellationToken)
StrongName\CryptoBlobParser.cs (1)
247catch (Exception)
StrongName\DesktopStrongNameProvider.cs (5)
85catch (Exception ex) 102catch (Exception ex) 156catch (Exception ex) 237catch (Exception ex) 259catch (Exception ex)
Microsoft.CodeAnalysis.Analyzers (62)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
65catch (Exception)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (8)
205catch (Exception) 304catch (Exception e) 328catch (Exception e) when (e is not IOException) 345catch (Exception e) when (e is not IOException) 387catch (Exception e) 405catch (Exception e) 424catch (Exception e) 449catch (Exception e)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
803catch (Exception ex) when (
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
259catch (Exception ex)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (7)
45catch (Exception e) 58catch (Exception e) 78catch (Exception e) 335catch (Exception e) 356catch (Exception e) 685catch (Exception e) 938catch (Exception e)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
179internal static void ThrowInvalidOperationException(ExceptionResource resource, Exception e)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (3)
26internal static void OnFatalException(Exception exception) 63internal static void DumpStackTrace(Exception? exception = null, string? message = null) 74for (Exception? current = exception; current is object; current = current.InnerException)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (14)
24public OperationCanceledIgnoringCallerTokenException(Exception innerException) 32public delegate void ErrorReporterHandler(Exception exception, ErrorSeverity severity, bool forceDump); 38private static Exception? s_reportedException; 46/// cref="ReportNonFatalError(Exception, ErrorSeverity, bool)"/></param> 102public static bool ReportAndPropagate(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 114public static bool ReportAndPropagateUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 143public static bool ReportAndPropagateUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 164public static bool ReportAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 176public static bool ReportWithDumpAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 189public static bool ReportAndCatchUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 219public static bool ReportAndCatchUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 259private static void Report(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 270public static void ReportNonFatalError(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 275private static void ReportException(Exception exception, ErrorSeverity severity, bool forceDump, ErrorReporterHandler? handler)
src\roslyn\src\Dependencies\Contracts\ExceptionUtilities.cs (3)
21internal static Exception UnexpectedValue(object? o) 30internal static Exception Unreachable([CallerFilePath] string? path = null, [CallerLineNumber] int line = 0) 39internal static bool IsCurrentOperationBeingCancelled(Exception exception, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
278catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, ErrorSeverity.Critical))
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (8)
166catch (Exception e) 181catch (Exception e) 202catch (Exception e) 331catch (Exception e) 346catch (Exception e) 367catch (Exception e) 408private List<Exception> _exceptions; 501public void RecordException(Exception e)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (2)
381Exception? exception = null; 386catch (Exception ex) when ((exception = ex) == null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
294catch (Exception ex) 448catch (Exception e) when (FatalError.ReportAndPropagate(e))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (2)
37public SoftCrashException(string message, Exception innerException) : base(message, innerException) { } 39public SoftCrashException(string message, Exception innerException, CancellationToken token) : base(message, innerException, token) { }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
100=> compilation.GetTypeByMetadataName(typeof(Exception).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (2)
120public static Exception CreateDocumentNotFoundException(DocumentId? documentId) 127public static Exception CreateDocumentNotFoundException(string? debugName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
50catch (Exception)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
62List<Exception>? exceptions = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (2)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions) 21catch (Exception ex) when (FatalError.ReportAndCatch(ex))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
Microsoft.CodeAnalysis.AnalyzerUtilities (58)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
65catch (Exception)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (8)
205catch (Exception) 304catch (Exception e) 328catch (Exception e) when (e is not IOException) 345catch (Exception e) when (e is not IOException) 387catch (Exception e) 405catch (Exception e) 424catch (Exception e) 449catch (Exception e)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
803catch (Exception ex) when (
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
259catch (Exception ex)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (7)
45catch (Exception e) 58catch (Exception e) 78catch (Exception e) 335catch (Exception e) 356catch (Exception e) 685catch (Exception e) 938catch (Exception e)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
179internal static void ThrowInvalidOperationException(ExceptionResource resource, Exception e)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (3)
26internal static void OnFatalException(Exception exception) 63internal static void DumpStackTrace(Exception? exception = null, string? message = null) 74for (Exception? current = exception; current is object; current = current.InnerException)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (14)
24public OperationCanceledIgnoringCallerTokenException(Exception innerException) 32public delegate void ErrorReporterHandler(Exception exception, ErrorSeverity severity, bool forceDump); 38private static Exception? s_reportedException; 46/// cref="ReportNonFatalError(Exception, ErrorSeverity, bool)"/></param> 102public static bool ReportAndPropagate(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 114public static bool ReportAndPropagateUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 143public static bool ReportAndPropagateUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 164public static bool ReportAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 176public static bool ReportWithDumpAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 189public static bool ReportAndCatchUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 219public static bool ReportAndCatchUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 259private static void Report(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 270public static void ReportNonFatalError(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 275private static void ReportException(Exception exception, ErrorSeverity severity, bool forceDump, ErrorReporterHandler? handler)
src\roslyn\src\Dependencies\Contracts\ExceptionUtilities.cs (3)
21internal static Exception UnexpectedValue(object? o) 30internal static Exception Unreachable([CallerFilePath] string? path = null, [CallerLineNumber] int line = 0) 39internal static bool IsCurrentOperationBeingCancelled(Exception exception, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
278catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, ErrorSeverity.Critical))
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (8)
166catch (Exception e) 181catch (Exception e) 202catch (Exception e) 331catch (Exception e) 346catch (Exception e) 367catch (Exception e) 408private List<Exception> _exceptions; 501public void RecordException(Exception e)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (2)
381Exception? exception = null; 386catch (Exception ex) when ((exception = ex) == null)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\ValueContentAnalysis\ValueContentAbstractValue.cs (1)
399catch (Exception)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
4102/// <see cref="INamedTypeSymbol"/> for <see cref="System.Exception"/>
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\StackGuard.cs (1)
25public static bool IsInsufficientExecutionStackException(Exception ex)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
294catch (Exception ex) 448catch (Exception e) when (FatalError.ReportAndPropagate(e))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (2)
37public SoftCrashException(string message, Exception innerException) : base(message, innerException) { } 39public SoftCrashException(string message, Exception innerException, CancellationToken token) : base(message, innerException, token) { }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
100=> compilation.GetTypeByMetadataName(typeof(Exception).FullName!);
Microsoft.CodeAnalysis.CodeStyle (56)
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
67catch (Exception ex)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
65catch (Exception)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (8)
205catch (Exception) 304catch (Exception e) 328catch (Exception e) when (e is not IOException) 345catch (Exception e) when (e is not IOException) 387catch (Exception e) 405catch (Exception e) 424catch (Exception e) 449catch (Exception e)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
803catch (Exception ex) when (
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
259catch (Exception ex)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (7)
45catch (Exception e) 58catch (Exception e) 78catch (Exception e) 335catch (Exception e) 356catch (Exception e) 685catch (Exception e) 938catch (Exception e)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
179internal static void ThrowInvalidOperationException(ExceptionResource resource, Exception e)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (3)
26internal static void OnFatalException(Exception exception) 63internal static void DumpStackTrace(Exception? exception = null, string? message = null) 74for (Exception? current = exception; current is object; current = current.InnerException)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (14)
24public OperationCanceledIgnoringCallerTokenException(Exception innerException) 32public delegate void ErrorReporterHandler(Exception exception, ErrorSeverity severity, bool forceDump); 38private static Exception? s_reportedException; 46/// cref="ReportNonFatalError(Exception, ErrorSeverity, bool)"/></param> 102public static bool ReportAndPropagate(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 114public static bool ReportAndPropagateUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 143public static bool ReportAndPropagateUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 164public static bool ReportAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 176public static bool ReportWithDumpAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 189public static bool ReportAndCatchUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 219public static bool ReportAndCatchUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 259private static void Report(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 270public static void ReportNonFatalError(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 275private static void ReportException(Exception exception, ErrorSeverity severity, bool forceDump, ErrorReporterHandler? handler)
src\roslyn\src\Dependencies\Contracts\ExceptionUtilities.cs (3)
21internal static Exception UnexpectedValue(object? o) 30internal static Exception Unreachable([CallerFilePath] string? path = null, [CallerLineNumber] int line = 0) 39internal static bool IsCurrentOperationBeingCancelled(Exception exception, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
278catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, ErrorSeverity.Critical))
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (8)
166catch (Exception e) 181catch (Exception e) 202catch (Exception e) 331catch (Exception e) 346catch (Exception e) 367catch (Exception e) 408private List<Exception> _exceptions; 501public void RecordException(Exception e)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (2)
381Exception? exception = null; 386catch (Exception ex) when ((exception = ex) == null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
294catch (Exception ex) 448catch (Exception e) when (FatalError.ReportAndPropagate(e))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (2)
37public SoftCrashException(string message, Exception innerException) : base(message, innerException) { } 39public SoftCrashException(string message, Exception innerException, CancellationToken token) : base(message, innerException, token) { }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
100=> compilation.GetTypeByMetadataName(typeof(Exception).FullName!);
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
109catch (Exception ex) when (FatalError.ReportAndCatchUnlessCanceled(ex))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (2)
120public static Exception CreateDocumentNotFoundException(DocumentId? documentId) 127public static Exception CreateDocumentNotFoundException(string? debugName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
50catch (Exception)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
62List<Exception>? exceptions = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (2)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions) 21catch (Exception ex) when (FatalError.ReportAndCatch(ex))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
Microsoft.CodeAnalysis.CSharp (10)
BoundTree\BoundTreeVisitors.cs (1)
167public CancelledByStackGuardException(Exception inner, BoundNode node)
CommandLine\CSharpCompiler.cs (1)
141catch (Exception ex)
Compilation\SyntaxAndDeclarationManager.cs (1)
263catch (Exception e)
Compiler\ClsComplianceChecker.cs (1)
220catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e))
Compiler\DocumentationCommentCompiler.cs (1)
109catch (Exception e)
Compiler\MethodCompiler.cs (2)
402catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e)) 448catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e))
Symbols\Metadata\PE\MetadataDecoder.cs (1)
146catch (Exception e) when (FatalError.ReportAndPropagate(e)) // Trying to get more useful Watson dumps.
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1277catch (Exception ex) when (ex is BadImageFormatException or UnsupportedSignatureContent)
Symbols\Synthesized\RefKindVector.cs (1)
120catch (Exception)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
133catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.General))
Microsoft.CodeAnalysis.CSharp.Features (20)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (1)
103catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e))
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
83catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (1)
96catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
97catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.ItemGetter.cs (1)
173catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (1)
58catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (1)
90catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (1)
86catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
111catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
92catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (1)
56catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\TupleNameCompletionProvider.cs (1)
66catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
188catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken, ErrorSeverity.General))
Debugging\CSharpBreakpointResolutionService.cs (1)
48catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken))
Debugging\CSharpProximityExpressionsService.cs (1)
97catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken))
Debugging\DataTipInfoGetter.cs (1)
81catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken))
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
216catchClause.Declaration.Type is IdentifierNameSyntax { Identifier.ValueText: nameof(Exception) }) 224Right: IdentifierNameSyntax { Identifier.ValueText: nameof(Exception) },
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
301catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e))
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
815internal delegate void ErrorReporter(SourceText text, string path, TextSpan textSpan, string message, Exception? innerException = null);
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\ObjectFormatter\CSharpObjectFormatter.cs (1)
24public override string FormatException(Exception e) => s_impl.FormatException(e);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Rename\CSharpRenameRewriterLanguageService.cs (2)
426catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e)) 921catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
133catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.General))
Microsoft.CodeAnalysis.Extensions.Package (30)
Compilation\CompilationExtensions.cs (1)
100=> compilation.GetTypeByMetadataName(typeof(Exception).FullName!);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
259catch (Exception ex)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (7)
45catch (Exception e) 58catch (Exception e) 78catch (Exception e) 335catch (Exception e) 356catch (Exception e) 685catch (Exception e) 938catch (Exception e)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
179internal static void ThrowInvalidOperationException(ExceptionResource resource, Exception e)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (3)
26internal static void OnFatalException(Exception exception) 63internal static void DumpStackTrace(Exception? exception = null, string? message = null) 74for (Exception? current = exception; current is object; current = current.InnerException)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (14)
24public OperationCanceledIgnoringCallerTokenException(Exception innerException) 32public delegate void ErrorReporterHandler(Exception exception, ErrorSeverity severity, bool forceDump); 38private static Exception? s_reportedException; 46/// cref="ReportNonFatalError(Exception, ErrorSeverity, bool)"/></param> 102public static bool ReportAndPropagate(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 114public static bool ReportAndPropagateUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 143public static bool ReportAndPropagateUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 164public static bool ReportAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 176public static bool ReportWithDumpAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 189public static bool ReportAndCatchUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 219public static bool ReportAndCatchUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 259private static void Report(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 270public static void ReportNonFatalError(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 275private static void ReportException(Exception exception, ErrorSeverity severity, bool forceDump, ErrorReporterHandler? handler)
src\roslyn\src\Dependencies\Contracts\ExceptionUtilities.cs (3)
21internal static Exception UnexpectedValue(object? o) 30internal static Exception Unreachable([CallerFilePath] string? path = null, [CallerLineNumber] int line = 0) 39internal static bool IsCurrentOperationBeingCancelled(Exception exception, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Options\OmniSharpSolutionAnalyzerConfigOptionsUpdater.cs (1)
67catch (Exception e) when (FatalError.ReportAndPropagate(e, ErrorSeverity.Diagnostic))
Microsoft.CodeAnalysis.Features (107)
CodeFixes\Service\CodeFixService.cs (2)
404catch (Exception ex) 878catch (Exception e) when (e is not OperationCanceledException)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
77catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (1)
55catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
362catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Completion\Providers\ImportCompletionProvider\AbstractTypeImportCompletionService.cs (1)
78catch (Exception ex) when (ex is BadImageFormatException or IOException)
Completion\Providers\Scripting\AbstractDirectivePathCompletionProvider.cs (1)
60catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, ErrorSeverity.General))
Copilot\ICopilotChangeAnalysisService.cs (1)
267catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken))
Debugging\AbstractBreakpointResolver.cs (2)
116catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 152catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken))
Debugging\DebugInformationReaderProvider.cs (1)
120/// <exception cref="Exception">Error reading debug information from <paramref name="stream"/>.</exception>
DesignerAttribute\DesignerAttributeDiscoveryService.cs (1)
91catch (Exception ex) when (ex is BadImageFormatException or IOException)
Diagnostics\Service\DiagnosticAnalyzerService_ComputeDiagnosticAnalysisResults.cs (3)
44catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken)) 111catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken)) 157catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Diagnostics\Service\DiagnosticAnalyzerService_CoreAnalyze.cs (1)
96catch (Exception ex) when (FatalError.ReportAndCatchUnlessCanceled(ex, cancellationToken))
Diagnostics\Service\DiagnosticAnalyzerService_GetDiagnosticsForSpan.cs (1)
150catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (3)
28internal static Diagnostic CreateAnalyzerExceptionDiagnostic(DiagnosticAnalyzer analyzer, Exception e) 107catch (Exception e) when (!IsCanceled(e, cancellationToken)) 120private static bool IsCanceled(Exception ex, CancellationToken cancellationToken)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (3)
696catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 1457catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 3686catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
EditAndContinue\CommittedSolution.cs (3)
418catch (Exception e) 466catch (Exception e) 543catch (Exception e)
EditAndContinue\DebuggingSession.cs (6)
290catch (Exception e) when (e is FileNotFoundException or DirectoryNotFoundException) 294catch (Exception e) 422catch (Exception e) 518catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 840catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken)) 917catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
EditAndContinue\EditAndContinueDebugInfoReader.cs (3)
41/// <exception cref="Exception">Error reading debug information from the PDB.</exception> 83catch (Exception e) when (FatalError.ReportAndCatch(e)) // likely a bug in the compiler/debugger 189catch (Exception e)
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (3)
51catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken)) 96catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken)) 217catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
EditAndContinue\EditAndContinueService.cs (1)
174catch (Exception ex) when (FatalError.ReportAndPropagate(ex))
EditAndContinue\EditSession.cs (5)
234catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 248catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 853catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken)) 1589catch (Exception e) when (LogException(e) && FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken)) 1598bool LogException(Exception e)
EditAndContinue\Remote\ActiveStatementSpanProviderCallback.cs (1)
26catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken))
EditAndContinue\Remote\DebuggingSessionProxy.cs (1)
79catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken))
EditAndContinue\Remote\RemoteEditAndContinueServiceProxy.cs (5)
62catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 74catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 86catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 98catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 110catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken))
EditAndContinue\TraceLog.cs (5)
47catch (Exception e) 86catch (Exception e) 101catch (Exception e) 120catch (Exception e) 157private void AppendFileLoggingErrorInMemory(string? path, Exception e)
Emit\CompilationOutputFilesWithImplicitPdbPath.cs (2)
91catch (Exception e) when (e is FileNotFoundException or DirectoryNotFoundException) 95catch (Exception e) when (e is not IOException)
Emit\CompilationOutputs.cs (2)
44/// <exception cref="Exception">Error while reading assembly data.</exception> 93/// <exception cref="Exception">Error while reading assembly data.</exception>
Extensions\ExtensionFolder.cs (2)
31private readonly AsyncLazy<(IExtensionAssemblyLoader? assemblyLoader, Exception? extensionException)> _lazyAssemblyLoader; 102catch (Exception ex) when (ex is not OperationCanceledException)
Extensions\ExtensionMessageHandlerService.cs (2)
26Exception? ExtensionException); 242catch (Exception ex) when (ex is not OperationCanceledException)
Extensions\IExtensionAssemblyLoaderProvider.cs (3)
20(IExtensionAssemblyLoader? assemblyLoader, Exception? extensionException) CreateNewShadowCopyLoader( 48public (IExtensionAssemblyLoader? assemblyLoader, Exception? extensionException) CreateNewShadowCopyLoader( 83catch (Exception ex) when (ex is not OperationCanceledException)
Extensions\IExtensionMessageHandlerService.cs (2)
20[property: DataMember(Order = 2)] Exception? ExtensionException); 36[property: DataMember(Order = 2)] Exception? ExtensionException);
ExternalAccess\UnitTesting\SolutionCrawler\AbstractUnitTestingDocumentDifferenceService.cs (1)
53catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingIdleProcessor.cs (1)
146catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e))
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingIncrementalAnalyzerProcessor.cs (2)
206catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken)) 227catch (Exception e) when (FatalError.ReportAndPropagate(e))
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingLowPriorityProcessor.cs (2)
60catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e)) 152catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (4)
142catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e)) 227catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken)) 281catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken)) 311catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e))
FindUsages\IRemoteFindUsagesService.cs (2)
126catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, cancellationToken)) 138catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, cancellationToken))
Formatting\AbstractNewDocumentFormattingService.cs (1)
59catch (Exception ex) when (FatalError.ReportAndCatchUnlessCanceled(ex, cancellationToken, ErrorSeverity.General))
Intents\IntentDataProvider.cs (1)
35catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.General))
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (2)
140catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken, ErrorSeverity.General)) 263catch (Exception e) when (FatalError.ReportAndCatch(e, ErrorSeverity.Diagnostic))
MetadataAsSource\MetadataAsSourceFileService.cs (3)
142catch (Exception) 156catch (Exception) 236catch (Exception ex) when (FatalError.ReportAndCatch(ex))
NavigateTo\IRemoteNavigateToSearchService.cs (2)
61catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex)) 75catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex))
PdbSourceDocument\ImplementationAssemblyLookupService.cs (1)
99catch (Exception ex) when (IOUtilities.IsNormalIOException(ex))
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (1)
95catch (Exception ex) when (IOUtilities.IsNormalIOException(ex))
SemanticSearch\IRemoteSemanticSearchService.cs (8)
80catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 91catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 102catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 113catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 124catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 136catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 147catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken)) 158catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken))
SolutionCrawler\AbstractDocumentDifferenceService.cs (1)
98catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
67catch (Exception ex)
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
109catch (Exception ex) when (FatalError.ReportAndCatchUnlessCanceled(ex))
src\roslyn\src\Compilers\Core\AnalyzerDriver\AnalyzerExceptionDescriptionBuilder.cs (2)
18public static string CreateDiagnosticDescription(this Exception exception) 34private static string GetExceptionMessage(Exception exception)
Structure\Syntax\AbstractBlockStructureProvider.cs (1)
69catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e))
Wrapping\AbstractCodeActionComputer.cs (1)
311catch (Exception ex) when (FatalError.ReportAndCatchUnlessCanceled(ex, cancellationToken, ErrorSeverity.Diagnostic))
Microsoft.CodeAnalysis.ResxSourceGenerator (56)
AbstractResxGenerator.cs (1)
248catch (Exception ex)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
65catch (Exception)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (8)
205catch (Exception) 304catch (Exception e) 328catch (Exception e) when (e is not IOException) 345catch (Exception e) when (e is not IOException) 387catch (Exception e) 405catch (Exception e) 424catch (Exception e) 449catch (Exception e)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
803catch (Exception ex) when (
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
259catch (Exception ex)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (7)
45catch (Exception e) 58catch (Exception e) 78catch (Exception e) 335catch (Exception e) 356catch (Exception e) 685catch (Exception e) 938catch (Exception e)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
179internal static void ThrowInvalidOperationException(ExceptionResource resource, Exception e)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (3)
26internal static void OnFatalException(Exception exception) 63internal static void DumpStackTrace(Exception? exception = null, string? message = null) 74for (Exception? current = exception; current is object; current = current.InnerException)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (14)
24public OperationCanceledIgnoringCallerTokenException(Exception innerException) 32public delegate void ErrorReporterHandler(Exception exception, ErrorSeverity severity, bool forceDump); 38private static Exception? s_reportedException; 46/// cref="ReportNonFatalError(Exception, ErrorSeverity, bool)"/></param> 102public static bool ReportAndPropagate(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 114public static bool ReportAndPropagateUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 143public static bool ReportAndPropagateUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 164public static bool ReportAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 176public static bool ReportWithDumpAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 189public static bool ReportAndCatchUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 219public static bool ReportAndCatchUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 259private static void Report(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 270public static void ReportNonFatalError(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 275private static void ReportException(Exception exception, ErrorSeverity severity, bool forceDump, ErrorReporterHandler? handler)
src\roslyn\src\Dependencies\Contracts\ExceptionUtilities.cs (3)
21internal static Exception UnexpectedValue(object? o) 30internal static Exception Unreachable([CallerFilePath] string? path = null, [CallerLineNumber] int line = 0) 39internal static bool IsCurrentOperationBeingCancelled(Exception exception, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
278catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, ErrorSeverity.Critical))
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (8)
166catch (Exception e) 181catch (Exception e) 202catch (Exception e) 331catch (Exception e) 346catch (Exception e) 367catch (Exception e) 408private List<Exception> _exceptions; 501public void RecordException(Exception e)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (2)
381Exception? exception = null; 386catch (Exception ex) when ((exception = ex) == null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
294catch (Exception ex) 448catch (Exception e) when (FatalError.ReportAndPropagate(e))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (2)
37public SoftCrashException(string message, Exception innerException) : base(message, innerException) { } 39public SoftCrashException(string message, Exception innerException, CancellationToken token) : base(message, innerException, token) { }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
100=> compilation.GetTypeByMetadataName(typeof(Exception).FullName!);
Microsoft.CodeAnalysis.Scripting (37)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (5)
80catch (Exception e) 96catch (Exception e) 229/// <exception cref="IOException">Error reading file <paramref name="fullPath"/>. See <see cref="Exception.InnerException"/> for details.</exception> 287/// <exception cref="IOException">Error reading file <paramref name="fullPath"/>. See <see cref="Exception.InnerException"/> for details.</exception> 620catch (Exception e) when (fileMayNotExist && e is FileNotFoundException or DirectoryNotFoundException)
Hosting\CommandLine\CommandLineRunner.cs (2)
215catch (Exception e) 342private void DisplayException(Exception e)
Hosting\ObjectFormatter\CommonObjectFormatter.cs (1)
61public override string FormatException(Exception e)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (7)
419Exception exception; 513private void FormatException(Builder result, Exception exception) 553catch (Exception) 606catch (Exception e) 632catch (Exception e) 750catch (Exception e) 820Exception exception;
Hosting\ObjectFormatter\ObjectFormatter.cs (1)
20public abstract string FormatException(Exception e);
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (2)
124catch (Exception) 238internal static object GetMemberValue(MemberInfo member, object obj, out Exception exception)
Script.cs (10)
194public Task<ScriptState> RunAsync(object globals = null, Func<Exception, bool> catchException = null, CancellationToken cancellationToken = default(CancellationToken)) 197internal abstract Task<ScriptState> CommonRunAsync(object globals, Func<Exception, bool> catchException, CancellationToken cancellationToken); 222public Task<ScriptState> RunFromAsync(ScriptState previousState, Func<Exception, bool> catchException = null, CancellationToken cancellationToken = default(CancellationToken)) 225internal abstract Task<ScriptState> CommonRunFromAsync(ScriptState previousState, Func<Exception, bool> catchException, CancellationToken cancellationToken); 380internal override Task<ScriptState> CommonRunAsync(object globals, Func<Exception, bool> catchException, CancellationToken cancellationToken) 383internal override Task<ScriptState> CommonRunFromAsync(ScriptState previousState, Func<Exception, bool> catchException, CancellationToken cancellationToken) 487public new Task<ScriptState<T>> RunAsync(object globals = null, Func<Exception, bool> catchException = null, CancellationToken cancellationToken = default(CancellationToken)) 547public new Task<ScriptState<T>> RunFromAsync(ScriptState previousState, Func<Exception, bool> catchException = null, CancellationToken cancellationToken = default(CancellationToken)) 579Func<Exception, bool> catchExceptionOpt, 582var exceptionOpt = (catchExceptionOpt != null) ? new StrongBox<Exception>() : null;
ScriptExecutionState.cs (3)
70StrongBox<Exception> exceptionHolderOpt, 71Func<Exception, bool> catchExceptionOpt, 123catch (Exception exception) when (catchExceptionOpt?.Invoke(exception) == true)
ScriptState.cs (5)
35public Exception Exception { get; } 42internal ScriptState(ScriptExecutionState executionState, Script script, Exception exceptionOpt) 156public Task<ScriptState<object>> ContinueWithAsync(string code, ScriptOptions options = null, Func<Exception, bool> catchException = null, CancellationToken cancellationToken = default(CancellationToken)) 180public Task<ScriptState<TResult>> ContinueWithAsync<TResult>(string code, ScriptOptions options = null, Func<Exception, bool> catchException = null, CancellationToken cancellationToken = default(CancellationToken)) 275internal ScriptState(ScriptExecutionState executionState, Script script, T value, Exception exceptionOpt)
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (1)
152Exception e = Marshal.GetExceptionForHR(hr);
Microsoft.CodeAnalysis.VisualBasic (2)
Compilation\MethodCompiler.vb (2)
513Catch e As Exception When FatalError.ReportAndPropagateUnlessCanceled(e) 546Catch e As Exception When FatalError.ReportAndPropagateUnlessCanceled(e)
Microsoft.CodeAnalysis.Workspaces (138)
Classification\SyntaxClassification\AbstractSyntaxClassificationService.cs (1)
41catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Diagnostics\DiagnosticData.cs (1)
194catch (Exception e) when (FatalError.ReportWithDumpAndCatch(e, ErrorSeverity.Critical))
ErrorReporting\IErrorReportingService.cs (3)
24void ShowGlobalErrorInfo(string message, TelemetryFeatureName featureName, Exception? exception, params InfoBarUI[] items); 26void ShowDetailedErrorInfo(Exception exception); 28void ShowFeatureNotAvailableErrorInfo(string message, TelemetryFeatureName featureName, Exception? exception);
ExtensionManager\AbstractExtensionManager.cs (2)
16protected abstract void HandleNonCancellationException(object provider, Exception exception); 33public bool HandleException(object provider, Exception exception)
ExtensionManager\IExtensionManager.cs (1)
18bool HandleException(object provider, Exception exception);
ExtensionManager\IExtensionManagerExtensions.cs (4)
25catch (Exception e) when (extensionManager.HandleException(extension, e)) 41catch (Exception e) when (extensionManager.HandleException(extension, e)) 61catch (Exception e) when (extensionManager.HandleException(extension, e)) 82catch (Exception e) when (extensionManager.HandleException(extension, e))
ExtensionManager\ServicesLayerExtensionManager.cs (1)
17protected override void HandleNonCancellationException(object provider, Exception exception)
ExternalAccess\UnitTesting\Api\UnitTestingFatalErrorAccessor.cs (2)
12public static bool ReportWithoutCrash(this Exception e) 15public static bool ReportWithoutCrashUnlessCanceled(this Exception e)
FindSymbols\FindReferences\StreamingFindReferencesProgress.cs (1)
46catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, cancellationToken))
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (2)
84catch (Exception e) when (IOUtilities.IsNormalIOException(e)) 178catch (Exception e) when (IOUtilities.IsNormalIOException(e))
FindSymbols\StreamingProgressCollector.cs (1)
63catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, cancellationToken))
FindSymbols\SymbolFinder_Hierarchy.cs (1)
192catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, cancellationToken, ErrorSeverity.Diagnostic))
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (2)
76catch (Exception e) when (e is BadImageFormatException or IOException) 88catch (Exception e) when (e is BadImageFormatException or IOException)
FindSymbols\SyntaxTree\SyntaxTreeIndex.ContextInfo.cs (1)
219catch (Exception)
FindSymbols\SyntaxTree\SyntaxTreeIndex.IdentifierInfo.cs (1)
55catch (Exception)
FindSymbols\SyntaxTree\SyntaxTreeIndex.LiteralInfo.cs (1)
39catch (Exception)
FindSymbols\TopLevelSyntaxTree\NavigateToSearchIndex.NavigateToSearchInfo.cs (1)
860catch (Exception)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.DeclarationInfo.cs (1)
28catch (Exception)
FindSymbols\TopLevelSyntaxTree\TopLevelSyntaxTreeIndex.ExtensionMethodInfo.cs (1)
71catch (Exception)
Log\IErrorLogger.cs (1)
12void LogException(object source, Exception exception);
Log\WorkspaceErrorLogger.cs (2)
21public void LogException(object source, Exception exception) 24private static string ToLogFormat(Exception exception)
Remote\IRemoteKeepAliveService.cs (2)
117catch (Exception ex) when (FatalError.ReportAndCatchUnlessCanceled(ex)) 213catch (Exception ex) when (FatalError.ReportAndCatchUnlessCanceled(ex))
Remote\RemoteArguments.cs (1)
118catch (Exception ex) when (FatalError.ReportAndCatch(ex))
Rename\ConflictEngine\ConflictResolver.cs (1)
310catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Rename\ConflictEngine\ConflictResolver.Session.cs (7)
255catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 467catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 625catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 670catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 705catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 749catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 836catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e))
Serialization\SerializerService_Reference.cs (1)
256catch (Exception ex) when (ex is BadImageFormatException or
Shared\Extensions\ISymbolExtensions.cs (1)
253catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken))
Shared\Utilities\DocumentationComment.cs (1)
135catch (Exception)
Shared\Utilities\IOUtilities.cs (3)
31catch (Exception e) when (IsNormalIOException(e)) 44catch (Exception e) when (IsNormalIOException(e)) 51public static bool IsNormalIOException(Exception e)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
236catch (Exception ex)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
243catch (Exception ex)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
65catch (Exception)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (8)
205catch (Exception) 304catch (Exception e) 328catch (Exception e) when (e is not IOException) 345catch (Exception e) when (e is not IOException) 387catch (Exception e) 405catch (Exception e) 424catch (Exception e) 449catch (Exception e)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
803catch (Exception ex) when (
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
259catch (Exception ex)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (7)
45catch (Exception e) 58catch (Exception e) 78catch (Exception e) 335catch (Exception e) 356catch (Exception e) 685catch (Exception e) 938catch (Exception e)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
179internal static void ThrowInvalidOperationException(ExceptionResource resource, Exception e)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (3)
26internal static void OnFatalException(Exception exception) 63internal static void DumpStackTrace(Exception? exception = null, string? message = null) 74for (Exception? current = exception; current is object; current = current.InnerException)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (14)
24public OperationCanceledIgnoringCallerTokenException(Exception innerException) 32public delegate void ErrorReporterHandler(Exception exception, ErrorSeverity severity, bool forceDump); 38private static Exception? s_reportedException; 46/// cref="ReportNonFatalError(Exception, ErrorSeverity, bool)"/></param> 102public static bool ReportAndPropagate(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 114public static bool ReportAndPropagateUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 143public static bool ReportAndPropagateUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 164public static bool ReportAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 176public static bool ReportWithDumpAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 189public static bool ReportAndCatchUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 219public static bool ReportAndCatchUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 259private static void Report(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 270public static void ReportNonFatalError(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 275private static void ReportException(Exception exception, ErrorSeverity severity, bool forceDump, ErrorReporterHandler? handler)
src\roslyn\src\Dependencies\Contracts\ExceptionUtilities.cs (3)
21internal static Exception UnexpectedValue(object? o) 30internal static Exception Unreachable([CallerFilePath] string? path = null, [CallerLineNumber] int line = 0) 39internal static bool IsCurrentOperationBeingCancelled(Exception exception, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
278catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, ErrorSeverity.Critical))
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (2)
381Exception? exception = null; 386catch (Exception ex) when ((exception = ex) == null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
294catch (Exception ex) 448catch (Exception e) when (FatalError.ReportAndPropagate(e))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (2)
37public SoftCrashException(string message, Exception innerException) : base(message, innerException) { } 39public SoftCrashException(string message, Exception innerException, CancellationToken token) : base(message, innerException, token) { }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
100=> compilation.GetTypeByMetadataName(typeof(Exception).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (2)
120public static Exception CreateDocumentNotFoundException(DocumentId? documentId) 127public static Exception CreateDocumentNotFoundException(string? debugName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
50catch (Exception)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
62List<Exception>? exceptions = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (2)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions) 21catch (Exception ex) when (FatalError.ReportAndCatch(ex))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
Storage\AbstractPersistentStorageService.cs (2)
94catch (Exception e) when (Recover(e)) 99bool Recover(Exception ex)
Storage\StorageDatabaseLogger.cs (4)
19private Exception? _reportedException; 23private readonly ConcurrentDictionary<Type, Exception> _set = new(concurrencyLevel: 2, capacity: 10); 25internal static void LogException(Exception ex) 28private void LogExceptionWorker(Exception ex)
Utilities\Documentation\XmlDocumentationProvider.cs (1)
86catch (Exception)
Workspace\CommandLineProject.cs (1)
94catch (Exception e)
Workspace\Host\PersistentStorage\IPersistentStorageFaultInjectionService.cs (1)
12void OnFatalError(Exception ex);
Workspace\ProjectSystem\IRuleSetFile.cs (1)
14Exception GetException();
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
1021catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.General))
Workspace\Solution\Document.cs (2)
374catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 510catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Workspace\Solution\DocumentState.cs (2)
206catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 228catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
Workspace\Solution\ProjectState_Checksum.cs (1)
76catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
Workspace\Solution\Solution.cs (1)
703catch (Exception ex) when (FatalError.ReportAndPropagate(ex))
Workspace\Solution\SolutionCompilationState.cs (3)
1332catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 1352catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 1731catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (6)
271catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 354catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 399catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 469catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 999catch (Exception e) when (FatalError.ReportWithDumpAndCatch(e, ErrorSeverity.Critical)) 1020public CompilationTrackerValidationException(string message, Exception inner) : base(message, inner) { }
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (2)
93catch (Exception ex) when (FatalError.ReportAndCatch(ex)) 104catch (Exception ex) when (FatalError.ReportAndCatch(ex))
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
145catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Workspace\Solution\SolutionState_Checksum.cs (1)
149catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Workspace\Solution\TextDocumentState_Checksum.cs (1)
43catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Workspace\Workspace.cs (1)
520catch (Exception e) when (FatalError.ReportAndPropagate(e, ErrorSeverity.Critical))
Workspace\Workspace_Editor.cs (1)
707catch (Exception e) when (FatalError.ReportAndPropagate(e, ErrorSeverity.General))
Workspace\WorkspaceEventMap.cs (1)
106catch (Exception e) when (FatalError.ReportAndCatch(e))
Microsoft.CodeAnalysis.Workspaces.MSBuild (10)
MSBuild\BuildHostProcessManager.cs (2)
130catch (Exception e) 522catch (Exception e)
MSBuild\DiagnosticReporter.cs (1)
23public void Report(DiagnosticReportingMode mode, string message, Func<string, Exception>? createException = null)
MSBuild\DiagnosticReporterLoggerProvider.cs (2)
40public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
MSBuild\PathResolver.cs (2)
27catch (Exception) 52catch (Exception)
Rpc\RpcClient.cs (3)
54Exception? processingException = null; 95catch (Exception ex) 103catch (Exception ex)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (16)
Build\ProjectBuildManager.cs (4)
133catch (Exception e) 169catch (Exception e) 185catch (Exception e) 335catch (Exception e)
MSBuild\Logging\DiagnosticLog.cs (1)
39public void Add(Exception exception, string projectFilePath, DiagnosticLogItemKind kind = DiagnosticLogItemKind.Error)
Rpc\RpcServer.cs (2)
82catch (Exception e) 154catch (Exception e)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (8)
205catch (Exception) 304catch (Exception e) 328catch (Exception e) when (e is not IOException) 345catch (Exception e) when (e is not IOException) 387catch (Exception e) 405catch (Exception e) 424catch (Exception e) 449catch (Exception e)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
803catch (Exception ex) when (
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (20)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (3)
26internal static void OnFatalException(Exception exception) 63internal static void DumpStackTrace(Exception? exception = null, string? message = null) 74for (Exception? current = exception; current is object; current = current.InnerException)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (14)
24public OperationCanceledIgnoringCallerTokenException(Exception innerException) 32public delegate void ErrorReporterHandler(Exception exception, ErrorSeverity severity, bool forceDump); 38private static Exception? s_reportedException; 46/// cref="ReportNonFatalError(Exception, ErrorSeverity, bool)"/></param> 102public static bool ReportAndPropagate(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 114public static bool ReportAndPropagateUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 143public static bool ReportAndPropagateUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 164public static bool ReportAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 176public static bool ReportWithDumpAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 189public static bool ReportAndCatchUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 219public static bool ReportAndCatchUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 259private static void Report(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 270public static void ReportNonFatalError(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 275private static void ReportException(Exception exception, ErrorSeverity severity, bool forceDump, ErrorReporterHandler? handler)
src\roslyn\src\Dependencies\Contracts\ExceptionUtilities.cs (3)
21internal static Exception UnexpectedValue(object? o) 30internal static Exception Unreachable([CallerFilePath] string? path = null, [CallerLineNumber] int line = 0) 39internal static bool IsCurrentOperationBeingCancelled(Exception exception, CancellationToken cancellationToken)
Microsoft.CSharp (30)
Microsoft\CSharp\RuntimeBinder\ComInterop\Errors.cs (13)
16internal static Exception SetComObjectDataFailed() 24internal static Exception UnexpectedVarEnum(object p0) 32internal static Exception DispBadParamCount(object p0) 40internal static Exception DispMemberNotFound(object p0) 48internal static Exception DispNoNamedArgs(object p0) 56internal static Exception DispOverflow(object p0) 64internal static Exception DispTypeMismatch(object p0, object p1) 72internal static Exception DispParamNotOptional(object p0) 80internal static Exception CannotRetrieveTypeInformation() 88internal static Exception GetIDsOfNamesInvalid(object p0) 96internal static Exception UnsupportedHandlerType() 104internal static Exception CouldNotGetDispId(object p0, object p1) 112internal static Exception AmbiguousConversion(object p0, object p1)
Microsoft\CSharp\RuntimeBinder\ComInterop\ExcepInfo.cs (3)
50internal Exception GetException() 65Exception exception = Marshal.GetExceptionForHR(errorCode) ?? new COMException(null, errorCode); 82exception = (Exception)ctor.Invoke(new object[] { message });
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchComObject.cs (1)
305catch (Exception ex)
Microsoft\CSharp\RuntimeBinder\DynamicDebuggerProxy.cs (1)
47System.Linq.Expressions.Expression.Constant(new DynamicBindingFailedException(), typeof(Exception)), typeof(object)), System.Dynamic.BindingRestrictions.Combine(v));
Microsoft\CSharp\RuntimeBinder\Error.cs (9)
10internal static Exception InternalCompilerError() 15internal static Exception BindPropertyFailedMethodGroup(object p0) 20internal static Exception BindPropertyFailedEvent(object p0) 25internal static Exception BindInvokeFailedNonDelegate() 30internal static Exception BindStaticRequiresType(string paramName) => 33internal static Exception NullReferenceOnMemberException() 38internal static Exception BindCallToConditionalMethod(object p0) 43internal static Exception BindToVoidMethodButExpectResult() 48internal static Exception DynamicArgumentNeedsValue(string paramName) =>
Microsoft\CSharp\RuntimeBinder\RuntimeBinderException.cs (1)
40public RuntimeBinderException(string? message, Exception? innerException)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderInternalCompilerException.cs (1)
40public RuntimeBinderInternalCompilerException(string? message, Exception? innerException)
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (1)
595public Exception ReportErrors()
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumn.cs (3)
762catch (Exception) 770catch (Exception) 778catch (Exception)
Microsoft.Data.Analysis.Tests (4)
TextFieldParserTests.cs (4)
193Assert.Throws<Exception>(() => parser.ReadFields()); 318Assert.Throws<Exception>(() => parser.ReadFields()); 367Assert.Throws<Exception>(() => parser.ReadFields()); 383Assert.Throws<Exception>(() => parser.ReadFields());
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
VirtualReadException.cs (1)
35public VirtualReadException(string message, Exception innerException) : base(message, innerException)
Microsoft.Diagnostics.DataContractReader.Contracts (4)
Contracts\StackWalk\GC\GcScanner.cs (1)
375catch (System.Exception)
Contracts\StackWalk\StackWalk_1.cs (1)
262catch (System.Exception ex)
RuntimeTypeSystemHelpers\MethodValidation.cs (1)
232catch (System.Exception)
RuntimeTypeSystemHelpers\TypeValidation.cs (1)
134catch (System.Exception)
Microsoft.Diagnostics.DataContractReader.Legacy (972)
_generated\16\Microsoft.Diagnostics.DataContractReader.Legacy.IDacDbiInterface.cs (130)
322catch (global::System.Exception __exception) 359catch (global::System.Exception __exception) 396catch (global::System.Exception __exception) 433catch (global::System.Exception __exception) 470catch (global::System.Exception __exception) 507catch (global::System.Exception __exception) 544catch (global::System.Exception __exception) 581catch (global::System.Exception __exception) 618catch (global::System.Exception __exception) 655catch (global::System.Exception __exception) 692catch (global::System.Exception __exception) 729catch (global::System.Exception __exception) 766catch (global::System.Exception __exception) 803catch (global::System.Exception __exception) 840catch (global::System.Exception __exception) 877catch (global::System.Exception __exception) 914catch (global::System.Exception __exception) 951catch (global::System.Exception __exception) 988catch (global::System.Exception __exception) 1025catch (global::System.Exception __exception) 1062catch (global::System.Exception __exception) 1099catch (global::System.Exception __exception) 1136catch (global::System.Exception __exception) 1173catch (global::System.Exception __exception) 1210catch (global::System.Exception __exception) 1247catch (global::System.Exception __exception) 1284catch (global::System.Exception __exception) 1321catch (global::System.Exception __exception) 1358catch (global::System.Exception __exception) 1395catch (global::System.Exception __exception) 1432catch (global::System.Exception __exception) 1469catch (global::System.Exception __exception) 1506catch (global::System.Exception __exception) 1543catch (global::System.Exception __exception) 1580catch (global::System.Exception __exception) 1617catch (global::System.Exception __exception) 1654catch (global::System.Exception __exception) 1691catch (global::System.Exception __exception) 1728catch (global::System.Exception __exception) 1765catch (global::System.Exception __exception) 1802catch (global::System.Exception __exception) 1839catch (global::System.Exception __exception) 1876catch (global::System.Exception __exception) 1913catch (global::System.Exception __exception) 1950catch (global::System.Exception __exception) 1987catch (global::System.Exception __exception) 2024catch (global::System.Exception __exception) 2061catch (global::System.Exception __exception) 2098catch (global::System.Exception __exception) 2135catch (global::System.Exception __exception) 2172catch (global::System.Exception __exception) 2209catch (global::System.Exception __exception) 2246catch (global::System.Exception __exception) 2283catch (global::System.Exception __exception) 2320catch (global::System.Exception __exception) 2357catch (global::System.Exception __exception) 2394catch (global::System.Exception __exception) 2431catch (global::System.Exception __exception) 2468catch (global::System.Exception __exception) 2505catch (global::System.Exception __exception) 2542catch (global::System.Exception __exception) 2579catch (global::System.Exception __exception) 2616catch (global::System.Exception __exception) 2653catch (global::System.Exception __exception) 2690catch (global::System.Exception __exception) 2727catch (global::System.Exception __exception) 2764catch (global::System.Exception __exception) 2801catch (global::System.Exception __exception) 2838catch (global::System.Exception __exception) 2875catch (global::System.Exception __exception) 2912catch (global::System.Exception __exception) 2949catch (global::System.Exception __exception) 2986catch (global::System.Exception __exception) 3023catch (global::System.Exception __exception) 3060catch (global::System.Exception __exception) 3097catch (global::System.Exception __exception) 3134catch (global::System.Exception __exception) 3171catch (global::System.Exception __exception) 3208catch (global::System.Exception __exception) 3245catch (global::System.Exception __exception) 3282catch (global::System.Exception __exception) 3319catch (global::System.Exception __exception) 3356catch (global::System.Exception __exception) 3393catch (global::System.Exception __exception) 3430catch (global::System.Exception __exception) 3467catch (global::System.Exception __exception) 3504catch (global::System.Exception __exception) 3541catch (global::System.Exception __exception) 3578catch (global::System.Exception __exception) 3615catch (global::System.Exception __exception) 3652catch (global::System.Exception __exception) 3689catch (global::System.Exception __exception) 3726catch (global::System.Exception __exception) 3763catch (global::System.Exception __exception) 3800catch (global::System.Exception __exception) 3837catch (global::System.Exception __exception) 3874catch (global::System.Exception __exception) 3911catch (global::System.Exception __exception) 3948catch (global::System.Exception __exception) 3985catch (global::System.Exception __exception) 4022catch (global::System.Exception __exception) 4059catch (global::System.Exception __exception) 4096catch (global::System.Exception __exception) 4133catch (global::System.Exception __exception) 4170catch (global::System.Exception __exception) 4207catch (global::System.Exception __exception) 4244catch (global::System.Exception __exception) 4281catch (global::System.Exception __exception) 4318catch (global::System.Exception __exception) 4355catch (global::System.Exception __exception) 4392catch (global::System.Exception __exception) 4429catch (global::System.Exception __exception) 4466catch (global::System.Exception __exception) 4503catch (global::System.Exception __exception) 4540catch (global::System.Exception __exception) 4577catch (global::System.Exception __exception) 4614catch (global::System.Exception __exception) 4651catch (global::System.Exception __exception) 4688catch (global::System.Exception __exception) 4725catch (global::System.Exception __exception) 4762catch (global::System.Exception __exception) 4799catch (global::System.Exception __exception) 4836catch (global::System.Exception __exception) 4873catch (global::System.Exception __exception) 4910catch (global::System.Exception __exception) 4947catch (global::System.Exception __exception) 4984catch (global::System.Exception __exception) 5021catch (global::System.Exception __exception) 5058catch (global::System.Exception __exception) 5095catch (global::System.Exception __exception)
_generated\17\Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataEnumMemoryRegions.cs (1)
64catch (global::System.Exception __exception)
_generated\18\Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget.cs (11)
84catch (global::System.Exception __exception) 121catch (global::System.Exception __exception) 162catch (global::System.Exception __exception) 199catch (global::System.Exception __exception) 236catch (global::System.Exception __exception) 273catch (global::System.Exception __exception) 310catch (global::System.Exception __exception) 347catch (global::System.Exception __exception) 384catch (global::System.Exception __exception) 421catch (global::System.Exception __exception) 458catch (global::System.Exception __exception)
_generated\19\Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget2.cs (2)
82catch (global::System.Exception __exception) 124catch (global::System.Exception __exception)
_generated\20\Microsoft.Diagnostics.DataContractReader.Legacy.ICLRDataTarget3.cs (3)
81catch (global::System.Exception __exception) 118catch (global::System.Exception __exception) 155catch (global::System.Exception __exception)
_generated\21\Microsoft.Diagnostics.DataContractReader.Legacy.ICLRContractLocator.cs (1)
64catch (global::System.Exception __exception)
_generated\22\Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport.cs (62)
183catch (global::System.Exception __exception) 218catch (global::System.Exception __exception) 255catch (global::System.Exception __exception) 292catch (global::System.Exception __exception) 329catch (global::System.Exception __exception) 366catch (global::System.Exception __exception) 403catch (global::System.Exception __exception) 440catch (global::System.Exception __exception) 477catch (global::System.Exception __exception) 514catch (global::System.Exception __exception) 551catch (global::System.Exception __exception) 588catch (global::System.Exception __exception) 625catch (global::System.Exception __exception) 662catch (global::System.Exception __exception) 699catch (global::System.Exception __exception) 736catch (global::System.Exception __exception) 773catch (global::System.Exception __exception) 810catch (global::System.Exception __exception) 847catch (global::System.Exception __exception) 884catch (global::System.Exception __exception) 921catch (global::System.Exception __exception) 958catch (global::System.Exception __exception) 995catch (global::System.Exception __exception) 1032catch (global::System.Exception __exception) 1069catch (global::System.Exception __exception) 1106catch (global::System.Exception __exception) 1143catch (global::System.Exception __exception) 1180catch (global::System.Exception __exception) 1217catch (global::System.Exception __exception) 1254catch (global::System.Exception __exception) 1291catch (global::System.Exception __exception) 1328catch (global::System.Exception __exception) 1365catch (global::System.Exception __exception) 1402catch (global::System.Exception __exception) 1439catch (global::System.Exception __exception) 1476catch (global::System.Exception __exception) 1513catch (global::System.Exception __exception) 1550catch (global::System.Exception __exception) 1587catch (global::System.Exception __exception) 1624catch (global::System.Exception __exception) 1661catch (global::System.Exception __exception) 1698catch (global::System.Exception __exception) 1735catch (global::System.Exception __exception) 1772catch (global::System.Exception __exception) 1809catch (global::System.Exception __exception) 1846catch (global::System.Exception __exception) 1883catch (global::System.Exception __exception) 1920catch (global::System.Exception __exception) 1957catch (global::System.Exception __exception) 1994catch (global::System.Exception __exception) 2031catch (global::System.Exception __exception) 2068catch (global::System.Exception __exception) 2105catch (global::System.Exception __exception) 2142catch (global::System.Exception __exception) 2179catch (global::System.Exception __exception) 2216catch (global::System.Exception __exception) 2253catch (global::System.Exception __exception) 2290catch (global::System.Exception __exception) 2327catch (global::System.Exception __exception) 2364catch (global::System.Exception __exception) 2401catch (global::System.Exception __exception) 2438catch (global::System.Exception __exception)
_generated\23\Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataImport2.cs (8)
140catch (global::System.Exception __exception) 177catch (global::System.Exception __exception) 214catch (global::System.Exception __exception) 251catch (global::System.Exception __exception) 288catch (global::System.Exception __exception) 325catch (global::System.Exception __exception) 362catch (global::System.Exception __exception) 399catch (global::System.Exception __exception)
_generated\24\Microsoft.Diagnostics.DataContractReader.Legacy.IMetaDataAssemblyImport.cs (14)
90catch (global::System.Exception __exception) 127catch (global::System.Exception __exception) 164catch (global::System.Exception __exception) 201catch (global::System.Exception __exception) 238catch (global::System.Exception __exception) 275catch (global::System.Exception __exception) 312catch (global::System.Exception __exception) 349catch (global::System.Exception __exception) 386catch (global::System.Exception __exception) 423catch (global::System.Exception __exception) 460catch (global::System.Exception __exception) 497catch (global::System.Exception __exception) 531catch (global::System.Exception __exception) 566catch (global::System.Exception __exception)
_generated\25\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSEnum.cs (3)
68catch (global::System.Exception __exception) 105catch (global::System.Exception __exception) 142catch (global::System.Exception __exception)
_generated\26\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSHandleEnum.cs (1)
78catch (global::System.Exception __exception)
_generated\27\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStackRefErrorEnum.cs (1)
78catch (global::System.Exception __exception)
_generated\28\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSStackRefEnum.cs (2)
80catch (global::System.Exception __exception) 140catch (global::System.Exception __exception)
_generated\29\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSMemoryEnum.cs (1)
78catch (global::System.Exception __exception)
_generated\30\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface.cs (88)
238catch (global::System.Exception __exception) 275catch (global::System.Exception __exception) 387catch (global::System.Exception __exception) 429catch (global::System.Exception __exception) 471catch (global::System.Exception __exception) 513catch (global::System.Exception __exception) 629catch (global::System.Exception __exception) 675catch (global::System.Exception __exception) 717catch (global::System.Exception __exception) 781catch (global::System.Exception __exception) 828catch (global::System.Exception __exception) 870catch (global::System.Exception __exception) 986catch (global::System.Exception __exception) 1028catch (global::System.Exception __exception) 1070catch (global::System.Exception __exception) 1107catch (global::System.Exception __exception) 1149catch (global::System.Exception __exception) 1195catch (global::System.Exception __exception) 1237catch (global::System.Exception __exception) 1279catch (global::System.Exception __exception) 1321catch (global::System.Exception __exception) 1363catch (global::System.Exception __exception) 1405catch (global::System.Exception __exception) 1447catch (global::System.Exception __exception) 1484catch (global::System.Exception __exception) 1526catch (global::System.Exception __exception) 1563catch (global::System.Exception __exception) 1600catch (global::System.Exception __exception) 1642catch (global::System.Exception __exception) 1684catch (global::System.Exception __exception) 1726catch (global::System.Exception __exception) 1768catch (global::System.Exception __exception) 1810catch (global::System.Exception __exception) 1852catch (global::System.Exception __exception) 1894catch (global::System.Exception __exception) 1936catch (global::System.Exception __exception) 1978catch (global::System.Exception __exception) 2020catch (global::System.Exception __exception) 2062catch (global::System.Exception __exception) 2104catch (global::System.Exception __exception) 2146catch (global::System.Exception __exception) 2188catch (global::System.Exception __exception) 2230catch (global::System.Exception __exception) 2267catch (global::System.Exception __exception) 2379catch (global::System.Exception __exception) 2421catch (global::System.Exception __exception) 2458catch (global::System.Exception __exception) 2500catch (global::System.Exception __exception) 2542catch (global::System.Exception __exception) 2579catch (global::System.Exception __exception) 2621catch (global::System.Exception __exception) 2658catch (global::System.Exception __exception) 2700catch (global::System.Exception __exception) 2742catch (global::System.Exception __exception) 2784catch (global::System.Exception __exception) 2826catch (global::System.Exception __exception) 2863catch (global::System.Exception __exception) 2905catch (global::System.Exception __exception) 2965catch (global::System.Exception __exception) 3038catch (global::System.Exception __exception) 3103catch (global::System.Exception __exception) 3150catch (global::System.Exception __exception) 3192catch (global::System.Exception __exception) 3229catch (global::System.Exception __exception) 3271catch (global::System.Exception __exception) 3324catch (global::System.Exception __exception) 3366catch (global::System.Exception __exception) 3403catch (global::System.Exception __exception) 3445catch (global::System.Exception __exception) 3482catch (global::System.Exception __exception) 3519catch (global::System.Exception __exception) 3561catch (global::System.Exception __exception) 3614catch (global::System.Exception __exception) 3656catch (global::System.Exception __exception) 3709catch (global::System.Exception __exception) 3751catch (global::System.Exception __exception) 3811catch (global::System.Exception __exception) 3853catch (global::System.Exception __exception) 3895catch (global::System.Exception __exception) 3932catch (global::System.Exception __exception) 4048catch (global::System.Exception __exception) 4090catch (global::System.Exception __exception) 4132catch (global::System.Exception __exception) 4174catch (global::System.Exception __exception) 4216catch (global::System.Exception __exception) 4258catch (global::System.Exception __exception) 4300catch (global::System.Exception __exception) 4342catch (global::System.Exception __exception)
_generated\31\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface2.cs (2)
71catch (global::System.Exception __exception) 113catch (global::System.Exception __exception)
_generated\32\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface3.cs (3)
73catch (global::System.Exception __exception) 110catch (global::System.Exception __exception) 147catch (global::System.Exception __exception)
_generated\33\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface4.cs (1)
139catch (global::System.Exception __exception)
_generated\34\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface5.cs (1)
80catch (global::System.Exception __exception)
_generated\35\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface6.cs (1)
69catch (global::System.Exception __exception)
_generated\36\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface7.cs (4)
75catch (global::System.Exception __exception) 117catch (global::System.Exception __exception) 159catch (global::System.Exception __exception) 201catch (global::System.Exception __exception)
_generated\37\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface8.cs (6)
74catch (global::System.Exception __exception) 111catch (global::System.Exception __exception) 148catch (global::System.Exception __exception) 190catch (global::System.Exception __exception) 232catch (global::System.Exception __exception) 274catch (global::System.Exception __exception)
_generated\38\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface9.cs (1)
72catch (global::System.Exception __exception)
_generated\39\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface10.cs (5)
151catch (global::System.Exception __exception) 193catch (global::System.Exception __exception) 235catch (global::System.Exception __exception) 277catch (global::System.Exception __exception) 319catch (global::System.Exception __exception)
_generated\40\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface11.cs (2)
71catch (global::System.Exception __exception) 113catch (global::System.Exception __exception)
_generated\41\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface12.cs (1)
64catch (global::System.Exception __exception)
_generated\42\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface13.cs (8)
83catch (global::System.Exception __exception) 125catch (global::System.Exception __exception) 162catch (global::System.Exception __exception) 204catch (global::System.Exception __exception) 264catch (global::System.Exception __exception) 329catch (global::System.Exception __exception) 394catch (global::System.Exception __exception) 436catch (global::System.Exception __exception)
_generated\43\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface14.cs (3)
73catch (global::System.Exception __exception) 119catch (global::System.Exception __exception) 161catch (global::System.Exception __exception)
_generated\44\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSMethodEnum.cs (1)
78catch (global::System.Exception __exception)
_generated\45\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface15.cs (1)
91catch (global::System.Exception __exception)
_generated\46\Microsoft.Diagnostics.DataContractReader.Legacy.ISOSDacInterface16.cs (1)
64catch (global::System.Exception __exception)
_generated\47\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule.cs (38)
138catch (global::System.Exception __exception) 198catch (global::System.Exception __exception) 240catch (global::System.Exception __exception) 277catch (global::System.Exception __exception) 337catch (global::System.Exception __exception) 379catch (global::System.Exception __exception) 430catch (global::System.Exception __exception) 490catch (global::System.Exception __exception) 532catch (global::System.Exception __exception) 569catch (global::System.Exception __exception) 629catch (global::System.Exception __exception) 671catch (global::System.Exception __exception) 722catch (global::System.Exception __exception) 782catch (global::System.Exception __exception) 824catch (global::System.Exception __exception) 884catch (global::System.Exception __exception) 926catch (global::System.Exception __exception) 986catch (global::System.Exception __exception) 1028catch (global::System.Exception __exception) 1079catch (global::System.Exception __exception) 1139catch (global::System.Exception __exception) 1181catch (global::System.Exception __exception) 1241catch (global::System.Exception __exception) 1302catch (global::System.Exception __exception) 1362catch (global::System.Exception __exception) 1404catch (global::System.Exception __exception) 1441catch (global::System.Exception __exception) 1478catch (global::System.Exception __exception) 1515catch (global::System.Exception __exception) 1552catch (global::System.Exception __exception) 1589catch (global::System.Exception __exception) 1626catch (global::System.Exception __exception) 1663catch (global::System.Exception __exception) 1700catch (global::System.Exception __exception) 1737catch (global::System.Exception __exception) 1774catch (global::System.Exception __exception) 1811catch (global::System.Exception __exception) 1848catch (global::System.Exception __exception)
_generated\48\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataModule2.cs (1)
64catch (global::System.Exception __exception)
_generated\49\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataProcess.cs (46)
154catch (global::System.Exception __exception) 191catch (global::System.Exception __exception) 251catch (global::System.Exception __exception) 293catch (global::System.Exception __exception) 353catch (global::System.Exception __exception) 418catch (global::System.Exception __exception) 460catch (global::System.Exception __exception) 497catch (global::System.Exception __exception) 557catch (global::System.Exception __exception) 599catch (global::System.Exception __exception) 636catch (global::System.Exception __exception) 678catch (global::System.Exception __exception) 720catch (global::System.Exception __exception) 757catch (global::System.Exception __exception) 794catch (global::System.Exception __exception) 831catch (global::System.Exception __exception) 868catch (global::System.Exception __exception) 905catch (global::System.Exception __exception) 965catch (global::System.Exception __exception) 1007catch (global::System.Exception __exception) 1044catch (global::System.Exception __exception) 1104catch (global::System.Exception __exception) 1146catch (global::System.Exception __exception) 1210catch (global::System.Exception __exception) 1270catch (global::System.Exception __exception) 1330catch (global::System.Exception __exception) 1372catch (global::System.Exception __exception) 1446catch (global::System.Exception __exception) 1511catch (global::System.Exception __exception) 1567catch (global::System.Exception __exception) 1604catch (global::System.Exception __exception) 1683catch (global::System.Exception __exception) 1739catch (global::System.Exception __exception) 1790catch (global::System.Exception __exception) 1859catch (global::System.Exception __exception) 1926catch (global::System.Exception __exception) 1995catch (global::System.Exception __exception) 2062catch (global::System.Exception __exception) 2099catch (global::System.Exception __exception) 2136catch (global::System.Exception __exception) 2178catch (global::System.Exception __exception) 2238catch (global::System.Exception __exception) 2280catch (global::System.Exception __exception) 2322catch (global::System.Exception __exception) 2377catch (global::System.Exception __exception) 2419catch (global::System.Exception __exception)
_generated\50\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataProcess2.cs (2)
112catch (global::System.Exception __exception) 149catch (global::System.Exception __exception)
_generated\51\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataStackWalk.cs (8)
89catch (global::System.Exception __exception) 135catch (global::System.Exception __exception) 172catch (global::System.Exception __exception) 209catch (global::System.Exception __exception) 246catch (global::System.Exception __exception) 306catch (global::System.Exception __exception) 348catch (global::System.Exception __exception) 394catch (global::System.Exception __exception)
_generated\52\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataFrame.cs (12)
86catch (global::System.Exception __exception) 134catch (global::System.Exception __exception) 194catch (global::System.Exception __exception) 236catch (global::System.Exception __exception) 296catch (global::System.Exception __exception) 338catch (global::System.Exception __exception) 398catch (global::System.Exception __exception) 440catch (global::System.Exception __exception) 500catch (global::System.Exception __exception) 542catch (global::System.Exception __exception) 579catch (global::System.Exception __exception) 639catch (global::System.Exception __exception)
_generated\53\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataFrame2.cs (1)
87catch (global::System.Exception __exception)
_generated\54\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTask.cs (16)
94catch (global::System.Exception __exception) 154catch (global::System.Exception __exception) 196catch (global::System.Exception __exception) 233catch (global::System.Exception __exception) 270catch (global::System.Exception __exception) 330catch (global::System.Exception __exception) 372catch (global::System.Exception __exception) 409catch (global::System.Exception __exception) 469catch (global::System.Exception __exception) 511catch (global::System.Exception __exception) 548catch (global::System.Exception __exception) 585catch (global::System.Exception __exception) 645catch (global::System.Exception __exception) 687catch (global::System.Exception __exception) 724catch (global::System.Exception __exception) 784catch (global::System.Exception __exception)
_generated\55\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodInstance.cs (17)
119catch (global::System.Exception __exception) 184catch (global::System.Exception __exception) 249catch (global::System.Exception __exception) 291catch (global::System.Exception __exception) 328catch (global::System.Exception __exception) 365catch (global::System.Exception __exception) 402catch (global::System.Exception __exception) 439catch (global::System.Exception __exception) 499catch (global::System.Exception __exception) 546catch (global::System.Exception __exception) 583catch (global::System.Exception __exception) 631catch (global::System.Exception __exception) 668catch (global::System.Exception __exception) 705catch (global::System.Exception __exception) 742catch (global::System.Exception __exception) 779catch (global::System.Exception __exception) 816catch (global::System.Exception __exception)
_generated\56\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataAppDomain.cs (7)
99catch (global::System.Exception __exception) 141catch (global::System.Exception __exception) 178catch (global::System.Exception __exception) 215catch (global::System.Exception __exception) 252catch (global::System.Exception __exception) 312catch (global::System.Exception __exception) 354catch (global::System.Exception __exception)
_generated\57\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataAssembly.cs (12)
86catch (global::System.Exception __exception) 146catch (global::System.Exception __exception) 188catch (global::System.Exception __exception) 225catch (global::System.Exception __exception) 262catch (global::System.Exception __exception) 299catch (global::System.Exception __exception) 350catch (global::System.Exception __exception) 387catch (global::System.Exception __exception) 424catch (global::System.Exception __exception) 461catch (global::System.Exception __exception) 498catch (global::System.Exception __exception) 535catch (global::System.Exception __exception)
_generated\58\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeDefinition.cs (32)
149catch (global::System.Exception __exception) 191catch (global::System.Exception __exception) 251catch (global::System.Exception __exception) 293catch (global::System.Exception __exception) 330catch (global::System.Exception __exception) 390catch (global::System.Exception __exception) 432catch (global::System.Exception __exception) 492catch (global::System.Exception __exception) 548catch (global::System.Exception __exception) 608catch (global::System.Exception __exception) 650catch (global::System.Exception __exception) 687catch (global::System.Exception __exception) 747catch (global::System.Exception __exception) 789catch (global::System.Exception __exception) 826catch (global::System.Exception __exception) 877catch (global::System.Exception __exception) 914catch (global::System.Exception __exception) 951catch (global::System.Exception __exception) 1011catch (global::System.Exception __exception) 1053catch (global::System.Exception __exception) 1090catch (global::System.Exception __exception) 1150catch (global::System.Exception __exception) 1192catch (global::System.Exception __exception) 1229catch (global::System.Exception __exception) 1289catch (global::System.Exception __exception) 1331catch (global::System.Exception __exception) 1391catch (global::System.Exception __exception) 1433catch (global::System.Exception __exception) 1470catch (global::System.Exception __exception) 1540catch (global::System.Exception __exception) 1616catch (global::System.Exception __exception) 1687catch (global::System.Exception __exception)
_generated\59\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTypeInstance.cs (31)
124catch (global::System.Exception __exception) 184catch (global::System.Exception __exception) 226catch (global::System.Exception __exception) 263catch (global::System.Exception __exception) 323catch (global::System.Exception __exception) 365catch (global::System.Exception __exception) 402catch (global::System.Exception __exception) 467catch (global::System.Exception __exception) 523catch (global::System.Exception __exception) 583catch (global::System.Exception __exception) 625catch (global::System.Exception __exception) 662catch (global::System.Exception __exception) 722catch (global::System.Exception __exception) 764catch (global::System.Exception __exception) 824catch (global::System.Exception __exception) 889catch (global::System.Exception __exception) 931catch (global::System.Exception __exception) 982catch (global::System.Exception __exception) 1019catch (global::System.Exception __exception) 1056catch (global::System.Exception __exception) 1107catch (global::System.Exception __exception) 1167catch (global::System.Exception __exception) 1209catch (global::System.Exception __exception) 1260catch (global::System.Exception __exception) 1320catch (global::System.Exception __exception) 1362catch (global::System.Exception __exception) 1427catch (global::System.Exception __exception) 1492catch (global::System.Exception __exception) 1567catch (global::System.Exception __exception) 1643catch (global::System.Exception __exception) 1719catch (global::System.Exception __exception)
_generated\60\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataMethodDefinition.cs (17)
119catch (global::System.Exception __exception) 175catch (global::System.Exception __exception) 235catch (global::System.Exception __exception) 277catch (global::System.Exception __exception) 314catch (global::System.Exception __exception) 374catch (global::System.Exception __exception) 416catch (global::System.Exception __exception) 467catch (global::System.Exception __exception) 504catch (global::System.Exception __exception) 541catch (global::System.Exception __exception) 578catch (global::System.Exception __exception) 615catch (global::System.Exception __exception) 652catch (global::System.Exception __exception) 689catch (global::System.Exception __exception) 726catch (global::System.Exception __exception) 763catch (global::System.Exception __exception) 800catch (global::System.Exception __exception)
_generated\61\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataExceptionState.cs (10)
82catch (global::System.Exception __exception) 142catch (global::System.Exception __exception) 207catch (global::System.Exception __exception) 249catch (global::System.Exception __exception) 286catch (global::System.Exception __exception) 323catch (global::System.Exception __exception) 360catch (global::System.Exception __exception) 397catch (global::System.Exception __exception) 434catch (global::System.Exception __exception) 494catch (global::System.Exception __exception)
_generated\62\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataValue.cs (27)
116catch (global::System.Exception __exception) 153catch (global::System.Exception __exception) 190catch (global::System.Exception __exception) 227catch (global::System.Exception __exception) 264catch (global::System.Exception __exception) 324catch (global::System.Exception __exception) 366catch (global::System.Exception __exception) 426catch (global::System.Exception __exception) 468catch (global::System.Exception __exception) 519catch (global::System.Exception __exception) 570catch (global::System.Exception __exception) 630catch (global::System.Exception __exception) 672catch (global::System.Exception __exception) 723catch (global::System.Exception __exception) 783catch (global::System.Exception __exception) 825catch (global::System.Exception __exception) 885catch (global::System.Exception __exception) 950catch (global::System.Exception __exception) 1015catch (global::System.Exception __exception) 1057catch (global::System.Exception __exception) 1094catch (global::System.Exception __exception) 1154catch (global::System.Exception __exception) 1229catch (global::System.Exception __exception) 1305catch (global::System.Exception __exception) 1376catch (global::System.Exception __exception) 1418catch (global::System.Exception __exception) 1455catch (global::System.Exception __exception)
_generated\63\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataExceptionNotification.cs (8)
92catch (global::System.Exception __exception) 143catch (global::System.Exception __exception) 180catch (global::System.Exception __exception) 217catch (global::System.Exception __exception) 268catch (global::System.Exception __exception) 319catch (global::System.Exception __exception) 356catch (global::System.Exception __exception) 393catch (global::System.Exception __exception)
_generated\64\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataExceptionNotification2.cs (3)
76catch (global::System.Exception __exception) 113catch (global::System.Exception __exception) 164catch (global::System.Exception __exception)
_generated\65\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataExceptionNotification3.cs (1)
75catch (global::System.Exception __exception)
_generated\66\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataExceptionNotification4.cs (1)
90catch (global::System.Exception __exception)
_generated\67\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataExceptionNotification5.cs (1)
95catch (global::System.Exception __exception)
_generated\68\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRDataTarget3.cs (1)
77catch (global::System.Exception __exception)
_generated\69\Microsoft.Diagnostics.DataContractReader.Legacy.IXCLRLibrarySupport.cs (2)
66catch (global::System.Exception __exception) 103catch (global::System.Exception __exception)
ClrDataAppDomain.cs (4)
46catch (System.Exception ex) 108catch (System.Exception ex) 137catch (System.Exception ex) 166catch (System.Exception ex)
ClrDataExceptionState.cs (4)
49catch (System.Exception ex) 100catch (System.Exception ex) 155catch (System.Exception ex) 234catch (System.Exception ex)
ClrDataFrame.cs (11)
66catch (System.Exception ex) 123catch (System.Exception ex) 150catch (System.Exception ex) 228catch (System.Exception ex) 253catch (System.Exception ex) 316catch (System.Exception ex) 366catch (System.Exception ex) 602catch (System.Exception) 754catch (System.Exception) { return ((uint)ClrDataValueFlag.DEFAULT, -1); } 767catch (System.Exception) { return ((uint)ClrDataValueFlag.DEFAULT, -1); } 944catch (System.Exception)
ClrDataMethodDefinition.cs (8)
136catch (System.Exception ex) 199catch (System.Exception ex) 246catch (System.Exception ex) 291catch (System.Exception ex) 350catch (System.Exception ex) 407catch (System.Exception ex) 431catch (System.Exception ex) 466catch (System.Exception ex)
ClrDataMethodInstance.cs (5)
71catch (System.Exception ex) 144catch (System.Exception ex) 233catch (System.Exception ex) 340catch (System.Exception ex) 406catch (System.Exception ex)
ClrDataModule.cs (12)
307catch (System.Exception ex) 335catch (System.Exception ex) 364catch (System.Exception ex) 391catch (System.Exception ex) 431catch (System.Exception ex) 473catch (System.Exception ex) 525catch (System.Exception ex) 567catch (System.Exception ex) 619catch (System.Exception ex) 661catch (System.Exception ex) 731catch (System.Exception ex) 829catch (System.Exception ex)
ClrDataStackWalk.cs (3)
129catch (System.Exception ex) 148catch (System.Exception ex) 200catch (System.Exception ex)
ClrDataTask.cs (3)
44catch (System.Exception ex) 120catch (System.Exception ex) 161catch (System.Exception ex)
ClrDataValue.cs (6)
64catch (System.Exception ex) 96catch (System.Exception ex) 128catch (System.Exception ex) 183catch (System.Exception ex) 312catch (System.Exception ex) 346catch (System.Exception ex)
Dbi\DacDbiImpl.cs (92)
86catch (System.Exception ex) 113catch (System.Exception ex) 138catch (System.Exception ex) 163catch (System.Exception ex) 203catch (System.Exception ex) 242catch (System.Exception ex) 289catch (System.Exception ex) 338catch (System.Exception ex) 381catch (System.Exception ex) 423catch (System.Exception ex) 477catch (System.Exception ex) 521catch (System.Exception ex) 559catch (System.Exception ex) 580catch (System.Exception ex) 609catch (System.Exception ex) 640catch (System.Exception ex) 686catch (System.Exception ex) 727catch (System.Exception ex) 752catch (System.Exception ex) 781catch (System.Exception ex) 812catch (System.Exception ex) 852catch (System.Exception ex) 875catch (System.Exception ex) 923catch (System.Exception ex) 986catch (System.Exception ex) 1012catch (System.Exception ex) 1045catch (System.Exception ex) 1094catch (System.Exception ex) 1120catch (System.Exception ex) 1146catch (System.Exception ex) 1179catch (System.Exception ex) 1226catch (System.Exception ex) 1276catch (System.Exception ex) 1319catch (System.Exception ex) 1385catch (System.Exception ex) 1481catch (System.Exception ex) 1521catch (System.Exception ex) 1549catch (System.Exception ex) 1598catch (System.Exception ex) 1629catch (System.Exception ex) 1670catch (System.Exception ex) 1722catch (System.Exception ex) 1785catch (System.Exception ex) 1823catch (System.Exception ex) 1850catch (System.Exception ex) 1901catch (System.Exception ex) 1950catch (System.Exception ex) 2152catch (System.Exception ex) 2181catch (System.Exception ex) 2272catch (System.Exception ex) 2328catch (System.Exception ex) 2566catch (System.Exception ex) 2622catch (System.Exception ex) 2649catch (System.Exception ex) 2695catch (System.Exception ex) 2775catch (System.Exception ex) 2819catch (System.Exception ex) 2875catch (System.Exception ex) 2913catch (System.Exception ex) 2968catch (System.Exception ex) 3013catch (System.Exception ex) 3038catch (System.Exception ex) 3099catch (System.Exception ex) 3160catch (System.Exception ex) 3193catch (System.Exception ex) 3230catch (System.Exception ex) 3267catch (System.Exception ex) 3300catch (System.Exception ex) 3325catch (System.Exception ex) 3423catch (System.Exception ex) 3511catch (System.Exception) 3553catch (System.Exception ex) 3584catch (System.Exception ex) 3714catch (System.Exception) 3723catch (System.Exception ex) 3786catch (System.Exception ex) 3859catch (System.Exception ex) 3904catch (System.Exception ex) 3965catch (System.Exception ex) 3994catch (System.Exception ex) 4023catch (System.Exception ex) 4076catch (System.Exception ex) 4114catch (System.Exception ex) 4151catch (System.Exception ex) 4180catch (System.Exception ex) 4208catch (System.Exception ex) 4264catch (System.Exception ex) 4303catch (System.Exception ex) 4348catch (System.Exception ex) 4373catch (System.Exception ex) 4410catch (System.Exception ex) 4461catch (System.Exception ex)
DebugExtensions.cs (8)
41private static Exception?[]? _debugLastExceptions; 50Exception?[] ring = _debugLastExceptions ??= new Exception?[LastExceptionRingSize]; 56private static Exception? FindMatchingException(int hr) 58Exception?[]? ring = _debugLastExceptions; 67Exception? ex = ring[idx]; 77Exception?[]? ring = _debugLastExceptions; 108Exception? ex = FindMatchingException(cdacHr);
MetaDataImportImpl.cs (27)
178catch (System.Exception ex) 226catch (System.Exception ex) 280catch (System.Exception ex) 328catch (System.Exception ex) 389catch (System.Exception ex) 439catch (System.Exception ex) 490catch (System.Exception ex) 556catch (System.Exception ex) 651catch (System.Exception ex) 745catch (System.Exception ex) 782catch (System.Exception ex) 826catch (System.Exception ex) 889catch (System.Exception ex) 928catch (System.Exception ex) 985catch (System.Exception ex) 1093catch (System.Exception ex) 1179catch (System.Exception ex) 1274catch (System.Exception ex) 1318catch (System.Exception ex) 1365catch (System.Exception ex) 1441catch (System.Exception ex) 1512catch (System.Exception ex) 1591catch (System.Exception ex) 1715catch (System.Exception ex) 1826catch (System.Exception ex) 1905catch (System.Exception ex) 2016catch (System.Exception ex)
SOSDacImpl.cs (115)
162catch (System.Exception ex) 210catch (System.Exception ex) 280catch (System.Exception ex) 316catch (System.Exception ex) 379catch (System.Exception ex) 460catch (System.Exception ex) 513catch (System.Exception ex) 561catch (System.Exception ex) 625catch (System.Exception ex) 710catch (System.Exception ex) 762catch (System.Exception ex) 845catch (System.Exception ex) 913catch (System.Exception ex) 964catch (System.Exception ex) 1047catch (System.Exception ex) 1172catch (System.Exception ex) 1224catch (System.Exception ex) 1274catch (System.Exception ex) 1333catch (System.Exception ex) 1442catch (System.Exception ex) 1575catch (System.Exception ex) 1684catch (System.Exception ex) 1785catch (System.Exception ex) 1866catch (System.Exception ex) 1893catch (System.Exception ex) 1923catch (System.Exception ex) 1969catch (System.Exception ex) 2030catch (System.Exception ex) 2090catch (System.Exception ex) 2123catch (System.Exception ex) 2169catch (System.Exception ex) 2244catch (System.Exception ex) 2425catch (global::System.Exception) 2448catch (global::System.Exception ex) 2589catch (System.Exception ex) 2670catch (System.Exception ex) 2712catch (System.Exception ex) 2757catch (System.Exception) 2762catch (System.Exception ex) 2797catch (System.Exception ex) 2846catch (System.Exception ex) 2894catch (System.Exception ex) 2929catch (global::System.Exception ex) 2990catch (System.Exception ex) 3062catch (System.Exception ex) 3100catch (System.Exception ex) 3153catch (System.Exception) 3180catch (global::System.Exception e) 3234catch (global::System.Exception ex) 3303catch (System.Exception ex) 3407catch (System.Exception ex) 3450catch (System.Exception ex) 3502catch (System.Exception ex) 3552catch (System.Exception ex) 3598catch (System.Exception ex) 3638catch (System.Exception ex) 3705catch (System.Exception ex) 3792catch (System.Exception ex) 3863catch (System.Exception ex) 3960catch (global::System.Exception ex) 4012catch (System.Exception ex) 4095catch (System.Exception ex) 4165catch (System.Exception ex) 4237catch (System.Exception ex) 4283catch (global::System.Exception ex) 4333catch (global::System.Exception ex) 4375catch (System.Exception ex) 4447catch (global::System.Exception ex) 4487catch (System.Exception ex) 4528catch (System.Exception ex) 4691catch (System.Exception ex) 4776catch (System.Exception ex) 4850catch (System.Exception ex) 4909catch (System.Exception ex) 4958catch (System.Exception ex) 4999catch (System.Exception ex) 5022catch (System.Exception ex) 5065catch (System.Exception ex) 5107catch (System.Exception ex) 5217catch (System.Exception ex) 5263catch (System.Exception ex) 5391catch (System.Exception ex) 5448catch (System.Exception ex) 5491catch (System.Exception ex) 5549catch (System.Exception ex) 5610catch (System.Exception ex) 5671catch (System.Exception ex) 5716catch (System.Exception ex) 5771catch (System.Exception ex) 5836catch (System.Exception ex) 5902catch (System.Exception ex) 5967catch (System.Exception ex) 6014catch (System.Exception ex) 6093catch (System.Exception ex) 6139catch (System.Exception ex) 6179catch (System.Exception ex) 6221catch (System.Exception ex) 6255catch (System.Exception ex) 6308catch (System.Exception ex) 6352catch (System.Exception ex) 6388catch (System.Exception ex) 6455catch (System.Exception ex) 6550catch (System.Exception ex) 6607catch (System.Exception ex) 6656catch (System.Exception e) 6681catch (System.Exception e) 6706catch (System.Exception e) 6743catch (System.Exception ex) 6795catch (System.Exception ex) 6838catch (System.Exception ex) 6894catch (System.Exception) 6966catch (System.Exception ex) 7033catch (System.Exception ex) 7066catch (System.Exception ex) 7096catch (System.Exception ex)
SOSDacImpl.IXCLRDataProcess.cs (11)
166catch (System.Exception ex) 483catch (System.Exception ex) 541catch (System.Exception ex) 732catch (System.Exception ex) 812catch (System.Exception ex) 875catch (System.Exception ex) 943catch (System.Exception ex) 961catch (System.Exception ex) 994catch (System.Exception ex) 1011catch (System.Exception ex) 1085catch (System.Exception ex)
Microsoft.Diagnostics.NETCore.Client (36)
DiagnosticsClient\DiagnosticsClientExceptions.cs (2)
11public DiagnosticsClientException(string msg, Exception exception) : base(msg, exception) { } 24public ServerNotAvailableException(string msg, Exception exception) : base(msg, exception) { }
DiagnosticsIpc\IpcEndpointConfig.cs (1)
113catch (Exception)
DiagnosticsIpc\IpcServerTransport.cs (2)
141catch (Exception) 210catch (Exception)
DiagnosticsIpc\IpcTcpSocketEndPoint.cs (2)
23catch (Exception) 145catch (Exception)
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (21)
105catch (Exception) 474catch (Exception) 590catch (Exception) 654catch (Exception ex) 687catch (Exception) 825catch (Exception) 862catch (Exception) 889catch (Exception) 901catch (Exception) 1008catch (Exception) 1027catch (Exception) 1142catch (Exception) 1166catch (Exception) 1172catch (Exception) 1287catch (Exception) 1312catch (Exception) 1325catch (Exception) 1367catch (Exception) 1430catch (Exception) 1581catch (Exception) 1624catch (Exception)
DiagnosticsServerRouter\DiagnosticsServerRouterRunner.cs (2)
114catch (Exception ex) 145catch (Exception ex)
HandleableCollection.cs (1)
226catch (Exception ex)
ReversedServer\ReversedDiagnosticsServer.cs (5)
117catch (Exception ex) 130catch (Exception ex) 263catch (Exception) 281catch (Exception) 391catch (Exception)
Microsoft.DiaSymReader (308)
_generated\10\Microsoft.DiaSymReader.ISymUnmanagedAsyncMethod.cs (6)
82catch (global::System.Exception __exception) 126catch (global::System.Exception __exception) 171catch (global::System.Exception __exception) 215catch (global::System.Exception __exception) 259catch (global::System.Exception __exception) 328catch (global::System.Exception __exception)
_generated\11\Microsoft.DiaSymReader.ISymUnmanagedBinder.cs (2)
103catch (global::System.Exception __exception) 175catch (global::System.Exception __exception)
_generated\12\Microsoft.DiaSymReader.ISymUnmanagedBinder2.cs (1)
103catch (global::System.Exception __exception)
_generated\13\Microsoft.DiaSymReader.ISymUnmanagedBinder3.cs (1)
109catch (global::System.Exception __exception)
_generated\14\Microsoft.DiaSymReader.ISymUnmanagedBinder4.cs (2)
104catch (global::System.Exception __exception) 176catch (global::System.Exception __exception)
_generated\15\Microsoft.DiaSymReader.ISymUnmanagedConstant.cs (3)
84catch (global::System.Exception __exception) 143catch (global::System.Exception __exception) 196catch (global::System.Exception __exception)
_generated\16\Microsoft.DiaSymReader.ISymUnmanagedDispose.cs (1)
64catch (global::System.Exception __exception)
_generated\17\Microsoft.DiaSymReader.ISymUnmanagedDocument.cs (10)
98catch (global::System.Exception __exception) 142catch (global::System.Exception __exception) 186catch (global::System.Exception __exception) 230catch (global::System.Exception __exception) 274catch (global::System.Exception __exception) 327catch (global::System.Exception __exception) 371catch (global::System.Exception __exception) 416catch (global::System.Exception __exception) 460catch (global::System.Exception __exception) 513catch (global::System.Exception __exception)
_generated\18\Microsoft.DiaSymReader.ISymUnmanagedEncUpdate.cs (5)
95catch (global::System.Exception __exception) 139catch (global::System.Exception __exception) 271catch (global::System.Exception __exception) 308catch (global::System.Exception __exception) 354catch (global::System.Exception __exception)
_generated\19\Microsoft.DiaSymReader.ISymUnmanagedMethod.cs (10)
89catch (global::System.Exception __exception) 133catch (global::System.Exception __exception) 192catch (global::System.Exception __exception) 251catch (global::System.Exception __exception) 309catch (global::System.Exception __exception) 376catch (global::System.Exception __exception) 509catch (global::System.Exception __exception) 568catch (global::System.Exception __exception) 717catch (global::System.Exception __exception) 890catch (global::System.Exception __exception)
_generated\20\Microsoft.DiaSymReader.ISymUnmanagedMethod2.cs (1)
81catch (global::System.Exception __exception)
_generated\21\Microsoft.DiaSymReader.ISymUnmanagedNamespace.cs (3)
84catch (global::System.Exception __exception) 217catch (global::System.Exception __exception) 350catch (global::System.Exception __exception)
_generated\22\Microsoft.DiaSymReader.ISymUnmanagedReader.cs (17)
122catch (global::System.Exception __exception) 255catch (global::System.Exception __exception) 299catch (global::System.Exception __exception) 358catch (global::System.Exception __exception) 417catch (global::System.Exception __exception) 550catch (global::System.Exception __exception) 683catch (global::System.Exception __exception) 750catch (global::System.Exception __exception) 806catch (global::System.Exception __exception) 939catch (global::System.Exception __exception) 1002catch (global::System.Exception __exception) 1057catch (global::System.Exception __exception) 1112catch (global::System.Exception __exception) 1165catch (global::System.Exception __exception) 1303catch (global::System.Exception __exception) 1368catch (global::System.Exception __exception) 1426catch (global::System.Exception __exception)
_generated\23\Microsoft.DiaSymReader.ISymUnmanagedReader2.cs (3)
107catch (global::System.Exception __exception) 163catch (global::System.Exception __exception) 301catch (global::System.Exception __exception)
_generated\24\Microsoft.DiaSymReader.ISymUnmanagedReader3.cs (2)
105catch (global::System.Exception __exception) 161catch (global::System.Exception __exception)
_generated\25\Microsoft.DiaSymReader.ISymUnmanagedReader4.cs (3)
98catch (global::System.Exception __exception) 147catch (global::System.Exception __exception) 196catch (global::System.Exception __exception)
_generated\26\Microsoft.DiaSymReader.ISymUnmanagedReader5.cs (1)
101catch (global::System.Exception __exception)
_generated\27\Microsoft.DiaSymReader.ISymUnmanagedCompilerInfoReader.cs (1)
100catch (global::System.Exception __exception)
_generated\28\Microsoft.DiaSymReader.ISymUnmanagedScope.cs (8)
100catch (global::System.Exception __exception) 159catch (global::System.Exception __exception) 292catch (global::System.Exception __exception) 336catch (global::System.Exception __exception) 380catch (global::System.Exception __exception) 424catch (global::System.Exception __exception) 557catch (global::System.Exception __exception) 690catch (global::System.Exception __exception)
_generated\29\Microsoft.DiaSymReader.ISymUnmanagedScope2.cs (2)
81catch (global::System.Exception __exception) 214catch (global::System.Exception __exception)
_generated\30\Microsoft.DiaSymReader.ISymUnmanagedSourceServerModule.cs (1)
76catch (global::System.Exception __exception)
_generated\31\Microsoft.DiaSymReader.ISymUnmanagedVariable.cs (9)
96catch (global::System.Exception __exception) 140catch (global::System.Exception __exception) 193catch (global::System.Exception __exception) 237catch (global::System.Exception __exception) 281catch (global::System.Exception __exception) 325catch (global::System.Exception __exception) 369catch (global::System.Exception __exception) 413catch (global::System.Exception __exception) 457catch (global::System.Exception __exception)
_generated\32\Microsoft.DiaSymReader.IUnsafeComStream.cs (11)
86catch (global::System.Exception __exception) 125catch (global::System.Exception __exception) 164catch (global::System.Exception __exception) 203catch (global::System.Exception __exception) 242catch (global::System.Exception __exception) 281catch (global::System.Exception __exception) 320catch (global::System.Exception __exception) 359catch (global::System.Exception __exception) 398catch (global::System.Exception __exception) 444catch (global::System.Exception __exception) 490catch (global::System.Exception __exception)
_generated\33\Microsoft.DiaSymReader.ISymUnmanagedAsyncMethodPropertiesWriter.cs (3)
70catch (global::System.Exception __exception) 109catch (global::System.Exception __exception) 171catch (global::System.Exception __exception)
_generated\34\Microsoft.DiaSymReader.ISymUnmanagedCompilerInfoWriter.cs (1)
68catch (global::System.Exception __exception)
_generated\35\Microsoft.DiaSymReader.ISymUnmanagedDocumentWriter.cs (2)
77catch (global::System.Exception __exception) 125catch (global::System.Exception __exception)
_generated\36\Microsoft.DiaSymReader.IPdbWriter.cs (5)
80catch (global::System.Exception __exception) 125catch (global::System.Exception __exception) 170catch (global::System.Exception __exception) 215catch (global::System.Exception __exception) 266catch (global::System.Exception __exception)
_generated\37\Microsoft.DiaSymReader.ISymUnmanagedWriter5.cs (33)
172catch (global::System.Exception __exception) 211catch (global::System.Exception __exception) 250catch (global::System.Exception __exception) 289catch (global::System.Exception __exception) 334catch (global::System.Exception __exception) 373catch (global::System.Exception __exception) 412catch (global::System.Exception __exception) 455catch (global::System.Exception __exception) 498catch (global::System.Exception __exception) 541catch (global::System.Exception __exception) 584catch (global::System.Exception __exception) 623catch (global::System.Exception __exception) 666catch (global::System.Exception __exception) 709catch (global::System.Exception __exception) 748catch (global::System.Exception __exception) 791catch (global::System.Exception __exception) 848catch (global::System.Exception __exception) 913catch (global::System.Exception __exception) 964catch (global::System.Exception __exception) 1053catch (global::System.Exception __exception) 1092catch (global::System.Exception __exception) 1160catch (global::System.Exception __exception) 1216catch (global::System.Exception __exception) 1255catch (global::System.Exception __exception) 1298catch (global::System.Exception __exception) 1341catch (global::System.Exception __exception) 1384catch (global::System.Exception __exception) 1423catch (global::System.Exception __exception) 1462catch (global::System.Exception __exception) 1513catch (global::System.Exception __exception) 1552catch (global::System.Exception __exception) 1591catch (global::System.Exception __exception) 1643catch (global::System.Exception __exception)
_generated\38\Microsoft.DiaSymReader.ISymUnmanagedWriter8.cs (5)
125catch (global::System.Exception __exception) 164catch (global::System.Exception __exception) 203catch (global::System.Exception __exception) 242catch (global::System.Exception __exception) 281catch (global::System.Exception __exception)
_generated\6\Microsoft.DiaSymReader.IMetadataEmit.cs (49)
162catch (global::System.Exception __exception) 201catch (global::System.Exception __exception) 240catch (global::System.Exception __exception) 279catch (global::System.Exception __exception) 318catch (global::System.Exception __exception) 357catch (global::System.Exception __exception) 396catch (global::System.Exception __exception) 435catch (global::System.Exception __exception) 474catch (global::System.Exception __exception) 513catch (global::System.Exception __exception) 552catch (global::System.Exception __exception) 591catch (global::System.Exception __exception) 630catch (global::System.Exception __exception) 669catch (global::System.Exception __exception) 708catch (global::System.Exception __exception) 747catch (global::System.Exception __exception) 786catch (global::System.Exception __exception) 825catch (global::System.Exception __exception) 864catch (global::System.Exception __exception) 903catch (global::System.Exception __exception) 948catch (global::System.Exception __exception) 987catch (global::System.Exception __exception) 1026catch (global::System.Exception __exception) 1065catch (global::System.Exception __exception) 1104catch (global::System.Exception __exception) 1143catch (global::System.Exception __exception) 1182catch (global::System.Exception __exception) 1221catch (global::System.Exception __exception) 1260catch (global::System.Exception __exception) 1299catch (global::System.Exception __exception) 1338catch (global::System.Exception __exception) 1377catch (global::System.Exception __exception) 1416catch (global::System.Exception __exception) 1455catch (global::System.Exception __exception) 1494catch (global::System.Exception __exception) 1533catch (global::System.Exception __exception) 1572catch (global::System.Exception __exception) 1611catch (global::System.Exception __exception) 1650catch (global::System.Exception __exception) 1689catch (global::System.Exception __exception) 1728catch (global::System.Exception __exception) 1767catch (global::System.Exception __exception) 1806catch (global::System.Exception __exception) 1845catch (global::System.Exception __exception) 1884catch (global::System.Exception __exception) 1923catch (global::System.Exception __exception) 1962catch (global::System.Exception __exception) 2001catch (global::System.Exception __exception) 2040catch (global::System.Exception __exception)
_generated\7\Microsoft.DiaSymReader.IMetadataImport.cs (62)
183catch (global::System.Exception __exception) 225catch (global::System.Exception __exception) 262catch (global::System.Exception __exception) 306catch (global::System.Exception __exception) 350catch (global::System.Exception __exception) 394catch (global::System.Exception __exception) 441catch (global::System.Exception __exception) 478catch (global::System.Exception __exception) 522catch (global::System.Exception __exception) 559catch (global::System.Exception __exception) 596catch (global::System.Exception __exception) 633catch (global::System.Exception __exception) 703catch (global::System.Exception __exception) 747catch (global::System.Exception __exception) 794catch (global::System.Exception __exception) 838catch (global::System.Exception __exception) 885catch (global::System.Exception __exception) 929catch (global::System.Exception __exception) 976catch (global::System.Exception __exception) 1020catch (global::System.Exception __exception) 1064catch (global::System.Exception __exception) 1108catch (global::System.Exception __exception) 1152catch (global::System.Exception __exception) 1199catch (global::System.Exception __exception) 1246catch (global::System.Exception __exception) 1293catch (global::System.Exception __exception) 1340catch (global::System.Exception __exception) 1377catch (global::System.Exception __exception) 1414catch (global::System.Exception __exception) 1458catch (global::System.Exception __exception) 1502catch (global::System.Exception __exception) 1539catch (global::System.Exception __exception) 1583catch (global::System.Exception __exception) 1620catch (global::System.Exception __exception) 1657catch (global::System.Exception __exception) 1694catch (global::System.Exception __exception) 1731catch (global::System.Exception __exception) 1768catch (global::System.Exception __exception) 1805catch (global::System.Exception __exception) 1842catch (global::System.Exception __exception) 1886catch (global::System.Exception __exception) 1923catch (global::System.Exception __exception) 1960catch (global::System.Exception __exception) 2004catch (global::System.Exception __exception) 2041catch (global::System.Exception __exception) 2078catch (global::System.Exception __exception) 2122catch (global::System.Exception __exception) 2166catch (global::System.Exception __exception) 2210catch (global::System.Exception __exception) 2254catch (global::System.Exception __exception) 2298catch (global::System.Exception __exception) 2335catch (global::System.Exception __exception) 2382catch (global::System.Exception __exception) 2419catch (global::System.Exception __exception) 2456catch (global::System.Exception __exception) 2493catch (global::System.Exception __exception) 2530catch (global::System.Exception __exception) 2571catch (global::System.Exception __exception) 2614catch (global::System.Exception __exception) 2658catch (global::System.Exception __exception) 2695catch (global::System.Exception __exception) 2737catch (global::System.Exception __exception)
_generated\8\Microsoft.DiaSymReader.IMetadataImportProvider.cs (1)
89catch (global::System.Exception __exception)
_generated\9\Microsoft.DiaSymReader.ISymEncUnmanagedMethod.cs (5)
88catch (global::System.Exception __exception) 152catch (global::System.Exception __exception) 196catch (global::System.Exception __exception) 329catch (global::System.Exception __exception) 392catch (global::System.Exception __exception)
Reader\SymUnmanagedReaderFactory.cs (1)
57loadException: out var loadException);
SymUnmanagedFactory.cs (3)
193internal static unsafe object CreateObject(bool createReader, bool useAlternativeLoadPath, bool useComRegistry, out string moduleName, out Exception loadException) 267catch (Exception e) 289catch (Exception e)
Writer\SymUnmanagedWriterException.cs (3)
27public SymUnmanagedWriterException(string message, Exception innerException) 32public SymUnmanagedWriterException(string message, Exception innerException, string implementationModuleName) 38internal SymUnmanagedWriterException(Exception innerException, string implementationModuleName)
Writer\SymUnmanagedWriterFactory.cs (2)
47loadException: out var loadException); 89catch (Exception e)
Writer\SymUnmanagedWriterImpl.cs (30)
47private Exception PdbWritingException(Exception inner) 68catch (Exception ex) 111catch (Exception ex) 162catch (Exception ex) 175catch (Exception ex) 187catch (Exception ex) 227catch (Exception ex) 241catch (Exception ex) 255catch (Exception ex) 269catch (Exception ex) 283catch (Exception ex) 298catch (Exception ex) 324catch (Exception ex) 339catch (Exception ex) 413catch (Exception ex) 464catch (Exception ex) 501catch (Exception ex) 516catch (Exception ex) 545catch (Exception ex) 559catch (Exception ex) 573catch (Exception ex) 600catch (Exception ex) 627catch (Exception ex) 641catch (Exception ex) 666catch (Exception ex) 680catch (Exception ex) 707catch (Exception ex) 719catch (Exception ex) 761catch (Exception ex)
Microsoft.DotNet.ApiCompat.Task (5)
src\sdk\src\Tasks\Common\BuildErrorException.cs (1)
22public BuildErrorException(string message, Exception innerException) : base(message, innerException)
src\sdk\src\Tasks\Common\TaskBase.cs (4)
42catch (Exception e) 51private void LogErrorTelemetry(string eventName, Exception e) 58private static string ExceptionToStringWithoutMessage(Exception e) 85private static string NonAggregateExceptionToStringWithoutMessage(Exception e)
Microsoft.DotNet.Arcade.Sdk (4)
src\CheckRequiredDotNetVersion.cs (2)
50catch (Exception e) 75catch (Exception e)
src\DownloadFile.cs (1)
205catch (Exception e) when (e is HttpRequestException ||
src\GenerateChecksums.cs (1)
52catch (Exception e)
Microsoft.DotNet.Build.Manifest (1)
BuildModelFactory.cs (1)
192catch (Exception e)
Microsoft.DotNet.Build.Tasks.Feed (3)
src\PushToBuildStorage.cs (3)
356catch (Exception e) 576catch (Exception ex) when (IsIoRelatedException(ex)) 613static bool IsIoRelatedException(Exception e)
Microsoft.DotNet.Build.Tasks.Installers (5)
src\arcade\src\Common\Internal\BuildTask.cs (1)
53public void LogErrorFromException(Exception exception, bool showStackTrace)
src\CreateWixBuildWixpack.cs (3)
137catch (Exception e) 221catch (Exception ex) 624catch (Exception ex)
src\GenerateMacOSDistributionFile.cs (1)
123catch (Exception ex)
Microsoft.DotNet.Build.Tasks.Packaging (13)
GenerateNuSpec.cs (1)
100catch (Exception ex)
GeneratePackageReport.cs (2)
210catch (Exception ex) 310catch (Exception ex)
GetApplicableAssetsFromPackages.cs (1)
167catch (Exception ex)
GetPackageDescription.cs (1)
103catch (Exception excep)
HarvestPackage.cs (1)
186catch (Exception ex)
NuGetPack.cs (1)
323catch (Exception e)
NuGetUtility.cs (1)
45catch (Exception e)
PackageReport.cs (1)
85catch(Exception exception)
src\arcade\src\Common\Internal\BuildTask.cs (1)
53public void LogErrorFromException(Exception exception, bool showStackTrace)
ValidatePackage.cs (3)
465catch (Exception ex) 511catch (Exception ex) 529catch (Exception ex)
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
src\arcade\src\Common\Internal\BuildTask.cs (1)
53public void LogErrorFromException(Exception exception, bool showStackTrace)
Microsoft.DotNet.Build.Tasks.VisualStudio (4)
OptProf\FindLatestDrop.cs (1)
43catch (Exception e)
OptProf\GenerateTrainingInputFiles.cs (1)
52catch (Exception e)
OptProf\GetRunSettingsSessionConfiguration.cs (2)
89catch (Exception e) 116catch (Exception e)
Microsoft.DotNet.Build.Tasks.Workloads (3)
src\arcade\src\Common\Internal\BuildTask.cs (1)
53public void LogErrorFromException(Exception exception, bool showStackTrace)
Swix\SwixProjectBase.cs (1)
101/// <exception cref="Exception" />
WorkloadPackageBase.cs (1)
319/// <exception cref="Exception"></exception>
Microsoft.DotNet.Cli.CoreUtils (3)
ExceptionExtensions.cs (2)
9where TException : Exception 15public static bool ShouldBeDisplayedAsError(this Exception e) =>
GracefulException.cs (1)
35public GracefulException(string message, Exception? innerException = null, bool isUserError = true) : base(message, innerException)
Microsoft.DotNet.Cli.Definitions (1)
Commands\Test\TestCommandDefinition.cs (1)
96catch (Exception ex) when (ex is JsonException or IOException or UnauthorizedAccessException)
Microsoft.DotNet.Cli.Utils (8)
CommandAvailableAsDotNetToolException.cs (1)
12public CommandAvailableAsDotNetToolException(string commandName, Exception innerException) : base(
CommandUnknownException.cs (1)
18public CommandUnknownException(string commandName, Exception innerException) : base(
FilePermissionSettingException.cs (1)
16public FilePermissionSettingException(string message, Exception innerException) : base(message, innerException)
ITelemetryFilter.cs (1)
16IEnumerable<TelemetryEntryFormat> Filter(Exception exception);
MSBuildForwardingAppWithoutLogging.cs (1)
161catch (Exception exception)
TelemetryEventEntry.cs (2)
27public static void SendFiltered(Exception exception) => 59public IEnumerable<TelemetryEntryFormat> Filter(Exception exception) => s_emptyEntries;
UILanguageOverride.cs (1)
139catch (Exception ex) when (ex is SecurityException || ex is ObjectDisposedException)
Microsoft.DotNet.CMake.Sdk (3)
src\arcade\src\Common\Internal\BuildTask.cs (1)
53public void LogErrorFromException(Exception exception, bool showStackTrace)
src\CreateCMakeFileApiQuery.cs (1)
40catch (Exception ex)
src\GetCMakeArtifactsFromFileApi.cs (1)
207catch (Exception ex)
Microsoft.DotNet.Configurer (2)
ConfigurationException.cs (1)
16public ConfigurationException(string message, Exception innerException) : base(message, innerException)
UserLevelCacheWriter.cs (1)
50catch (Exception ex)
Microsoft.DotNet.GenFacades (4)
ClearAssemblyReferenceVersions.cs (1)
63catch (Exception e)
GenPartialFacadeSource.cs (1)
55catch (Exception e)
NotSupportedAssemblyGenerator.cs (1)
81catch(Exception ex)
src\arcade\src\Common\Internal\BuildTask.cs (1)
53public void LogErrorFromException(Exception exception, bool showStackTrace)
Microsoft.DotNet.HotReload.Utils.Generator (1)
DiffyException.cs (1)
19public DiffyException (string message, Exception innerException, int exitStatus) : base (message, innerException) {
Microsoft.DotNet.HotReload.Watch (43)
Aspire\AspireServiceFactory.cs (1)
188catch (Exception e)
Build\ProjectGraphFactory.cs (3)
75catch (Exception e) when (e is not OperationCanceledException) 85foreach (var inner in innerExceptions) 98void Report(Exception e)
FileWatcher\DirectoryWatcher.cs (2)
18public event EventHandler<Exception>? OnError; 40protected void NotifyError(Exception e)
FileWatcher\EventBasedDirectoryWatcher.cs (1)
38var exception = e.GetException();
FileWatcher\FileWatcher.cs (1)
154private void WatcherErrorHandler(object? sender, Exception error)
HotReload\CompilationHandler.cs (3)
308catch (Exception e) 449catch (Exception e) 523catch (Exception e)
HotReload\HotReloadDotNetWatcher.cs (2)
457catch (Exception) when (!(suppressWaitForFileChange = true)) 731catch (Exception e)
Process\LaunchSettingsProfile.cs (1)
52catch (Exception e)
Process\ProcessRunner.cs (6)
80catch (Exception e) 185catch (Exception e) 200catch (Exception e) 226catch (Exception e) 337catch (Exception e) 354catch (Exception e)
Process\RunningProject.cs (1)
82catch (Exception e)
src\sdk\src\Dotnet.Watch\AspireService\AspireServerService.cs (4)
196catch (Exception e) when (e is not OperationCanceledException) 355catch (Exception e) when (e is not OperationCanceledException) 364private async Task WriteResponseTextAsync(HttpResponse response, Exception ex, bool useRichErrorResponse) 439catch (Exception e) when (e is not OperationCanceledException)
src\sdk\src\Dotnet.Watch\AspireService\Helpers\ExceptionExtensions.cs (2)
16public static string GetMessageFromException(this Exception ex) 21foreach (var e in aggException.Flatten().InnerExceptions)
src\sdk\src\Dotnet.Watch\AspireService\Helpers\LoggerProvider.cs (2)
20public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
src\sdk\src\Dotnet.Watch\HotReloadClient\ClientTransport.cs (1)
50public abstract bool IsExpectedConnectionTermination(Exception exception, CancellationToken cancellationToken);
src\sdk\src\Dotnet.Watch\HotReloadClient\DefaultHotReloadClient.cs (3)
81catch (Exception e) when (e is not OperationCanceledException) 128catch (Exception e) when (e is not OperationCanceledException) 295catch (Exception e) when (e is not OperationCanceledException)
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadClient.cs (1)
168catch (Exception e)
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadClients.cs (1)
190catch (Exception e) when (e is not OperationCanceledException)
src\sdk\src\Dotnet.Watch\HotReloadClient\NamedPipeClientTransport.cs (1)
60public override bool IsExpectedConnectionTermination(Exception e, CancellationToken cancellationToken)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\BrowserConnection.cs (2)
62catch (Exception e) when (e is not OperationCanceledException) 89catch (Exception e) when (e is not OperationCanceledException)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAssetsManifest.cs (1)
98catch (Exception e)
src\sdk\src\Dotnet.Watch\HotReloadClient\WebSocketClientTransport.cs (2)
46public override bool IsExpectedConnectionTermination(Exception exception, CancellationToken cancellationToken) 140catch (Exception ex)
UI\IReporter.cs (2)
97public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.DotNet.HotReload.WebAssembly.Browser (15)
_generated\0\JSExports.g.cs (3)
51catch (global::System.Exception __arg_exception) 79catch (global::System.Exception __arg_exception) 112catch (global::System.Exception __arg_exception)
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (5)
94catch (Exception e) 198createdField.SetValue(null, new Action<Exception>(e => 210catch (Exception e) 243catch (Exception e) 266catch (Exception ex)
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (6)
122catch (Exception e) 139catch (Exception e) 231catch (Exception e) 247catch (Exception e) 254void ReportException(Exception e, MethodInfo method) 303catch (Exception e)
WebAssemblyHotReload.cs (1)
123catch (Exception e)
Microsoft.DotNet.MacOsPkg.Core (3)
MacOsPkgCore.cs (3)
34catch (Exception e) 79catch (Exception e) 119catch (Exception e)
Microsoft.DotNet.NuGetRepack.Tasks (8)
src\NuGetVersionUpdater.cs (4)
285var errors = new List<Exception>(); 362var errors = new List<Exception>(); 376catch (Exception e) 385private static void ThrowExceptions(IReadOnlyCollection<Exception> exceptions)
src\ReplacePackageParts.cs (2)
183catch (Exception e) 252catch (Exception)
src\UpdatePackageVersionTask.cs (2)
83foreach (var inner in e.InnerExceptions) 88catch (Exception e)
Microsoft.DotNet.PackageTesting (2)
GetCompatiblePackageTargetFrameworks.cs (1)
51catch (Exception e)
src\arcade\src\Common\Internal\BuildTask.cs (1)
53public void LogErrorFromException(Exception exception, bool showStackTrace)
Microsoft.DotNet.ProjectTools (2)
LaunchSettings\LaunchSettings.cs (1)
166catch (Exception ex) when (ex is JsonException or IOException)
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
992internal delegate void ErrorReporter(SourceText text, string path, TextSpan textSpan, string message, Exception? innerException = null);
Microsoft.DotNet.SharedFramework.Sdk (2)
src\arcade\src\Common\Internal\BuildTask.cs (1)
53public void LogErrorFromException(Exception exception, bool showStackTrace)
src\GenerateSharedFrameworkDepsFile.cs (1)
122catch (Exception ex)
Microsoft.DotNet.StrongName (6)
Signing.cs (4)
76catch(Exception) 100catch (Exception) 139/// <exception cref="Exception"></exception> 349catch (Exception)
StrongNameHelper.cs (1)
72/// <exception cref="Exception"></exception>
Verification.cs (1)
35catch (Exception)
Microsoft.DotNet.TemplateLocator (5)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (1)
56private Exception? _exceptionToThrow = null;
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 (3)
11public WorkloadManifestFormatException(string message, Exception inner) : base(message, inner) { } 19public WorkloadManifestCompositionException(string message, Exception inner) : base(message, inner) { } 27protected WorkloadManifestException(string message, Exception inner) : base(message, inner) { }
Microsoft.DotNet.VersionTools.Cli (2)
VersionTrimmingOperation.cs (2)
58catch (Exception e) 73catch (Exception e)
Microsoft.Extensions.AI (40)
ChatCompletion\AnonymousDelegatingChatClient.cs (2)
139Exception? error = null; 150catch (Exception ex)
ChatCompletion\FunctionInvokingChatClient.cs (6)
122/// case, the raw <see cref="Exception"/> object is available to application code by inspecting 1291catch (Exception e) when (!cancellationToken.IsCancellationRequested) 1449catch (Exception e) 1954private partial void LogInvocationFailed(string methodName, Exception error); 1991internal FunctionInvocationResult(bool terminate, FunctionInvocationStatus status, FunctionCallContent callContent, object? result, Exception? exception) 2010public Exception? Exception { get; }
ChatCompletion\LoggingChatClient.cs (4)
92catch (Exception ex) 125catch (Exception ex) 150catch (Exception ex) 193private partial void LogInvocationFailed(string methodName, Exception error);
ChatCompletion\OpenTelemetryChatClient.cs (6)
161Exception? error = null; 167catch (Exception ex) 197catch (Exception ex) 214Exception? error = null; 229catch (Exception ex) 675Exception? error,
ChatCompletion\OpenTelemetryImageGenerator.cs (3)
123Exception? error = null; 129catch (Exception ex) 220Exception? error,
Embeddings\LoggingEmbeddingGenerator.cs (2)
83catch (Exception ex) 105private partial void LogInvocationFailed(Exception error);
Embeddings\OpenTelemetryEmbeddingGenerator.cs (3)
114Exception? error = null; 119catch (Exception ex) 196Exception? error,
Image\LoggingImageGenerator.cs (2)
98catch (Exception ex) 123private partial void LogInvocationFailed(string methodName, Exception error);
SpeechToText\LoggingSpeechToTextClient.cs (4)
96catch (Exception ex) 129catch (Exception ex) 154catch (Exception ex) 207private partial void LogInvocationFailed(string methodName, Exception error);
SpeechToText\OpenTelemetrySpeechToTextClient.cs (6)
124Exception? error = null; 130catch (Exception ex) 156catch (Exception ex) 164Exception? error = null; 179catch (Exception ex) 251Exception? error,
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.AI.Abstractions (8)
AdditionalPropertiesDictionary{TValue}.cs (1)
177catch (Exception e) when (e is ArgumentException or FormatException or InvalidCastException or OverflowException)
Contents\FunctionCallContent.cs (3)
57public Exception? Exception { get; set; } 94Exception? parsingException = null; 100catch (Exception ex)
Contents\FunctionResultContent.cs (1)
62public Exception? Exception { get; set; }
Functions\AIFunctionFactory.cs (1)
1102catch (Exception e) when (e is ArgumentNullException or NullReferenceException)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.AI.Abstractions.Tests (5)
Contents\FunctionCallContentTests.cs (4)
72Exception e = new(); 388var exc = (Exception)Activator.CreateInstance(exceptionType)!; 397static Dictionary<string, object?> ThrowingParser(Exception ex) => throw ex;
Contents\FunctionResultContentTests.cs (1)
56Exception e = new();
Microsoft.Extensions.AI.Evaluation (3)
CompositeEvaluator.cs (1)
143catch (Exception ex)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.AI.Evaluation.Console (29)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Telemetry\DeviceIdHelper.cs (1)
51catch (Exception ex)
Telemetry\TelemetryConstants.cs (1)
169catch (Exception ex)
Telemetry\TelemetryExtensions.cs (7)
41catch (Exception ex) 62catch (Exception ex) 83catch (Exception ex) 103catch (Exception ex) 126catch (Exception ex) 149catch (Exception ex) 196Exception exception,
Telemetry\TelemetryHelper.cs (6)
62catch (Exception ex) 87catch (Exception ex) 114catch (Exception ex) 121Exception exception, 136catch (Exception ex) 153catch (Exception ex)
Utilities\ExceptionUtilities.cs (5)
11internal static bool IsCancellation(this Exception exception) => 21var toCheck = new Stack<Exception>(); 24var seen = new HashSet<Exception>(); 27while (toCheck.TryPop(out Exception? current)) 34foreach (var innerException in aggregateException.InnerExceptions)
Utilities\LoggerExtensions.cs (7)
12internal static bool LogException(this ILogger logger, Exception exception) 27catch (Exception ex) when (!ex.IsCancellation() && logger.LogException(ex) && swallowUnhandledExceptions) 43catch (Exception ex) when (!ex.IsCancellation() && logger.LogException(ex) && swallowUnhandledExceptions) 61catch (Exception ex) when (!ex.IsCancellation() && logger.LogException(ex) && swallowUnhandledExceptions) 76catch (Exception ex) when (!ex.IsCancellation() && logger.LogException(ex) && swallowUnhandledExceptions) 92catch (Exception ex) when (!ex.IsCancellation() && logger.LogException(ex) && swallowUnhandledExceptions) 110catch (Exception ex) when (!ex.IsCancellation() && logger.LogException(ex) && swallowUnhandledExceptions)
Microsoft.Extensions.AI.Evaluation.NLP (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.AI.Evaluation.Quality (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.AI.Evaluation.Reporting (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.AI.Evaluation.Safety (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.AI.Integration.Tests (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.AI.OpenAI (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.AI.Templates.Tests (1)
test\ProjectTemplates\Infrastructure\TestCommand.cs (1)
110catch (Exception ex)
Microsoft.Extensions.AI.Tests (4)
Functions\AIFunctionFactoryTest.cs (4)
122Exception e = await Assert.ThrowsAsync<ArgumentException>(() => f.InvokeAsync().AsTask()); 605Exception e = await Assert.ThrowsAsync<ArgumentException>("arguments.Services", () => f.InvokeAsync(new() { ["myInteger"] = 1 }).AsTask()); 628Exception e = await Assert.ThrowsAsync<ArgumentException>("arguments.Services", () => f.InvokeAsync(new() { ["myInteger"] = 1 }).AsTask()); 687Exception e = await Assert.ThrowsAsync<ArgumentException>(() => f.InvokeAsync(new() { ["myInteger"] = 1 }).AsTask());
Microsoft.Extensions.AmbientMetadata.Application (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.AmbientMetadata.Build (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.AsyncState (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.AsyncState.Tests (4)
AsyncStateTests.cs (4)
68catch (Exception ex) 118catch (Exception ex) 161catch (Exception ex) 190catch (Exception ex)
Microsoft.Extensions.Caching.Hybrid (19)
Internal\DefaultHybridCache.L2.cs (1)
169catch (Exception ex)
Internal\DefaultHybridCache.MutableCacheItem.cs (1)
49catch (Exception ex)
Internal\DefaultHybridCache.Serialization.cs (1)
72catch (Exception ex)
Internal\DefaultHybridCache.StampedeStateT.cs (6)
212catch (Exception ex) 228out HybridCachePayload.PayloadFlags flags, out ushort entropy, out TagSet pendingTags, out Exception? fault); 275catch (Exception ex) 375catch (Exception ex) 413catch (Exception ex) 419private void SetException(Exception ex)
Internal\HybridCachePayload.cs (2)
174out ArraySegment<byte> payload, out TimeSpan remainingTime, out PayloadFlags flags, out ushort entropy, out TagSet pendingTags, out Exception? fault) 320catch (Exception ex)
Internal\Log.cs (6)
25internal static partial void MaximumPayloadBytesExceeded(this ILogger logger, Exception e, int bytes); 32internal static partial void SerializationFailure(this ILogger logger, Exception e); 36internal static partial void DeserializationFailure(this ILogger logger, Exception e); 46internal static partial void CacheUnderlyingDataQueryFailure(this ILogger logger, Exception ex); 49internal static partial void CacheBackendWriteFailure(this ILogger logger, Exception ex); 64internal static partial void CacheBackendDataRejected(this ILogger logger, HybridCachePayloadParseResult reason, Exception? ex);
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Caching.Hybrid.Tests (5)
LogCollector.cs (4)
12private readonly List<(string categoryName, LogLevel logLevel, EventId eventId, Exception? exception, string message)> _items = []; 14public (string categoryName, LogLevel logLevel, EventId eventId, Exception? exception, string message)[] ToArray() 116void ILogger.Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
SqlServerTests.cs (1)
45catch (Exception ex)
Microsoft.Extensions.Caching.Memory (1)
CacheEntry.CacheEntryTokens.cs (1)
132catch (Exception e)
Microsoft.Extensions.Compliance.Abstractions (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Compliance.Redaction (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Compliance.Redaction.Tests (1)
HmacRedactorTest.cs (1)
79var e = Record.Exception(() => redactor.Redact(toRedact.AsSpan(), tooSmallBuffer));
Microsoft.Extensions.Compliance.Testing (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Configuration.Binder (9)
ConfigurationBinder.cs (9)
360if (isConfigurationExist && TryConvertValue(type, configValue, section?.Path, out object? convertedValue, out Exception? error)) 616catch (Exception ex) 799catch (Exception ex) 838catch (Exception ex) 894catch (Exception ex) 965catch (Exception ex) 981string? value, string? path, out object? result, out Exception? error) 1010catch (Exception ex) 1041TryConvertValue(type, value, path, out object? result, out Exception? error);
Microsoft.Extensions.Configuration.FileExtensions (2)
FileConfigurationProvider.cs (1)
101catch (Exception ex)
FileLoadExceptionContext.cs (1)
21public Exception Exception { get; set; } = null!;
Microsoft.Extensions.DataIngestion (11)
IngestionPipeline.cs (3)
122private static void TraceException(Activity? activity, Exception ex) 149Exception? failure = null; 159catch (Exception ex)
IngestionResult.cs (2)
27public Exception? Exception { get; } 34internal IngestionResult(string documentId, IngestionDocument? document, Exception? exception)
Log.cs (2)
33internal static partial void IngestingFailed(this ILogger logger, Exception exception, string identifier); 39internal static partial void UnexpectedEnricherFailure(this ILogger logger, Exception exception);
Processors\ImageAlternativeTextEnricher.cs (1)
115catch (Exception ex)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Utils\Batching.cs (1)
57catch (Exception ex)
Microsoft.Extensions.DataIngestion.Abstractions (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.DataIngestion.Markdig (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.DataIngestion.MarkItDown (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.DataIngestion.Tests (1)
Readers\DocumentReaderConformanceTests.cs (1)
173catch (Exception ex)
Microsoft.Extensions.DependencyInjection (14)
DependencyInjectionEventSource.cs (1)
142public void ServiceRealizationFailed(Exception exception, int serviceProviderHashCode)
ServiceLookup\DynamicServiceProviderEngine.cs (1)
40catch (Exception ex)
ServiceLookup\ServiceProviderEngineScope.cs (8)
143catch (Exception exception) 183catch (Exception exception) 199catch (Exception exception) 222catch (Exception exception) 232private static void AddExceptionToCache(ref object? exceptionsCache, Exception exception) 240exceptionsCache = new List<Exception> { exceptionInfo.SourceException, exception }; 244((List<Exception>)exceptionsCache).Add(exception); 260throw new AggregateException((List<Exception>)exceptionsCache);
ServiceProvider.cs (4)
75List<Exception>? exceptions = null; 82catch (Exception e) 84exceptions ??= new List<Exception>(); 251catch (Exception e)
Microsoft.Extensions.DependencyInjection.AutoActivation (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (10)
ExceptionSummarizer.cs (2)
31public ExceptionSummary Summarize(Exception exception) 84Exception exception,
ExceptionSummary.cs (1)
14/// to represent values that are highly variable, such as the result of <see cref="Exception.ToString"/>.
HttpExceptionSummaryProvider.cs (1)
82public int Describe(Exception exception, out string? additionalDetails)
IExceptionSummarizer.cs (3)
14/// Gives the best available summary of a given <see cref="Exception"/> for telemetry. 17/// <returns>The summary of the given <see cref="Exception"/>.</returns> 18ExceptionSummary Summarize(Exception exception);
IExceptionSummaryProvider.cs (1)
29int Describe(Exception exception, out string? additionalDetails);
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Diagnostics.HealthChecks (29)
_generated\0\LoggerMessage.g.cs (18)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __HealthCheckProcessingBeginCallback = 27private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus, double, global::System.Exception?> __HealthCheckProcessingEndCallback = 43private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::System.Exception?> __HealthCheckBeginCallback = 59private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus, double, string?, global::System.Exception?> __HealthCheckEndHealthyCallback = 75private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus, double, string?, global::System.Exception?> __HealthCheckEndDegradedCallback = 83private static partial void HealthCheckEndDegraded(global::Microsoft.Extensions.Logging.ILogger logger, string HealthCheckName, global::Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus HealthStatus, double ElapsedMilliseconds, string? HealthCheckDescription, global::System.Exception? exception) 91private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, global::Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus, double, string?, global::System.Exception?> __HealthCheckEndUnhealthyCallback = 99private static partial void HealthCheckEndUnhealthy(global::Microsoft.Extensions.Logging.ILogger logger, string HealthCheckName, global::Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus HealthStatus, double ElapsedMilliseconds, string? HealthCheckDescription, global::System.Exception? exception) 107private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, double, global::System.Exception?> __HealthCheckErrorCallback = 115private static partial void HealthCheckError(global::Microsoft.Extensions.Logging.ILogger logger, string HealthCheckName, double ElapsedMilliseconds, global::System.Exception exception) 132private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Exception?> __HealthCheckPublisherProcessingBeginCallback = 148private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, double, global::System.Exception?> __HealthCheckPublisherProcessingEndCallback = 156private static partial void HealthCheckPublisherProcessingEnd(global::Microsoft.Extensions.Logging.ILogger logger, double ElapsedMilliseconds, global::System.Exception? exception) 164private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheckPublisher, global::System.Exception?> __HealthCheckPublisherBeginCallback = 180private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheckPublisher, double, global::System.Exception?> __HealthCheckPublisherEndCallback = 196private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheckPublisher, double, global::System.Exception?> __HealthCheckPublisherErrorCallback = 204private static partial void HealthCheckPublisherError(global::Microsoft.Extensions.Logging.ILogger logger, global::Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheckPublisher HealthCheckPublisher, double ElapsedMilliseconds, global::System.Exception exception) 212private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheckPublisher, double, global::System.Exception?> __HealthCheckPublisherTimeoutCallback =
DefaultHealthCheckService.cs (5)
136catch (Exception ex) when (ex as OperationCanceledException == null) 224private static partial void HealthCheckEndDegraded(ILogger logger, string HealthCheckName, HealthStatus HealthStatus, double ElapsedMilliseconds, string? HealthCheckDescription, Exception? exception); 227private static partial void HealthCheckEndUnhealthy(ILogger logger, string HealthCheckName, HealthStatus HealthStatus, double ElapsedMilliseconds, string? HealthCheckDescription, Exception? exception); 248private static partial void HealthCheckError(ILogger logger, string HealthCheckName, double ElapsedMilliseconds, Exception exception); 250public static void HealthCheckError(ILogger logger, HealthCheckRegistration registration, Exception exception, TimeSpan duration) =>
HealthCheckPublisherHostedService.cs (6)
167catch (Exception ex) 225catch (Exception ex) 255public static void HealthCheckPublisherProcessingEnd(ILogger logger, TimeSpan duration, Exception? exception = null) => 259private static partial void HealthCheckPublisherProcessingEnd(ILogger logger, double ElapsedMilliseconds, Exception? exception = null); 270public static void HealthCheckPublisherError(ILogger logger, IHealthCheckPublisher publisher, TimeSpan duration, Exception exception) => 274private static partial void HealthCheckPublisherError(ILogger logger, IHealthCheckPublisher HealthCheckPublisher, double ElapsedMilliseconds, Exception exception);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Diagnostics.Probes (3)
Log.cs (1)
12public static partial void SocketExceptionCaughtTcpEndpoint(this ILogger logger, Exception e);
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Diagnostics.Probes.Tests (1)
KubernetesProbesOptionsValidatorTests.cs (1)
90catch (Exception ex)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (13)
Linux\Disk\DiskStatsReader.cs (1)
48catch (Exception)
Linux\Disk\LinuxSystemDiskMetrics.cs (2)
173catch (Exception ex) when ( 182catch (Exception ex)
Linux\LinuxUtilizationProvider.cs (1)
332catch (Exception ex) when (
Linux\Network\LinuxNetworkMetrics.cs (1)
101catch (Exception ex) when (
Log.cs (2)
16Exception e); 21Exception e,
ResourceMonitorService.cs (2)
113catch (Exception e) 136catch (Exception e)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Windows\Disk\WindowsDiskMetrics.cs (2)
99catch (Exception ex) 125catch (Exception ex)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (8)
ResourceMonitoringServiceTests.cs (7)
105var exception = Record.Exception(() => 619var exception = Record.Exception(() => 643var exception = await Record.ExceptionAsync(async () => 681var exception = Record.Exception(() => _ = tracker.GetUtilization(TimeSpan.FromSeconds(1))); 705var exception = Record.Exception(() => tracker.GetUtilization(TimeSpan.FromSeconds(6))); 728var exception = Record.Exception(() => tracker.GetUtilization(TimeSpan.FromSeconds(6))); 740var r = await Record.ExceptionAsync(async () =>
Windows\WindowsSnapshotProviderTests.cs (1)
59var exception = Record.Exception(() => provider.GetSnapshot());
Microsoft.Extensions.Diagnostics.Testing (7)
Logging\FakeLogger.cs (3)
74public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 131var exception = rec.Exception is not null ? new Exception(rec.Exception) : null;
Logging\FakeLogRecord.cs (2)
27public FakeLogRecord(LogLevel level, EventId id, object? state, Exception? exception, string message, IReadOnlyList<object?> scopes, string? category, bool enabled, DateTimeOffset timestamp) 94public Exception? Exception { get; }
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.DotNetDeltaApplier (15)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\Listener.cs (4)
40catch (Exception e) 59catch (Exception e) when (e is not OperationCanceledException) 126catch (Exception e) 146catch (Exception e)
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (5)
94catch (Exception e) 198createdField.SetValue(null, new Action<Exception>(e => 210catch (Exception e) 243catch (Exception e) 266catch (Exception ex)
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (6)
122catch (Exception e) 139catch (Exception e) 231catch (Exception e) 247catch (Exception e) 254void ReportException(Exception e, MethodInfo method) 303catch (Exception e)
Microsoft.Extensions.FileProviders.Physical (7)
Internal\FileSystemInfoHelper.cs (1)
62catch (Exception ex) when (ex is IOException or UnauthorizedAccessException)
PhysicalDirectoryInfo.cs (1)
100catch (Exception ex) when (ex is DirectoryNotFoundException or IOException)
PhysicalFilesWatcher.cs (5)
352catch (Exception ex) when (ex is IOException or SecurityException or DirectoryNotFoundException or UnauthorizedAccessException) 427catch (Exception ex) when (ex is IOException or SecurityException or UnauthorizedAccessException) 511catch (Exception ex) when (ex is IOException or SecurityException or DirectoryNotFoundException or UnauthorizedAccessException) 626catch (Exception ex) when (ex is ArgumentException or IOException) 921catch (Exception ex) when (ex is ArgumentException or IOException)
Microsoft.Extensions.Hosting (23)
Internal\ApplicationLifetime.cs (3)
58catch (Exception ex) 76catch (Exception ex) 93catch (Exception ex)
Internal\Host.cs (14)
34private List<Exception>? _backgroundServiceExceptions; 89List<Exception> exceptions = new(); 103catch (Exception ex) 164Exception singleException = exceptions[0]; 194catch (Exception ex) 207List<Exception> exceptions = LazyInitializer.EnsureInitialized(ref _backgroundServiceExceptions); 242List<Exception> exceptions = new(); 291catch (Exception ex) 317List<Exception>? backgroundServiceExceptions = Volatile.Read(ref _backgroundServiceExceptions); 331Exception singleException = exceptions[0]; 352List<Exception> exceptions, 369catch (Exception ex) 402catch (Exception ex) 423catch (Exception ex)
Internal\HostingLoggerExtensions.cs (6)
13public static void ApplicationError(this ILogger logger, EventId eventId, string? message, Exception? exception) 17foreach (Exception? ex in reflectionTypeLoadException.LoaderExceptions) 72public static void StoppedWithException(this ILogger logger, Exception ex) 83public static void BackgroundServiceFaulted(this ILogger logger, Exception? ex) 94public static void BackgroundServiceStoppingHost(this ILogger logger, Exception? ex) 105public static void HostedServiceStartupFaulted(this ILogger logger, Exception? ex)
Microsoft.Extensions.Hosting.Abstractions (1)
HostAbortedException.cs (1)
55public HostAbortedException(string? message, Exception? innerException) : base(message ?? SR.HostAbortedExceptionMessage, innerException) { }
Microsoft.Extensions.Hosting.Testing (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Hosting.Testing.Tests (10)
FakeHostBuilderTests.cs (4)
135var exception = Record.Exception(() => hostBuilder.Build()); 153var exception = Record.Exception(() => hostBuilder.Build()); 167var exception = Record.Exception(() => hostBuilder.Build()); 184var exception = Record.Exception(() => hostBuilder.Build());
HostingFakesExtensionsTests.cs (6)
21var exception = await Record.ExceptionAsync(() => ((IHostedService)null!).StartAndStopAsync()); 51var exception = Record.Exception(() => host.GetFakeLogCollector()); 73var exception = Record.Exception(() => host.GetFakeRedactionCollector()); 93var exception = Record.Exception(() => ((IHostBuilder)null!).Configure(_ => { })); 100var exception = Record.Exception(() => new HostBuilder().Configure(null!)); 109var exception = Record.Exception(() => builderMock.Object.Configure(null!));
Microsoft.Extensions.Hosting.WindowsServices (2)
Internal\Win32.cs (1)
37catch (Exception)
WindowsServiceLifetime.cs (1)
107catch (Exception ex)
Microsoft.Extensions.Http (16)
DefaultHttpClientFactory.cs (6)
289catch (Exception ex) 326private static readonly Action<ILogger, int, Exception?> _cleanupCycleStart = LoggerMessage.Define<int>( 331private static readonly Action<ILogger, double, int, int, Exception?> _cleanupCycleEnd = LoggerMessage.Define<double, int, int>( 336private static readonly Action<ILogger, string, Exception> _cleanupItemFailed = LoggerMessage.Define<string>( 341private static readonly Action<ILogger, double, string, Exception?> _handlerExpired = LoggerMessage.Define<double, string>( 363public static void CleanupItemFailed(Lazy<ILogger> loggerLazy, string clientName, Exception exception)
Logging\HttpClientLoggerHandler.cs (2)
50catch (Exception exception) 82catch (Exception exception)
Logging\IHttpClientAsyncLogger.cs (1)
63ValueTask LogRequestFailedAsync(object? context, HttpRequestMessage request, HttpResponseMessage? response, Exception exception, TimeSpan elapsed, CancellationToken cancellationToken = default);
Logging\IHttpClientLogger.cs (1)
49void LogRequestFailed(object? context, HttpRequestMessage request, HttpResponseMessage? response, Exception exception, TimeSpan elapsed);
Logging\LogHelper.cs (6)
35private static readonly Action<ILogger, HttpMethod, string?, Exception?> _requestStart = LoggerMessage.Define<HttpMethod, string?>( 41private static readonly Action<ILogger, double, int, Exception?> _requestEnd = LoggerMessage.Define<double, int>( 46private static readonly Action<ILogger, double, Exception?> _requestFailed = LoggerMessage.Define<double>( 53private static readonly Action<ILogger, HttpMethod, string?, Exception?> _requestPipelineStart = LoggerMessage.Define<HttpMethod, string?>( 58private static readonly Action<ILogger, double, int, Exception?> _requestPipelineEnd = LoggerMessage.Define<double, int>( 63private static readonly Action<ILogger, double, Exception?> _requestPipelineFailed = LoggerMessage.Define<double>(
Microsoft.Extensions.Http.Diagnostics (19)
Http\HttpDependencyMetadataResolver.cs (1)
74catch (Exception)
Latency\Internal\HttpClientLatencyLogEnricher.cs (1)
39public void Enrich(IEnrichmentTagCollector collector, HttpRequestMessage? request, HttpResponseMessage? response, Exception? exception)
Logging\IHttpClientLogEnricher.cs (2)
21/// <param name="exception">An optional <see cref="Exception"/> that was thrown within the outgoing HTTP request processing.</param> 26void Enrich(IEnrichmentTagCollector collector, HttpRequestMessage request, HttpResponseMessage? response, Exception? exception);
Logging\Internal\HttpClientLogger.cs (7)
88catch (Exception ex) 122Exception exception, 133public void LogRequestFailed(object? context, HttpRequestMessage request, HttpResponseMessage? response, Exception exception, TimeSpan elapsed) 154Exception? exception, 194catch (Exception ex) 219HttpRequestMessage request, HttpResponseMessage? response, Exception? exception) 227catch (Exception e)
Logging\Internal\Log.cs (8)
40private static readonly Func<LoggerMessageState, Exception?, string> _originalFormatValueFmtFunc = OriginalFormatValueFmt; 47public static void OutgoingRequestError(ILogger logger, LogRecord record, Exception exception) 55Exception exception, 63Exception exception, 71Exception? exception, 79Exception exception, 87ILogger logger, LogLevel level, int eventId, string eventName, LogRecord record, Exception? exception = null) 161private static string OriginalFormatValueFmt(LoggerMessageState request, Exception? _)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (4)
BenchEnricher.cs (1)
15public void Enrich(IEnrichmentTagCollector collector, HttpRequestMessage request, HttpResponseMessage? response, Exception? exception)
DropMessageLogger.cs (3)
11internal static readonly Func<LogLevel, EventId, object, Exception, object?> CreateLogRecord 23public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Http.Diagnostics.Tests (14)
Logging\HttpClientLoggerTest.cs (11)
153var exception = await Record.ExceptionAsync(act); 705enricher1.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1)); 706enricher2.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1)); 748enricher1.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1)); 749enricher2.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1)); 758.Setup(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>())) 791enricher1.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1)); 792enricher2.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1)); 801.Setup(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>())) 837enricher1.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1)); 838enricher2.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1));
Logging\Internal\EmptyEnricher.cs (1)
12public void Enrich(IEnrichmentTagCollector collector, HttpRequestMessage request, HttpResponseMessage? response, Exception? exception)
Logging\Internal\EnricherWithCounter.cs (1)
14public void Enrich(IEnrichmentTagCollector collector, HttpRequestMessage request, HttpResponseMessage? response, Exception? exception)
Logging\Internal\TestEnricher.cs (1)
29public void Enrich(IEnrichmentTagCollector tagCollector, HttpRequestMessage request, HttpResponseMessage? response, Exception? exception)
Microsoft.Extensions.Http.Resilience (5)
Hedging\HttpClientHedgingResiliencePredicates.cs (1)
47internal static bool IsTransientHttpException(Exception exception)
Polly\HttpClientResiliencePredicates.cs (1)
46internal static bool IsTransientHttpException(Exception exception)
Resilience\ResilienceHandler.cs (1)
80catch (Exception e)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Http.Resilience.Tests (7)
Hedging\OperationCanceledExceptionMock.cs (1)
10public OperationCanceledExceptionMock(Exception innerException)
Hedging\StandardHedgingTests.cs (1)
340var ex = await Record.ExceptionAsync(async () =>
Polly\HttpCircuitBreakerStrategyOptionsTests.cs (2)
66public async Task ShouldHandleException_DefaultValue_ShouldClassify(Exception exception, bool expectedToHandle) 72private CircuitBreakerPredicateArguments<HttpResponseMessage> CreateArgs(Exception error)
Polly\HttpClientResiliencePredicatesTests.cs (1)
34public void IsTransientHttpException_Exception_ShouldClassify(Exception ex, bool expectedCondition)
Polly\HttpRetryStrategyOptionsTests.cs (2)
67public async Task ShouldHandleException_DefaultValue_ShouldClassify(Exception exception, CancellationToken? token, bool expectedToHandle) 91public async Task ShouldHandleException_DefaultInstance_ShouldClassify(Exception exception, CancellationToken? token, bool expectedToHandle)
Microsoft.Extensions.Identity.Core (46)
UserManager.cs (39)
495catch (Exception ex) 540catch (Exception ex) 569catch (Exception ex) 652catch (Exception ex) 734catch (Exception ex) 776catch (Exception ex) 840catch (Exception ex) 887catch (Exception ex) 933catch (Exception ex) 1004catch (Exception ex) 1102catch (Exception ex) 1127catch (Exception ex) 1202catch (Exception ex) 1233catch (Exception ex) 1276catch (Exception ex) 1316catch (Exception ex) 1356catch (Exception ex) 1447catch (Exception ex) 1539catch (Exception ex) 1631catch (Exception ex) 1700catch (Exception ex) 1760catch (Exception ex) 1787catch (Exception ex) 1894catch (Exception ex) 1927catch (Exception ex) 2001catch (Exception ex) 2031catch (Exception ex) 2077catch (Exception ex) 2127catch (Exception ex) 2180catch (Exception ex) 2230catch (Exception ex) 2251catch (Exception ex) 2360catch (Exception ex) 2388catch (Exception ex) 2425catch (Exception ex) 2468catch (Exception ex) 2567catch (Exception ex) 2617catch (Exception ex) 2703catch (Exception ex)
UserManagerMetrics.cs (7)
72internal void CreateUser(string userType, IdentityResult? result, long startTimestamp, Exception? exception = null) 90internal void UpdateUser(string userType, IdentityResult? result, UserUpdateType updateType, long startTimestamp, Exception? exception = null) 109internal void DeleteUser(string userType, IdentityResult? result, long startTimestamp, Exception? exception = null) 127internal void CheckPassword(string userType, bool? userMissing, PasswordVerificationResult? result, Exception? exception = null) 147internal void VerifyToken(string userType, bool? result, string purpose, Exception? exception = null) 168internal void GenerateToken(string userType, string purpose, Exception? exception = null) 228private static void AddErrorTag(ref TagList tags, Exception? exception, IdentityResult? result = null)
Microsoft.Extensions.Localization (1)
_generated\0\LoggerMessage.g.cs (1)
11private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string, string, global::System.Globalization.CultureInfo, global::System.Exception?> __SearchedLocationCallback =
Microsoft.Extensions.Logging (16)
Logger.cs (16)
27public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 35List<Exception>? exceptions = null; 52static void LoggerLog(LogLevel logLevel, EventId eventId, ILogger logger, Exception? exception, Func<TState, Exception?, string> formatter, ref List<Exception>? exceptions, in TState state) 58catch (Exception ex) 60exceptions ??= new List<Exception>(); 74List<Exception>? exceptions = null; 97static bool LoggerIsEnabled(LogLevel logLevel, ILogger logger, ref List<Exception>? exceptions) 106catch (Exception ex) 108exceptions ??= new List<Exception>(); 131List<Exception>? exceptions = null; 140catch (Exception ex) 142exceptions ??= new List<Exception>(); 155private static void ThrowLoggingError(List<Exception> exceptions)
Microsoft.Extensions.Logging.Abstractions (56)
ILogger.cs (2)
23void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter);
LogEntry.cs (4)
22public LogEntry(LogLevel logLevel, string category, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 55public Exception? Exception { get; } 60public Func<TState, Exception?, string> Formatter { get; }
LoggerExtensions.cs (16)
13private static readonly Func<FormattedLogValues, Exception?, string> _messageFormatter = MessageFormatter; 30public static void LogDebug(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args) 64public static void LogDebug(this ILogger logger, Exception? exception, string? message, params object?[] args) 100public static void LogTrace(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args) 134public static void LogTrace(this ILogger logger, Exception? exception, string? message, params object?[] args) 170public static void LogInformation(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args) 204public static void LogInformation(this ILogger logger, Exception? exception, string? message, params object?[] args) 240public static void LogWarning(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args) 274public static void LogWarning(this ILogger logger, Exception? exception, string? message, params object?[] args) 310public static void LogError(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args) 344public static void LogError(this ILogger logger, Exception? exception, string? message, params object?[] args) 380public static void LogCritical(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args) 414public static void LogCritical(this ILogger logger, Exception? exception, string? message, params object?[] args) 468public static void Log(this ILogger logger, LogLevel logLevel, Exception? exception, string? message, params object?[] args) 482public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, Exception? exception, string? message, params object?[] args) 515private static string MessageFormatter(FormattedLogValues state, Exception? error)
LoggerMessage.cs (28)
130public static Action<ILogger, Exception?> Define(LogLevel logLevel, EventId eventId, string formatString) 141public static Action<ILogger, Exception?> Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) 145void Log(ILogger logger, Exception? exception) 172public static Action<ILogger, T1, Exception?> Define<T1>(LogLevel logLevel, EventId eventId, string formatString) 184public static Action<ILogger, T1, Exception?> Define<T1>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) 188void Log(ILogger logger, T1 arg1, Exception? exception) 216public static Action<ILogger, T1, T2, Exception?> Define<T1, T2>(LogLevel logLevel, EventId eventId, string formatString) 229public static Action<ILogger, T1, T2, Exception?> Define<T1, T2>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) 233void Log(ILogger logger, T1 arg1, T2 arg2, Exception? exception) 262public static Action<ILogger, T1, T2, T3, Exception?> Define<T1, T2, T3>(LogLevel logLevel, EventId eventId, string formatString) 276public static Action<ILogger, T1, T2, T3, Exception?> Define<T1, T2, T3>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) 280void Log(ILogger logger, T1 arg1, T2 arg2, T3 arg3, Exception? exception) 310public static Action<ILogger, T1, T2, T3, T4, Exception?> Define<T1, T2, T3, T4>(LogLevel logLevel, EventId eventId, string formatString) 325public static Action<ILogger, T1, T2, T3, T4, Exception?> Define<T1, T2, T3, T4>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) 329void Log(ILogger logger, T1 arg1, T2 arg2, T3 arg3, T4 arg4, Exception? exception) 360public static Action<ILogger, T1, T2, T3, T4, T5, Exception?> Define<T1, T2, T3, T4, T5>(LogLevel logLevel, EventId eventId, string formatString) 376public static Action<ILogger, T1, T2, T3, T4, T5, Exception?> Define<T1, T2, T3, T4, T5>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) 380void Log(ILogger logger, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, Exception? exception) 412public static Action<ILogger, T1, T2, T3, T4, T5, T6, Exception?> Define<T1, T2, T3, T4, T5, T6>(LogLevel logLevel, EventId eventId, string formatString) 429public static Action<ILogger, T1, T2, T3, T4, T5, T6, Exception?> Define<T1, T2, T3, T4, T5, T6>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options) 433void Log(ILogger logger, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, Exception? exception) 468public static readonly Func<LogValues, Exception?, string> Callback = (state, exception) => state.ToString(); 506public static readonly Func<LogValues<T0>, Exception?, string> Callback = (state, exception) => state.ToString(); 554public static readonly Func<LogValues<T0, T1>, Exception?, string> Callback = (state, exception) => state.ToString(); 605public static readonly Func<LogValues<T0, T1, T2>, Exception?, string> Callback = (state, exception) => state.ToString(); 660public static readonly Func<LogValues<T0, T1, T2, T3>, Exception?, string> Callback = (state, exception) => state.ToString(); 721public static readonly Func<LogValues<T0, T1, T2, T3, T4>, Exception?, string> Callback = (state, exception) => state.ToString(); 786public static readonly Func<LogValues<T0, T1, T2, T3, T4, T5>, Exception?, string> Callback = (state, exception) => state.ToString();
LoggerT.cs (2)
45void ILogger.Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
NullLogger.cs (2)
38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
NullLoggerT.cs (2)
33Exception? exception, 34Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Logging.Configuration (1)
_generated\0\BindingExtensions.g.cs (1)
78catch (Exception exception)
Microsoft.Extensions.Logging.Console (8)
_generated\0\BindingExtensions.g.cs (4)
562catch (Exception exception) 574catch (Exception exception) 586catch (Exception exception) 598catch (Exception exception)
ConsoleLogger.cs (2)
46public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
JsonConsoleFormatter.cs (1)
77writer.WriteString(nameof(Exception), exception);
src\runtime\src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
91public override void Complete(Exception? exception = null) => throw new NotImplementedException();
Microsoft.Extensions.Logging.Debug (2)
DebugLogger.cs (2)
39public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Logging.EventLog (4)
_generated\0\BindingExtensions.g.cs (1)
156catch (Exception exception)
EventLogLogger.cs (2)
74Exception? exception, 75Func<TState, Exception?, string> formatter)
WindowsEventLog.cs (1)
62catch (Exception)
Microsoft.Extensions.Logging.EventSource (4)
EventSourceLogger.cs (3)
63public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 238private static ExceptionInfo GetExceptionInfo(Exception? exception)
ExceptionInfo.cs (1)
20public ExceptionInfo(Exception exception)
Microsoft.Extensions.Logging.MSBuild (4)
MSBuildLogger.cs (4)
61public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 89private static MSBuildMessageParameters FormatMessage<TState>(string category, TState state, Exception? exception, Func<TState, Exception?, string> formatter, IExternalScopeProvider? scopeProvider)
Microsoft.Extensions.Logging.TraceSource (2)
TraceSourceLogger.cs (2)
27public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.ML (14)
ModelLoaders\FileModelLoader.cs (6)
89catch (Exception ex) 159private static readonly Action<ILogger, string, Exception> _fileLoadBegin = LoggerMessage.Define<string>( 164private static readonly Action<ILogger, string, double, Exception> _fileLoadEnd = LoggerMessage.Define<string, double>( 169private static readonly Action<ILogger, string, double, Exception> _fileReloadError = LoggerMessage.Define<string, double>( 174private static readonly Action<ILogger, string, double, Exception> _fileReLoad = LoggerMessage.Define<string, double>( 189public static void FileReloadError(ILogger logger, string filePath, TimeSpan duration, Exception exception)
ModelLoaders\UriModelLoader.cs (8)
95catch (Exception ex) 157catch (Exception ex) 193private static readonly Action<ILogger, Uri, Exception> _uriReloadBegin = LoggerMessage.Define<Uri>( 198private static readonly Action<ILogger, Uri, double, Exception> _uriReloadEnd = LoggerMessage.Define<Uri, double>( 203private static readonly Action<ILogger, Uri, double, Exception> _uriReloadError = LoggerMessage.Define<Uri, double>( 208private static readonly Action<ILogger, Uri, Exception> _uriLoadError = LoggerMessage.Define<Uri>( 223public static void UriReloadError(ILogger logger, Uri uri, TimeSpan duration, Exception exception) 228public static void UriLoadError(ILogger logger, Uri uri, Exception exception)
Microsoft.Extensions.ObjectPool.DependencyInjection (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Options (1)
ValidateOnStart.cs (1)
22List<Exception>? exceptions = null;
Microsoft.Extensions.Options.Contextual (5)
Internal\ContextualOptionsFactory.cs (3)
79List<Exception>? loadExceptions = null; 88catch (Exception e) 106catch (Exception e)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Primitives (2)
StringSegment.cs (2)
682Exception GetInvalidArgumentsException() 708Exception GetInvalidArgumentsException(bool hasValue)
Microsoft.Extensions.Resilience (3)
Resilience\Internal\ResilienceMetricsEnricher.cs (1)
29if (_exceptionSummarizer is not null && outcome?.Exception is Exception e)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Resilience.Tests (1)
Resilience\ResilienceMetricsEnricherTests.cs (1)
39_summarizer!.Setup(v => v.Summarize(It.IsAny<Exception>())).Returns(new ExceptionSummary("type", "desc", "details"));
Microsoft.Extensions.ServiceDiscovery (9)
Internal\ServiceEndpointResolverResult.cs (2)
13internal sealed class ServiceEndpointResolverResult(ServiceEndpointSource? endpointSource, Exception? exception) 18public Exception? Exception { get; } = exception;
ServiceEndpointWatcher.cs (4)
133Exception? error = null; 193catch (Exception exception) 218catch (Exception exception) 276catch (Exception exception)
ServiceEndpointWatcher.Log.cs (1)
40public static partial void ResolutionFailed(ILogger logger, Exception exception, string serviceName);
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.ServiceDiscovery.Abstractions (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.ServiceDiscovery.Dns (5)
Resolver\DnsResolver.cs (1)
391catch (Exception ex) when (!cancellationToken.IsCancellationRequested)
Resolver\DnsResolver.Log.cs (2)
34public static partial void NetworkError(ILogger logger, QueryType queryType, string queryName, IPEndPoint server, int attempt, Exception exception); 37public static partial void QueryError(ILogger logger, QueryType queryType, string queryName, IPEndPoint server, int attempt, Exception exception);
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (6)
Resolver\RetryTests.cs (1)
28catch (Exception ex)
ServiceDiscoveryDnsServiceCollectionExtensionsTests.cs (2)
25var exception = Record.Exception(() => serviceProvider.GetServices<IServiceEndpointProviderFactory>()); 37var exception = Record.Exception(() => serviceProvider.GetServices<IServiceEndpointProviderFactory>());
XunitLoggerFactoryExtensions.cs (3)
78LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 123catch (Exception)
Microsoft.Extensions.ServiceDiscovery.Yarp (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Telemetry (33)
Logging\ExtendedLogger.cs (26)
52public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 59ModernPath(logLevel, eventId, msgState, exception, (Func<LoggerMessageState, Exception?, string>)(object)formatter); 82List<Exception>? exceptions = null; 89catch (Exception ex) 105List<Exception>? exceptions = null; 119catch (Exception ex) 132private static void HandleExceptions(IEnumerable<Exception>? exceptions) 140private static void RecordException(Exception exception, EnrichmentTagCollector tags, LoggerConfig config) 155private static string GetExceptionStackTrace(Exception exception, LoggerConfig config) 173void HandleException(Exception exception, int indent) 204foreach (var ex in aggregateException.InnerExceptions) 216private void ModernPath(LogLevel logLevel, EventId eventId, LoggerMessageState msgState, Exception? exception, Func<LoggerMessageState, Exception?, string> formatter) 250List<Exception>? exceptions = null; 259catch (Exception ex) 291Func<LoggerMessageState, Exception?, string> fmt = s.Formatter!; 337Func<LoggerMessageState, Exception?, string>? fmt = s.Formatter!; 341catch (Exception ex) 362private void LegacyPath<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 372List<Exception>? exceptions = null; 381catch (Exception ex) 431var fmt = (Func<TState, Exception?, string>)s.Formatter!; 477var fmt = (Func<TState, Exception?, string>)s.Formatter!; 481catch (Exception ex)
Logging\ExtendedLogger.ModernTagJoiner.cs (1)
19public Func<LoggerMessageState, Exception?, string>? Formatter;
Logging\Import\LoggerInformation.cs (2)
32public Action<LogLevel, EventId, ExtendedLogger.ModernTagJoiner, Exception?, Func<ExtendedLogger.ModernTagJoiner, Exception?, string>> LoggerLog { get; }
Logging\LoggingEventSource.cs (1)
15internal void LoggingException(Exception ex)
src\Shared\LogBuffering\SerializedLogRecordFactory.cs (1)
25Exception? exception,
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Telemetry.Abstractions (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Telemetry.PerformanceTests (6)
BenchLogger.cs (2)
35public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
ClassicCodeGen.cs (2)
18private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.String, global::System.String, global::System.String, global::System.String, global::System.String, global::System.String, global::System.Exception?> __RefTypesCallback = 29private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, global::System.Int64, global::System.Int64, global::System.Int32, global::System.Guid, global::System.Exception?> __ValueTypesCallback =
ExtendedLoggerBench.cs (2)
28private static readonly Action<ILogger, string, string, string, string, string, string, Exception?> _loggerMessage_refTypes = LoggerMessage.Define<string, string, string, string, string, string>( 33private static readonly Action<ILogger, long, long, int, Guid, Exception?> _loggerMessage_valueTypes = LoggerMessage.Define<long, long, int, Guid>(
Microsoft.Extensions.Telemetry.Tests (15)
Logging\ExtendedLoggerFactoryTests.cs (5)
115.Throws<Exception>(); 569public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 607public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Logging\ExtendedLoggerTests.cs (8)
449Exception ex; 452List<Exception> exceptions = []; 455throw new ArgumentNullException("EM1", (Exception?)null); 464throw new ArgumentOutOfRangeException("EM2", (Exception?)null); 1092Exception? exception, 1093Func<TState, Exception?, string> formatter) 1156public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) => _provider.State = state?.ToString();
Sampling\RandomProbabilisticSamplerTests.cs (1)
18private readonly Func<IReadOnlyList<KeyValuePair<string, object?>>, Exception?, string> _dummyFormatter = (_, _) => string.Empty;
Sampling\TraceBasedSamplerTests.cs (1)
18private readonly Func<IReadOnlyList<KeyValuePair<string, object?>>, Exception?, string> _dummyFormatter = (_, _) => string.Empty;
Microsoft.Extensions.TimeProvider.Testing (2)
src\Shared\Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Microsoft.Extensions.Validation (2)
ValidatableParameterInfo.cs (1)
124catch (Exception ex)
ValidatablePropertyInfo.cs (1)
197catch (Exception ex)
Microsoft.Gen.Logging.Generated.Tests (10)
test\Generators\Microsoft.Gen.Logging\TestClasses\AtSymbolsTestExtensions.cs (1)
28public static partial void UseAtSymbol4(ILogger logger, LogLevel level, string @myevent3, int otherevent, System.Exception ex);
test\Generators\Microsoft.Gen.Logging\TestClasses\CollectionTestExtensions.cs (1)
40public static partial void M9(ILogger logger, LogLevel level, int p0, System.Exception ex, int p1);
test\Generators\Microsoft.Gen.Logging\TestClasses\ExceptionTestExtensions.cs (6)
12public static partial void M0(ILogger logger, Exception ex1, Exception ex2); 15public static partial void M1(Exception ex1, ILogger logger, Exception ex2); 19public static partial void M2(ILogger logger, string arg1, Exception ex); 23public static partial void M3(Exception ex, ILogger logger, LogLevel level);
Utils.cs (2)
63public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Microsoft.Gen.MetricsReports\MetricDefinitionEmitter.cs (1)
140catch (Exception e)
Microsoft.Gen.MetricsReports (1)
MetricDefinitionEmitter.cs (1)
140catch (Exception e)
Microsoft.JSInterop (11)
Infrastructure\DotNetDispatcher.cs (2)
99catch (Exception ex) 302/// <exception cref="Exception">
Infrastructure\DotNetInvocationResult.cs (4)
14/// <param name="exception">The <see cref="System.Exception"/> that caused the failure.</param> 16internal DotNetInvocationResult(Exception exception, string? errorKind) 37/// Gets the <see cref="System.Exception"/> that caused the failure. 39public Exception? Exception { get; }
Infrastructure\TaskGenericsUtil.cs (3)
20public static void SetTaskCompletionSourceException(object taskCompletionSource, Exception exception) 59void SetException(object taskCompletionSource, Exception exception); 99public void SetException(object tcs, Exception exception)
JSException.cs (1)
24public JSException(string message, Exception innerException) : base(message, innerException)
JSRuntime.cs (1)
303catch (Exception exception)
Microsoft.Maui (24)
Animations\Animation.cs (1)
242 catch (Exception)
Animations\LerpingAnimation.cs (1)
100 catch (Exception)
Core\IImage.cs (1)
38 void LoadingFailed(Exception exception);
Dispatching\DispatcherExtensions.cs (2)
30 catch (Exception ex) 70 catch (Exception e)
Fonts\FileSystemEmbeddedFontLoader.cs (1)
75 catch (Exception ex)
Fonts\FontRegistrar.cs (1)
69 catch (Exception ex)
Handlers\HybridWebView\HybridWebViewHandler.cs (1)
197 catch (Exception ex)
Handlers\HybridWebView\HybridWebViewInvokeJavaScriptException.cs (1)
19 public HybridWebViewInvokeJavaScriptException(string? message, Exception? innerException)
Handlers\HybridWebView\HybridWebViewTaskManager.cs (1)
37 public void SetTaskFailed(string taskId, Exception exception)
Handlers\HybridWebView\IHybridWebViewTaskManager.cs (1)
11 void SetTaskFailed(string taskId, Exception exception);
Hosting\MauiAppBuilder.cs (2)
200 public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
HotReload\HotReloadHelper.cs (2)
101 catch (Exception ex) 140 catch (Exception ex)
Platform\HandlerNotFoundException.cs (1)
24 public HandlerNotFoundException(string message, Exception innerException) : base(message, innerException)
SoftInputExtensions.cs (1)
84 catch (Exception e)
TaskExtensions.cs (6)
13 Action<Exception>? errorCallback = null) 20 catch (Exception exc) 31 Action<Exception>? errorCallback = null 38 catch (Exception ex) 61 static void Log(ILogger? logger, Exception ex, string? callerName) => 71 catch (Exception ex)
VisualDiagnostics\BootstrapHelper.cs (1)
49 catch (Exception ex)
Microsoft.Maui.Controls (26)
BindingExpressionHelper.cs (1)
51 catch (Exception ex) when (ex is InvalidCastException || ex is FormatException || ex is InvalidOperationException || ex is OverflowException)
Interactivity\EventTrigger.cs (1)
83 catch (Exception)
Internals\ImageParser.cs (1)
26 public GIFDecoderFormatException(string message, Exception innerException) : base(message, innerException)
Internals\ResourceLoader.cs (1)
37 internal static Action<(Exception exception, string filepath)> ExceptionHandler2 { get; set; }
InvalidNavigationException.cs (1)
23 public InvalidNavigationException(string message, Exception innerException)
NavigationPage\NavigationPage.cs (1)
239 catch (Exception e)
PlatformBindingHelpers.cs (1)
169 catch (Exception)
ShadowTypeConverter.cs (1)
125 catch (Exception ex)
Shell\Shell.cs (2)
1258 catch (Exception exc) 1554 catch (Exception exc)
Shell\ShellNavigatingEventArgs.cs (1)
90 catch (Exception exc)
StyleSheets\Style.cs (1)
121 var ret = value.ConvertTo(property.ReturnType, minforetriever, serviceProvider, out Exception exception);
TypedBinding.cs (1)
316 catch (Exception ex) when (ex is NullReferenceException || ex is KeyNotFoundException || ex is IndexOutOfRangeException || ex is ArgumentOutOfRangeException)
UnsolvableConstraintsException.cs (1)
22 public UnsolvableConstraintsException(string message, Exception innerException)
UriImageSource.cs (2)
73 catch (Exception ex) 123 catch (Exception ex)
Xaml\TypeConversionExtensions.cs (6)
46 IServiceProvider serviceProvider, out Exception exception) 63 IServiceProvider serviceProvider, out Exception exception) 114 Exception exception = null; 131 IServiceProvider serviceProvider, out Exception exception) 145 catch (Exception e) 157 catch (Exception e)
Xaml\ValueConverterProvider.cs (1)
15 var ret = value.ConvertTo(toType, minfoRetriever, serviceProvider, out Exception exception);
XamlParseException.cs (3)
25 public XamlParseException(string message, Exception innerException) 39 internal XamlParseException(string message, IServiceProvider serviceProvider, Exception innerException = null) 45 public XamlParseException(string message, IXmlLineInfo xmlInfo, Exception innerException = null)
Microsoft.Maui.Controls.Build.Tasks (12)
BuildException.cs (1)
18 public BuildException(BuildExceptionCode code, IXmlLineInfo xmlInfo, Exception innerException, params object[] args)
DebugXamlCTask.cs (1)
16 public override bool Execute(out IList<Exception> thrownExceptions)
XamlCTask.cs (8)
156 public override bool Execute(out IList<Exception> thrownExceptions) 307 Exception e; 312 (thrownExceptions = thrownExceptions ?? new List<Exception>()).Add(e); 332 (thrownExceptions = thrownExceptions ?? new List<Exception>()).Add(error); 402 catch (Exception e) 406 (thrownExceptions = thrownExceptions ?? new List<Exception>()).Add(e); 415 bool TryCoreCompile(MethodDefinition initComp, ILRootNode rootnode, string xamlFilePath, TaskLoggingHelper loggingHelper, out Exception exception) 452 catch (Exception e)
XamlTask.cs (2)
37 IList<Exception> _; 41 public abstract bool Execute(out IList<Exception> thrownExceptions);
Microsoft.Maui.Controls.Compatibility (1)
src\Core\src\VisualDiagnostics\BootstrapHelper.cs (1)
49 catch (Exception ex)
Microsoft.Maui.Controls.Foldable (1)
TwoPaneView.cs (1)
263 catch (Exception)
Microsoft.Maui.Controls.SourceGen (5)
CodeBehindGenerator.cs (2)
744 public XamlProjectItem(ProjectItem projectItem, Exception exception) 753 public Exception? Exception { get; }
src\Controls\src\Core\XamlParseException.cs (3)
25 public XamlParseException(string message, Exception innerException) 39 internal XamlParseException(string message, IServiceProvider serviceProvider, Exception innerException = null) 45 public XamlParseException(string message, IXmlLineInfo xmlInfo, Exception innerException = null)
Microsoft.Maui.Controls.Xaml (36)
ApplyPropertiesVisitor.cs (20)
134 Exception xpe = null; 176 catch (Exception e) 198 Exception xpe = null; 279 catch (Exception e) 358 if (TrySetPropertyValue(xamlelement, propertyName, xKey, value, rootElement, lineInfo, serviceProvider, out var xpe)) 368 public static bool TrySetPropertyValue(object element, XmlName propertyName, string xKey, object value, object rootElement, IXmlLineInfo lineInfo, IServiceProvider serviceProvider, out Exception xpe) 431 public static object GetPropertyValue(object xamlElement, XmlName propertyName, object rootElement, IXmlLineInfo lineInfo, out Exception xpe, out object targetProperty) 455 static bool TryConnectEvent(object element, string localName, bool attached, object value, object rootElement, IXmlLineInfo lineInfo, out Exception exception) 521 static bool TrySetDynamicResource(object element, BindableProperty property, object value, IXmlLineInfo lineInfo, out Exception exception) 542 static bool TrySetBinding(object element, BindableProperty property, string localName, object value, IXmlLineInfo lineInfo, out BindingBase binding, out Exception exception) 574 static bool TrySetValue(object element, BindableProperty property, bool attached, object value, IXmlLineInfo lineInfo, IServiceProvider serviceProvider, out Exception exception) 619 catch (Exception e) 637 static bool TryGetValue(object element, BindableProperty property, bool attached, out object value, IXmlLineInfo lineInfo, out Exception exception, out object targetProperty) 655 static bool TrySetProperty(object element, string localName, object value, IXmlLineInfo lineInfo, IServiceProvider serviceProvider, object rootElement, out Exception exception) 680 catch (Exception e) 687 static bool TryGetProperty(object element, string localName, out object value, IXmlLineInfo lineInfo, object rootElement, out Exception exception, out object targetProperty) 732 static bool TryAddToProperty(object element, XmlName propertyName, object value, string xKey, IXmlLineInfo lineInfo, IServiceProvider serviceProvider, object rootElement, out Exception exception) 755 catch (Exception e) 762 static bool TryAddToResourceDictionary(ResourceDictionary resourceDictionary, object value, string xKey, IXmlLineInfo lineInfo, out Exception exception) 802 static bool TryAddValue(BindableObject bindable, BindableProperty property, object value, IServiceProvider serviceProvider, out Exception exception)
CreateValuesVisitor.cs (3)
99 serviceProvider, out Exception exception); 141 catch (Exception e) 324 var convertedValue = value.ConvertTo(parameter.ParameterType, () => parameter, serviceProvider, out Exception e);
ExpandMarkupsVisitor.cs (1)
118 internal Action<Exception> ExceptionHandler { get; set; }
HydrationContext.cs (1)
18 public Action<Exception> ExceptionHandler { get; set; }
MarkupExtensionParser.cs (1)
100 (Func<TypeConverter>)null, serviceProvider, out Exception converterException);
MarkupExtensions\AppThemeBindingExtension.cs (1)
115 Exception converterException = null;
MarkupExtensions\OnIdiomExtension.cs (1)
103 var ret = value.ConvertTo(propertyType, () => pi, serviceProvider, out Exception exception);
MarkupExtensions\OnPlatformExtension.cs (1)
122 var ret = value.ConvertTo(propertyType, () => pi, serviceProvider, out Exception exception);
XamlLoader.cs (6)
81 void ehandler(Exception e) => ResourceLoader.ExceptionHandler2?.Invoke((e, XamlFilePathAttribute.GetFilePathForObject(view))); 86 ExceptionHandler = doNotThrow ? ehandler : (Action<Exception>)null 101 void ehandler(Exception e) => ResourceLoader.ExceptionHandler2?.Invoke((e, null)); 126 ExceptionHandler = doNotThrow ? ehandler : (Action<Exception>)null, 143 void ehandler(Exception e) => ResourceLoader.ExceptionHandler2?.Invoke((e, XamlFilePathAttribute.GetFilePathForObject(rootView))); 170 ExceptionHandler = ResourceLoader.ExceptionHandler2 != null ? ehandler : (Action<Exception>)null,
XamlParser.cs (1)
351 catch (Exception ex)
Microsoft.Maui.Essentials (6)
MainThread\MainThread.shared.cs (4)
56 catch (Exception ex) 87 catch (Exception ex) 118 catch (Exception e) 150 catch (Exception e)
Types\Shared\Exceptions.shared.cs (2)
72 public FeatureNotSupportedException(string message, Exception innerException) 104 public FeatureNotEnabledException(string message, Exception innerException)
Microsoft.Maui.Graphics (4)
Insets.cs (1)
103 catch (Exception exc)
InsetsF.cs (1)
103 catch (Exception exc)
PathBuilder.cs (2)
53 catch (Exception exc) 207 catch (Exception exc)
Microsoft.Maui.Graphics.Skia (4)
SkiaCanvas.cs (4)
270 catch (Exception exc) 307 catch (Exception exc) 332 catch (Exception exc) 364 catch (Exception exc)
Microsoft.Maui.Graphics.Text.Markdig (1)
Renderer\SimpleCssParser.cs (1)
28 catch (Exception exc)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (2)
src\Graphics\src\Graphics\Platforms\Windows\GraphicsExtensions.cs (1)
251 catch (Exception exc)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (1)
298 catch (Exception exc)
Microsoft.Maui.Maps (6)
src\Core\src\TaskExtensions.cs (6)
13 Action<Exception>? errorCallback = null) 20 catch (Exception exc) 31 Action<Exception>? errorCallback = null 38 catch (Exception ex) 61 static void Log(ILogger? logger, Exception ex, string? callerName) => 71 catch (Exception ex)
Microsoft.Maui.Resizetizer (11)
AsyncTask.cs (1)
68 var ex = task.Exception.GetBaseException();
AsyncTaskExtensions.cs (1)
23 catch (Exception exc)
CreatePartialInfoPlistTask.cs (1)
64 catch (Exception ex)
DetectInvalidResourceOutputFilenamesTask.cs (1)
39 catch (Exception ex)
GeneratePackageAppxManifest.cs (1)
61 catch (Exception ex)
GenerateSplashAndroidResources.cs (1)
53 catch (Exception ex)
GenerateSplashStoryboard.cs (1)
49 catch (Exception ex)
GenerateTizenManifest.cs (1)
73 catch (Exception ex)
MauiAsyncTask.cs (1)
25 catch (Exception exc)
ResizetizeImages.cs (1)
89 catch (Exception ex)
SkiaSharpTools.cs (1)
217 catch (Exception ex)
Microsoft.McpServer.ProjectTemplates.Tests (1)
test\ProjectTemplates\Infrastructure\TestCommand.cs (1)
110catch (Exception ex)
Microsoft.ML.AutoML (33)
API\BinaryClassificationExperiment.cs (2)
460catch (Exception ex) when (ct.IsCancellationRequested) 464catch (Exception)
API\InferenceException.cs (1)
40internal InferenceException(InferenceExceptionType inferenceType, string message, Exception inner)
API\MulticlassClassificationExperiment.cs (2)
438catch (Exception ex) when (ct.IsCancellationRequested) 442catch (Exception)
API\RegressionExperiment.cs (2)
453catch (Exception ex) when (ct.IsCancellationRequested) 457catch (Exception)
API\RunDetails\CrossValidationRunDetail.cs (2)
64public Exception Exception { get; private set; } 70Exception exception)
API\RunDetails\RunDetail.cs (2)
48public Exception Exception { get; private set; } 57Exception exception) : base(trainerName, estimator, pipeline)
AutoMLExperiment\AutoMLExperiment.cs (2)
296catch (Exception ex) when (aggregateTrainingStopManager.IsStopTrainingRequested() == false) 330catch (Exception) when (aggregateTrainingStopManager.IsStopTrainingRequested())
AutoMLExperiment\IMonitor.cs (3)
20void ReportFailTrial(TrialSettings settings, Exception exception = null); 59public virtual void ReportFailTrial(TrialSettings settings, Exception exception = null) 113public override void ReportFailTrial(TrialSettings settings, Exception exp)
AutoMLExperiment\Runner\SweepablePipelineRunner.cs (2)
106catch (Exception ex) when (ct.IsCancellationRequested) 110catch (Exception)
AutoMLExperiment\TrialResult.cs (1)
61public Exception Exception { get; set; }
ColumnInference\TextFileContents.cs (1)
123catch (Exception)
Experiment\Experiment.cs (1)
245catch (Exception ex)
Experiment\Runners\CrossValSummaryRunner.cs (2)
56var trainResults = new List<(ModelContainer model, TMetrics metrics, Exception exception, double score)>(); 70var firstException = trainResults.First(r => r.exception != null).exception;
Experiment\Runners\RunnerUtil.cs (2)
13public static (ModelContainer model, TMetrics metrics, Exception exception, double score) 47catch (Exception ex)
Experiment\SuggestedPipelineRunDetails\SuggestedPipelineCrossValRunDetail.cs (2)
15public readonly Exception Exception; 20Exception exception,
Experiment\SuggestedPipelineRunDetails\SuggestedPipelineRunDetail.cs (2)
15public Exception Exception { get; set; } 45Exception ex) : base(pipeline, score, runSucceeded)
PipelineSuggesters\PipelineSuggester.cs (1)
225catch (Exception ex)
Sweepers\SmacSweeper.cs (1)
247catch (Exception e)
TrainerExtensions\TrainerExtensionUtil.cs (1)
294catch (Exception)
Tuner\SmacTuner.cs (1)
252catch (Exception e)
Microsoft.ML.AutoML.Interactive (1)
NotebookMonitor.cs (1)
60public void ReportFailTrial(TrialSettings setting, Exception exp = null)
Microsoft.ML.AutoML.Samples (1)
Program.cs (1)
33catch (Exception ex)
Microsoft.ML.AutoML.Tests (5)
AutoFitTests.cs (4)
564foreach (var ex in ae.Flatten().InnerExceptions) 566var ignoredExceptions = new List<Exception>(); 663var lastException = experiment.RunDetails.Last().Exception; 672foreach (var ex in lastAggregateException.Flatten().InnerExceptions)
Utils\TaskAgnosticIterationResult.cs (1)
19internal readonly Exception Exception;
Microsoft.ML.CodeGenerator (2)
CodeGenerator\CSharp\PipelineExtension.cs (1)
82catch (Exception)
Utils.cs (1)
46catch (Exception)
Microsoft.ML.Core (131)
CommandLine\CmdParser.cs (2)
985catch (Exception e) 1056catch (Exception e)
ComponentModel\AssemblyLoadingUtils.cs (6)
29Exception ex = null; 42catch (Exception e) 53catch (Exception e) 66catch (Exception e) 75catch (Exception e) 216catch (Exception)
ComponentModel\ComponentCatalog.cs (1)
1065catch (Exception e)
Data\AnnotationUtils.cs (2)
118public static Exception ExceptGetAnnotation() => Contracts.Except("Invalid call to GetAnnotation"); 123public static Exception ExceptGetAnnotation(this IExceptionContext ctx) => ctx.Except("Invalid call to GetAnnotation");
Data\ModelHeader.cs (6)
206Exception ex; 329Exception ex; 386public static bool TryValidate(ref ModelHeader header, long size, out Exception ex) 456catch (Exception e) 466public static bool TryValidate(ref ModelHeader header, BinaryReader reader, long fpMin, out string[] strings, out string loaderAssemblyName, out Exception ex) 561catch (Exception e)
Data\Repository.cs (1)
468catch (Exception ex)
Environment\HostEnvironmentBase.cs (1)
66where TException : Exception
Environment\TelemetryMessage.cs (3)
33public static TelemetryMessage CreateException(Exception exception) 63public readonly Exception Exception; 64public TelemetryException(Exception exception)
Utilities\Contracts.cs (98)
39where TException : Exception; 89where TException : Exception 99/// <see cref="Exception.Data"/> to 1. 102where TException : Exception 112public static bool IsMarked(this Exception ex) 125where TException : Exception 147public static MessageSensitivity Sensitivity(this Exception ex) 189public TException Process<TException>(TException ex) where TException : Exception 255public static Exception Except() 257public static Exception Except(this IExceptionContext ctx) 259public static Exception Except(string msg) 261public static Exception Except(this IExceptionContext ctx, string msg) 263public static Exception Except(string msg, params object[] args) 265public static Exception Except(this IExceptionContext ctx, string msg, params object[] args) 267public static Exception Except(Exception inner, string msg) 269public static Exception Except(this IExceptionContext ctx, Exception inner, string msg) 271public static Exception Except(Exception inner, string msg, params object[] args) 273public static Exception Except(this IExceptionContext ctx, Exception inner, string msg, params object[] args) 281public static Exception ExceptUserArg(string name) 283public static Exception ExceptUserArg(this IExceptionContext ctx, string name) 285public static Exception ExceptUserArg(string name, string msg) 287public static Exception ExceptUserArg(this IExceptionContext ctx, string name, string msg) 289public static Exception ExceptUserArg(string name, string msg, params object[] args) 291public static Exception ExceptUserArg(this IExceptionContext ctx, string name, string msg, params object[] args) 297public static Exception ExceptParam(string paramName) 299public static Exception ExceptParam(this IExceptionContext ctx, string paramName) 301public static Exception ExceptParam(string paramName, string msg) 303public static Exception ExceptParam(this IExceptionContext ctx, string paramName, string msg) 305public static Exception ExceptParam(string paramName, string msg, params object[] args) 307public static Exception ExceptParam(this IExceptionContext ctx, string paramName, string msg, params object[] args) 309public static Exception ExceptParamValue<T>(T value, string paramName, string msg) 311public static Exception ExceptParamValue<T>(this IExceptionContext ctx, T value, string paramName, string msg) 313public static Exception ExceptParamValue<T>(T value, string paramName, string msg, params object[] args) 315public static Exception ExceptParamValue<T>(this IExceptionContext ctx, T value, string paramName, string msg, params object[] args) 321public static Exception ExceptValue(string paramName) 323public static Exception ExceptValue(this IExceptionContext ctx, string paramName) 325public static Exception ExceptValue(string paramName, string msg) 327public static Exception ExceptValue(this IExceptionContext ctx, string paramName, string msg) 329public static Exception ExceptValue(string paramName, string msg, params object[] args) 331public static Exception ExceptValue(this IExceptionContext ctx, string paramName, string msg, params object[] args) 339public static Exception ExceptEmpty(string paramName) 341public static Exception ExceptEmpty(this IExceptionContext ctx, string paramName) 343public static Exception ExceptEmpty(string paramName, string msg) 345public static Exception ExceptEmpty(this IExceptionContext ctx, string paramName, string msg) 347public static Exception ExceptEmpty(string paramName, string msg, params object[] args) 349public static Exception ExceptEmpty(this IExceptionContext ctx, string paramName, string msg, params object[] args) 355public static Exception ExceptWhiteSpace(string paramName) 357public static Exception ExceptWhiteSpace(this IExceptionContext ctx, string paramName) 359public static Exception ExceptWhiteSpace(string paramName, string msg) 361public static Exception ExceptWhiteSpace(this IExceptionContext ctx, string paramName, string msg) 369public static Exception ExceptDecode() 371public static Exception ExceptDecode(this IExceptionContext ctx) 373public static Exception ExceptDecode(string msg) 375public static Exception ExceptDecode(this IExceptionContext ctx, string msg) 377public static Exception ExceptDecode(string msg, params object[] args) 379public static Exception ExceptDecode(this IExceptionContext ctx, string msg, params object[] args) 381public static Exception ExceptDecode(Exception inner, string msg) 383public static Exception ExceptDecode(this IExceptionContext ctx, Exception inner, string msg) 385public static Exception ExceptDecode(Exception inner, string msg, params object[] args) 387public static Exception ExceptDecode(this IExceptionContext ctx, Exception inner, string msg, params object[] args) 393public static Exception ExceptIO() 395public static Exception ExceptIO(this IExceptionContext ctx) 397public static Exception ExceptIO(string msg) 399public static Exception ExceptIO(this IExceptionContext ctx, string msg) 401public static Exception ExceptIO(string msg, params object[] args) 403public static Exception ExceptIO(this IExceptionContext ctx, string msg, params object[] args) 405public static Exception ExceptIO(Exception inner, string msg) 407public static Exception ExceptIO(this IExceptionContext ctx, Exception inner, string msg) 409public static Exception ExceptIO(Exception inner, string msg, params object[] args) 411public static Exception ExceptIO(this IExceptionContext ctx, Exception inner, string msg, params object[] args) 417public static Exception ExceptNotImpl() 419public static Exception ExceptNotImpl(this IExceptionContext ctx) 421public static Exception ExceptNotImpl(string msg) 423public static Exception ExceptNotImpl(this IExceptionContext ctx, string msg) 425public static Exception ExceptNotImpl(string msg, params object[] args) 427public static Exception ExceptNotImpl(this IExceptionContext ctx, string msg, params object[] args) 433public static Exception ExceptNotSupp() 435public static Exception ExceptNotSupp(this IExceptionContext ctx) 437public static Exception ExceptNotSupp(string msg) 439public static Exception ExceptNotSupp(this IExceptionContext ctx, string msg) 441public static Exception ExceptNotSupp(string msg, params object[] args) 443public static Exception ExceptNotSupp(this IExceptionContext ctx, string msg, params object[] args) 449public static Exception ExceptSchemaMismatch(string paramName, string columnRole, string columnName) 451public static Exception ExceptSchemaMismatch(this IExceptionContext ctx, string paramName, string columnRole, string columnName) 453public static Exception ExceptSchemaMismatch(string paramName, string columnRole, string columnName, string expectedType, string actualType) 455public static Exception ExceptSchemaMismatch(this IExceptionContext ctx, string paramName, string columnRole, string columnName, string expectedType, string actualType)
Utilities\OrderedWaiter.cs (2)
45private Exception _ex; 136public void SignalException(Exception ex)
Utilities\PathUtils.cs (1)
141catch (Exception exc)
Utilities\ResourceManagerUtils.cs (6)
143catch (Exception ex) 163var timeoutTask = Task.Delay(timeout).ContinueWith(task => default(Exception), TaskScheduler.Default); 183catch (Exception e) 221catch (Exception e) 240catch (Exception e) 249private async Task<Exception> DownloadResource(IHostEnvironment env, IChannel ch, HttpClient httpClient, Uri uri, string path, string fileName, CancellationToken ct)
Utilities\ThreadUtils.cs (2)
184private Exception _ex; 214public void Set(string component, Exception ex)
Microsoft.ML.Core.Tests (13)
UnitTests\DataTypes.cs (11)
95var ex = Assert.ThrowsAny<Exception>(() => mapper(in src, ref dst)); 101ex = Assert.ThrowsAny<Exception>(() => mapper(in src, ref dst)); 135var ex = Assert.ThrowsAny<Exception>(() => mapper(in src, ref dst)); 141ex = Assert.ThrowsAny<Exception>(() => mapper(in src, ref dst)); 175var ex = Assert.ThrowsAny<Exception>(() => mapper(in src, ref dst)); 181ex = Assert.ThrowsAny<Exception>(() => mapper(in src, ref dst)); 221var ex = Assert.ThrowsAny<Exception>(() => mapper(in src, ref dst));
UnitTests\TestContracts.cs (2)
28catch (Exception e) 40catch (Exception e)
Microsoft.ML.CpuMath (97)
src\Microsoft.ML.Core\Utilities\Contracts.cs (97)
39where TException : Exception; 89where TException : Exception 99/// <see cref="Exception.Data"/> to 1. 102where TException : Exception 112public static bool IsMarked(this Exception ex) 125where TException : Exception 147public static MessageSensitivity Sensitivity(this Exception ex) 255public static Exception Except() 257public static Exception Except(this IExceptionContext ctx) 259public static Exception Except(string msg) 261public static Exception Except(this IExceptionContext ctx, string msg) 263public static Exception Except(string msg, params object[] args) 265public static Exception Except(this IExceptionContext ctx, string msg, params object[] args) 267public static Exception Except(Exception inner, string msg) 269public static Exception Except(this IExceptionContext ctx, Exception inner, string msg) 271public static Exception Except(Exception inner, string msg, params object[] args) 273public static Exception Except(this IExceptionContext ctx, Exception inner, string msg, params object[] args) 281public static Exception ExceptUserArg(string name) 283public static Exception ExceptUserArg(this IExceptionContext ctx, string name) 285public static Exception ExceptUserArg(string name, string msg) 287public static Exception ExceptUserArg(this IExceptionContext ctx, string name, string msg) 289public static Exception ExceptUserArg(string name, string msg, params object[] args) 291public static Exception ExceptUserArg(this IExceptionContext ctx, string name, string msg, params object[] args) 297public static Exception ExceptParam(string paramName) 299public static Exception ExceptParam(this IExceptionContext ctx, string paramName) 301public static Exception ExceptParam(string paramName, string msg) 303public static Exception ExceptParam(this IExceptionContext ctx, string paramName, string msg) 305public static Exception ExceptParam(string paramName, string msg, params object[] args) 307public static Exception ExceptParam(this IExceptionContext ctx, string paramName, string msg, params object[] args) 309public static Exception ExceptParamValue<T>(T value, string paramName, string msg) 311public static Exception ExceptParamValue<T>(this IExceptionContext ctx, T value, string paramName, string msg) 313public static Exception ExceptParamValue<T>(T value, string paramName, string msg, params object[] args) 315public static Exception ExceptParamValue<T>(this IExceptionContext ctx, T value, string paramName, string msg, params object[] args) 321public static Exception ExceptValue(string paramName) 323public static Exception ExceptValue(this IExceptionContext ctx, string paramName) 325public static Exception ExceptValue(string paramName, string msg) 327public static Exception ExceptValue(this IExceptionContext ctx, string paramName, string msg) 329public static Exception ExceptValue(string paramName, string msg, params object[] args) 331public static Exception ExceptValue(this IExceptionContext ctx, string paramName, string msg, params object[] args) 339public static Exception ExceptEmpty(string paramName) 341public static Exception ExceptEmpty(this IExceptionContext ctx, string paramName) 343public static Exception ExceptEmpty(string paramName, string msg) 345public static Exception ExceptEmpty(this IExceptionContext ctx, string paramName, string msg) 347public static Exception ExceptEmpty(string paramName, string msg, params object[] args) 349public static Exception ExceptEmpty(this IExceptionContext ctx, string paramName, string msg, params object[] args) 355public static Exception ExceptWhiteSpace(string paramName) 357public static Exception ExceptWhiteSpace(this IExceptionContext ctx, string paramName) 359public static Exception ExceptWhiteSpace(string paramName, string msg) 361public static Exception ExceptWhiteSpace(this IExceptionContext ctx, string paramName, string msg) 369public static Exception ExceptDecode() 371public static Exception ExceptDecode(this IExceptionContext ctx) 373public static Exception ExceptDecode(string msg) 375public static Exception ExceptDecode(this IExceptionContext ctx, string msg) 377public static Exception ExceptDecode(string msg, params object[] args) 379public static Exception ExceptDecode(this IExceptionContext ctx, string msg, params object[] args) 381public static Exception ExceptDecode(Exception inner, string msg) 383public static Exception ExceptDecode(this IExceptionContext ctx, Exception inner, string msg) 385public static Exception ExceptDecode(Exception inner, string msg, params object[] args) 387public static Exception ExceptDecode(this IExceptionContext ctx, Exception inner, string msg, params object[] args) 393public static Exception ExceptIO() 395public static Exception ExceptIO(this IExceptionContext ctx) 397public static Exception ExceptIO(string msg) 399public static Exception ExceptIO(this IExceptionContext ctx, string msg) 401public static Exception ExceptIO(string msg, params object[] args) 403public static Exception ExceptIO(this IExceptionContext ctx, string msg, params object[] args) 405public static Exception ExceptIO(Exception inner, string msg) 407public static Exception ExceptIO(this IExceptionContext ctx, Exception inner, string msg) 409public static Exception ExceptIO(Exception inner, string msg, params object[] args) 411public static Exception ExceptIO(this IExceptionContext ctx, Exception inner, string msg, params object[] args) 417public static Exception ExceptNotImpl() 419public static Exception ExceptNotImpl(this IExceptionContext ctx) 421public static Exception ExceptNotImpl(string msg) 423public static Exception ExceptNotImpl(this IExceptionContext ctx, string msg) 425public static Exception ExceptNotImpl(string msg, params object[] args) 427public static Exception ExceptNotImpl(this IExceptionContext ctx, string msg, params object[] args) 433public static Exception ExceptNotSupp() 435public static Exception ExceptNotSupp(this IExceptionContext ctx) 437public static Exception ExceptNotSupp(string msg) 439public static Exception ExceptNotSupp(this IExceptionContext ctx, string msg) 441public static Exception ExceptNotSupp(string msg, params object[] args) 443public static Exception ExceptNotSupp(this IExceptionContext ctx, string msg, params object[] args) 449public static Exception ExceptSchemaMismatch(string paramName, string columnRole, string columnName) 451public static Exception ExceptSchemaMismatch(this IExceptionContext ctx, string paramName, string columnRole, string columnName) 453public static Exception ExceptSchemaMismatch(string paramName, string columnRole, string columnName, string expectedType, string actualType) 455public static Exception ExceptSchemaMismatch(this IExceptionContext ctx, string paramName, string columnRole, string columnName, string expectedType, string actualType)
Microsoft.ML.Data (28)
Data\DataViewUtils.cs (4)
443catch (Exception ex) 592catch (Exception ex) 789private readonly Exception _ex; 815public Batch(Exception ex)
DataLoadSave\Binary\BinaryLoader.cs (2)
1405catch (Exception ex) 1434catch (Exception ex)
DataLoadSave\Binary\BinarySaver.cs (4)
153/// also have a dual usage if <see cref="Exception"/> is non-null of indicating 243catch (Exception ex) 564catch (Exception ex) 631catch (Exception ex)
DataLoadSave\MultiFileSource.cs (1)
85catch (Exception e)
DataLoadSave\Text\TextLoaderCursor.cs (5)
365public readonly Exception Exception; 378public LineBatch(Exception ex) 788catch (Exception ex) 890public volatile Exception ParsingException; 957catch (Exception ex)
DataLoadSave\Transpose\TransposeLoader.cs (1)
655catch (Exception)
DataView\CacheDataView.cs (1)
433catch (Exception ex)
Dirty\PredictionUtils.cs (1)
41catch (Exception e)
Model\ModelOperationsCatalog.cs (2)
187catch (Exception ex) 272catch (Exception ex)
Scorers\RowToRowScorerBase.cs (1)
256catch (Exception)
Transforms\ColumnSelecting.cs (1)
255catch (Exception)
Transforms\RowShufflingTransformer.cs (2)
493private Exception _producerTaskException; 608catch (Exception ex)
Transforms\TransformBase.cs (1)
771protected Exception ExceptGetSlotCursor(int col)
Transforms\ValueMapping.cs (2)
658catch (Exception ex) 703catch (Exception)
Microsoft.ML.DataView (5)
Contracts.cs (5)
32public static Exception Except(string msg) 35public static Exception ExceptParam(string paramName) 37public static Exception ExceptParam(string paramName, string msg) 39public static Exception ExceptParam(string paramName, string msg, params object[] args) 42public static Exception ExceptValue(string paramName)
Microsoft.ML.Ensemble (1)
Trainer\EnsembleTrainerBase.cs (1)
166catch (Exception ex)
Microsoft.ML.FastTree (1)
FastTreeRanking.cs (1)
162catch (Exception ex)
Microsoft.ML.IntegrationTests (1)
ModelFiles.cs (1)
486catch (Exception)
Microsoft.ML.Maml (12)
MAML.cs (12)
134catch (Exception ex) 156catch (Exception) 163for (var e = ex; e != null; e = e.InnerException) 225catch (Exception ex) 235/// <see cref="Exception.InnerException"/> chain. 237private static void PrintFullExceptionDetails(TextWriter writer, Exception ex) 245for (var e = ex; e != null; e = e.InnerException) 256/// <see cref="Exception.InnerException"/> chain. 258private static void PrintFullExceptionDetails(IChannel ch, Exception ex) 263for (var e = ex; e != null; e = e.InnerException) 273private static void PrintExceptionData(TextWriter writer, Exception ex, bool includeComponents) 312private static void PrintExceptionData(IChannel ch, Exception ex, bool includeComponents)
Microsoft.ML.Parquet (4)
ParquetLoader.cs (3)
165catch (Exception ex) 225catch (Exception ex) 735catch (Exception ex)
PartitionedFileLoader.cs (1)
476catch (Exception e)
Microsoft.ML.Predictor.Tests (2)
CmdLine\CmdIndenterTest.cs (1)
86catch (Exception ex)
CmdLine\CmdLine.cs (1)
388catch (Exception ex)
Microsoft.ML.ResultProcessor (1)
ResultProcessor.cs (1)
1020catch (Exception e)
Microsoft.ML.Samples (1)
Program.cs (1)
28catch (Exception ex)
Microsoft.ML.SearchSpace (3)
Converter\OptionConverter.cs (3)
22catch (Exception) 31catch (Exception) 40catch (Exception)
Microsoft.ML.StandardTrainers (1)
Standard\LinearModelParameters.cs (1)
473catch (Exception)
Microsoft.ML.Sweeper (6)
Algorithms\SmacSweeper.cs (1)
256catch (Exception e)
ConfigRunner.cs (1)
142catch (Exception e)
Parameters.cs (3)
604catch (Exception e) 634catch (Exception e) 658catch (Exception e)
SweepCommand.cs (1)
104catch (Exception e)
Microsoft.ML.TensorFlow (7)
TensorflowTransform.cs (1)
182catch (Exception)
TensorflowUtils.cs (6)
199catch (Exception ex) 252catch (Exception ex) 314catch (Exception exc) 383catch (Exception exc) 602catch (Exception ex) 608catch (Exception statusException)
Microsoft.ML.TestFramework (3)
BaseTestBaseline.cs (2)
965Exception inner = null; 972catch (Exception e)
DataPipe\TestDataPipeBase.cs (1)
51Exception e;
Microsoft.ML.Tests (15)
ExpressionLanguageTests\ExpressionLanguageTests.cs (1)
202catch (Exception ex)
OnnxConversionTest.cs (4)
2039catch (System.Exception ex) 2052catch (System.Exception ex) 2063catch (System.Exception ex) 2074catch (System.Exception ex)
OnnxSequenceTypeWithAttributesTest.cs (1)
107catch (System.Exception ex)
Scenarios\GetColumnTests.cs (1)
106Exception e;
TextLoaderTests.cs (4)
106catch (Exception ex) 130catch (Exception ex) 1201catch (Exception ex) 1212catch (Exception ex)
Transformers\ConcatTests.cs (1)
30catch (Exception ex)
Transformers\CustomMappingTests.cs (2)
112catch (Exception) { } 120catch (Exception) { }
Transformers\KeyToVectorEstimatorTests.cs (1)
266catch (System.Exception ex)
Microsoft.ML.Tokenizers (5)
Model\CodeGenTokenizer.cs (2)
1754catch (Exception e) 1793catch (Exception e)
Model\EnglishRobertaTokenizer.cs (2)
186catch (Exception e) 225catch (Exception e)
Model\TiktokenTokenizer.cs (1)
231catch (Exception ex)
Microsoft.ML.Tokenizers.Data.Tests (9)
src\Common\tests\RetryHelper.cs (8)
16private static readonly Predicate<Exception> _defaultRetryWhenFunc = p => true; 24public static void Execute(Action test, int maxAttempts = 5, Func<int, int>? backoffFunc = null, Predicate<Exception>? retryWhen = null, [CallerMemberName] string? testName = null) 39var exceptions = new List<Exception>(); 42Exception lastException; 48catch (Exception e) when (retryWhen(e)) 74public static async Task ExecuteAsync(Func<Task> test, int maxAttempts = 5, Func<int, int>? backoffFunc = null, Predicate<Exception>? retryWhen = null, [CallerMemberName] string? testName = null) 89var exceptions = new List<Exception>(); 97catch (Exception e) when (retryWhen(e))
TokenizerDataTests.cs (1)
30var exception = Record.Exception(() => TiktokenTokenizer.CreateForModel(modelName));
Microsoft.ML.Tokenizers.Tests (17)
SentencePieceTests.cs (9)
36Assert.ThrowsAny<Exception>(() => SentencePieceTokenizer.Create(ms)); 175Assert.ThrowsAny<Exception>(() => SentencePieceTokenizer.Create(ms)); 185Assert.ThrowsAny<Exception>(() => SentencePieceTokenizer.Create(ms)); 505Assert.ThrowsAny<Exception>(() => SentencePieceTokenizer.Create(ms)); 518Assert.ThrowsAny<Exception>(() => SentencePieceTokenizer.Create(ms)); 535Assert.ThrowsAny<Exception>(() => SentencePieceTokenizer.Create(ms)); 551Assert.ThrowsAny<Exception>(() => SentencePieceTokenizer.Create(ms)); 563Assert.ThrowsAny<Exception>(() => SentencePieceTokenizer.Create(ms)); 574Assert.ThrowsAny<Exception>(() => SentencePieceTokenizer.Create(ms));
src\Common\tests\RetryHelper.cs (8)
16private static readonly Predicate<Exception> _defaultRetryWhenFunc = p => true; 24public static void Execute(Action test, int maxAttempts = 5, Func<int, int>? backoffFunc = null, Predicate<Exception>? retryWhen = null, [CallerMemberName] string? testName = null) 39var exceptions = new List<Exception>(); 42Exception lastException; 48catch (Exception e) when (retryWhen(e)) 74public static async Task ExecuteAsync(Func<Task> test, int maxAttempts = 5, Func<int, int>? backoffFunc = null, Predicate<Exception>? retryWhen = null, [CallerMemberName] string? testName = null) 89var exceptions = new List<Exception>(); 97catch (Exception e) when (retryWhen(e))
Microsoft.ML.Transforms (1)
GroupTransform.cs (1)
341private int[] GetColumnIds(DataViewSchema schema, string[] names, Func<string, Exception> except)
Microsoft.ML.Vision (3)
DnnRetrainTransform.cs (2)
147catch (Exception) 456catch (Exception e)
ImageClassificationTrainer.cs (1)
1140catch (Exception)
Microsoft.NET.Build.Containers (15)
AuthHandshakeMessageHandler.cs (2)
566catch (Exception e) 585List<Exception>? requestExceptions = null;
ContainerBuilder.cs (2)
242catch (Exception ex) 269catch (Exception e)
Credentials\CredentialRetrievalException.cs (1)
10public CredentialRetrievalException(string registry, Exception innerException)
DockerLoadException.cs (1)
17public DockerLoadException(string? message, Exception? innerException) : base(message, innerException)
Exceptions\InvalidAuthResponseException.cs (1)
14public InvalidAuthResponseException(string registry, string reason, Exception? innerException = null)
FallbackToHttpMessageHandler.cs (1)
66catch (Exception ex)
ImagePublisher.cs (1)
160catch (Exception e)
LocalDaemons\DockerCli.cs (2)
271catch (Exception ex) 317catch (Exception e) when (e is not DockerLoadException)
Registry\Registry.cs (2)
438catch (Exception ex) 524catch (Exception ex)
src\sdk\src\Common\VSHostObject.cs (1)
93catch (Exception ex)
VSHostObject.cs (1)
85catch (Exception ex)
Microsoft.NET.Build.Tasks (12)
CreateAppHost.cs (1)
109catch (Exception ex) when (ex is IOException ||
LockFileCache.cs (1)
83catch (Exception ex) when (ex is IOException || ex is UnauthorizedAccessException)
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (1)
56private Exception? _exceptionToThrow = null;
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 (3)
11public WorkloadManifestFormatException(string message, Exception inner) : base(message, inner) { } 19public WorkloadManifestCompositionException(string message, Exception inner) : base(message, inner) { } 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)
src\sdk\src\Tasks\Common\TaskBase.cs (4)
42catch (Exception e) 51private void LogErrorTelemetry(string eventName, Exception e) 58private static string ExceptionToStringWithoutMessage(Exception e) 85private static string NonAggregateExceptionToStringWithoutMessage(Exception e)
Microsoft.NET.HostModel (5)
AppHost\HostWriter.cs (2)
191catch (Exception ex) 198catch (Exception failedToDeleteEx)
ComHost\InvalidTypeLibraryException.cs (1)
18public InvalidTypeLibraryException(string path, Exception innerException)
ComHost\TypeLibraryDoesNotExistException.cs (1)
13public TypeLibraryDoesNotExistException(string path, Exception innerException)
ResourceUpdater.cs (1)
54catch (Exception)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (3)
GenerateBlazorBootExtensionJson.cs (1)
24catch (Exception ex)
GenerateBlazorWebAssemblyBootJson50.cs (1)
50catch (Exception ex)
GZipCompress.cs (1)
83catch (Exception e)
Microsoft.NET.Sdk.BlazorWebAssembly.Tool (1)
Program.cs (1)
58catch (Exception ex)
Microsoft.NET.Sdk.Publish.Tasks (28)
MsDeploy\CommonUtility.cs (7)
1055catch (Exception e) 1256catch (Exception e) 1354catch (Exception) 1543internal static void LogVsMsDeployException(Utilities.TaskLoggingHelper Log, Exception e) 1560Exception rootException = e; 1677Exception? currentException = e; 1841catch (Exception e)
src\sdk\src\Common\VSHostObject.cs (1)
93catch (Exception ex)
Tasks\GenerateEFSQLScripts.cs (1)
119catch (Exception e)
Tasks\Http\HttpClientExtensions.cs (1)
319catch (Exception)
Tasks\Kudu\KuduDeploy.cs (1)
175catch (Exception e)
Tasks\MsDeploy\CreateManifestFile.cs (1)
120catch (Exception)
Tasks\MsDeploy\CreateParameterFile.cs (1)
317catch (Exception)
Tasks\MsDeploy\ImportParameterFile.cs (1)
195catch (Exception ex)
Tasks\MsDeploy\MSDeploy.cs (1)
561catch (Exception ex)
Tasks\MsDeploy\VsMsdeploy.cs (3)
796catch (Exception exception) 862catch (Exception e) 1082catch (Exception ex)
Tasks\OneDeploy\OneDeployStatusService.cs (1)
71catch (Exception ex)
Tasks\Xdt\TaskTransformationLogger.cs (4)
140void IXmlTransformationLogger.LogErrorFromException(Exception ex) 145void IXmlTransformationLogger.LogErrorFromException(Exception ex, string file) 150void IXmlTransformationLogger.LogErrorFromException(Exception ex, string file, int lineNumber, int linePosition) 159Exception? exIterator = ex;
Tasks\Xdt\TransformXml.cs (4)
153catch (Exception ex) 191catch (Exception ex) 215catch (Exception ex) 233catch (Exception ex)
Tasks\ZipDeploy\ZipDeploymentStatus.cs (1)
105catch (Exception)
Microsoft.NET.Sdk.Razor.Tasks (9)
FindAssembliesWithReferencesTo.cs (1)
60catch (Exception ex)
src\sdk\src\RazorSdk\Tool\Client.cs (3)
59catch (Exception e) when (e is IOException || e is TimeoutException) 83catch (Exception e) when (!(e is TaskCanceledException || e is OperationCanceledException)) 182catch (Exception e)
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerConnection.cs (3)
150catch (Exception ex) 236catch (Exception e) 260catch (Exception e)
src\sdk\src\RazorSdk\Tool\ServerProtocol\ServerLogger.cs (2)
55catch (Exception e) 75public static void LogException(Exception e, string reason)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (14)
CollectStaticWebAssetsToCopy.cs (1)
85catch (Exception ex)
Compression\GZipCompress.cs (1)
63catch (Exception e)
ComputeReferenceStaticWebAssetItems.cs (1)
131catch (Exception ex)
ComputeStaticWebAssetsForCurrentProject.cs (1)
79catch (Exception ex)
ComputeStaticWebAssetsTargetPaths.cs (1)
53catch (Exception ex)
DefineStaticWebAssets.cs (1)
351catch (Exception ex)
GenerateStaticWebAssetEndpointsManifest.cs (1)
133catch (Exception ex)
GenerateStaticWebAssetsDevelopmentManifest.cs (1)
57catch (Exception ex)
GenerateStaticWebAssetsManifest.cs (1)
90catch (Exception ex)
MergeConfigurationProperties.cs (1)
88catch (Exception ex)
ReadPackageAssetsManifest.cs (1)
163catch (Exception ex)
ReadStaticWebAssetsManifestFile.cs (1)
47catch (Exception ex)
StaticWebAssetsReadPackManifest.cs (1)
35catch (Exception ex)
UpdatePackageStaticWebAssets.cs (1)
76catch (Exception ex)
Microsoft.NET.Sdk.StaticWebAssets.Tool (1)
Program.cs (1)
58catch (Exception ex)
Microsoft.NET.Sdk.WorkloadManifestReader (5)
SdkDirectoryWorkloadManifestProvider.cs (1)
56private Exception? _exceptionToThrow = null;
SdkDirectoryWorkloadManifestProvider.JsonReader.cs (1)
89public JsonFormatException(string message, Exception inner) : base(message, inner) { }
WorkloadManifestFormatException.cs (3)
11public WorkloadManifestFormatException(string message, Exception inner) : base(message, inner) { } 19public WorkloadManifestCompositionException(string message, Exception inner) : base(message, inner) { } 27protected WorkloadManifestException(string message, Exception inner) : base(message, inner) { }
Microsoft.Private.Windows.Core (19)
System\ExceptionExtensions.cs (2)
18internal static bool IsCriticalException(this Exception ex) 30internal static SerializationException ConvertToSerializationException(this Exception ex)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
801catch (Exception ex) when (!ex.IsCriticalException())
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (2)
33catch (Exception ex) when (ex is ArgumentException or InvalidCastException or ArithmeticException or IOException or TargetInvocationException) 48catch (Exception ex) when (ex is KeyNotFoundException or InvalidCastException)
System\Private\Windows\Ole\BinaryFormatUtilities.cs (1)
49catch (Exception ex) when (!ex.IsCriticalException())
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (1)
146catch (Exception) when (!pmedium->hGlobal.IsNull)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (2)
385catch (Exception e) when (!e.IsCriticalException()) 451catch (Exception ex) when (!request.TypedRequest || ex is not NotSupportedException)
System\Private\Windows\Ole\Composition.RuntimeToNativeAdapter.cs (4)
50catch (Exception e) 105catch (Exception e) 123catch (Exception e) 146catch (Exception e)
System\Private\Windows\Ole\TypeBinder.cs (1)
134catch (Exception ex) when (!ex.IsCriticalException())
System\TypeExtensions.cs (1)
277catch (Exception e) when (!e.IsCriticalException())
Windows\Win32\Foundation\HRESULT.cs (1)
52public static implicit operator HRESULT(Exception ex)
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (1)
17internal static Exception GetException(this Status status)
Windows\Win32\System\Com\ComHelpers.cs (2)
111catch (Exception ex) 227catch (Exception ex)
Microsoft.SourceLink.Common (1)
GenerateSourceLinkFile.cs (1)
149catch (Exception e)
Microsoft.Svcutil.NamedPipeMetadataImporter (3)
NamedPipeMetadataImporter.cs (3)
50catch (Exception ex) 61catch (Exception ex) 96catch (Exception ex)
Microsoft.TemplateEngine.Cli (16)
Commands\BaseCommand.cs (1)
255catch (Exception ex)
Commands\create\InstantiateCommand.cs (2)
140catch (Exception ex) 333catch (Exception ex)
HostSpecificDataLoader.cs (2)
52catch (Exception e) 79catch (Exception e)
NuGetUtils.cs (1)
34catch (Exception)
PostActionDispatcher.cs (1)
231catch (Exception e)
PostActionProcessors\ChmodPostActionProcessor.cs (1)
69catch (Exception ex)
PostActionProcessors\ProcessStartPostActionProcessor.cs (1)
86catch (Exception ex)
TemplateInvoker.cs (1)
77catch (Exception ex)
TemplatePackageCoordinator.cs (4)
68catch (Exception) 94catch (Exception) 591catch (Exception ex) 867catch (Exception ex)
TemplateSearch\CliHostSearchCacheData.cs (2)
42catch (Exception ex) 49catch (Exception ex)
Microsoft.TemplateEngine.Core (2)
Expressions\Shared\SharedEvaluatorDefinition.cs (1)
182catch (Exception e)
Util\Orchestrator.cs (1)
294catch (Exception ex)
Microsoft.TemplateEngine.Edge (41)
BuiltInManagedProvider\GlobalSettings.cs (3)
102catch (Exception) 142catch (Exception) 215catch (Exception e)
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (1)
65catch (Exception e)
Constraints\ConfigurationException.cs (1)
17public ConfigurationException(string message, Exception innerException) : base(message, innerException)
Constraints\ConstraintsExtensions.cs (1)
125catch (Exception e)
Installers\Folder\FolderManagedTemplatePackage.cs (1)
48catch (Exception e)
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) { } 18public InvalidNuGetSourceException(string message, IEnumerable<string> sources, Exception inner)
Installers\NuGet\NugetApiPackageManager.cs (6)
101catch (Exception e) 146catch (Exception ex) 157catch (Exception e) 169catch (Exception ex) 410catch (Exception ex) 448catch (Exception ex)
Installers\NuGet\NuGetInstaller.cs (6)
69catch (Exception) 176catch (Exception e) 310catch (Exception e) 349catch (Exception e) 403catch (Exception ex) 421catch (Exception ex)
Installers\NuGet\NuGetManagedTemplatePackage.cs (1)
105catch (Exception e)
Settings\Scanner.cs (1)
194catch (Exception ex)
Settings\SettingsStore.cs (1)
99catch (Exception ex)
Settings\TemplateCache.cs (1)
234catch (Exception e)
Settings\TemplatePackageManager.cs (4)
108catch (Exception ex) 289catch (Exception ex) 360catch (Exception ex) 378catch (Exception ex)
Template\ParameterSetBuilder.cs (1)
117catch (Exception e)
Template\TemplateCreator.cs (2)
218catch (Exception cx) 254private static IEnumerable<string> ExceptionMessages(Exception? e)
TemplateConstraintManager.cs (7)
65catch (Exception) 112catch (Exception) 122var exception = task.Exception is not null ? task.Exception.InnerException ?? task.Exception : task.Exception; 131catch (Exception e) 175catch (Exception) 197var exception = task.Exception is not null ? task.Exception.InnerException ?? task.Exception : task.Exception; 207catch (Exception e)
Microsoft.TemplateEngine.Utils (7)
ContentGenerationException.cs (1)
13public ContentGenerationException(string message, Exception innerException)
DictionaryExtensions.cs (2)
55/// <exception cref="Exception">Thrown if key is already present in current dictionary and <see cref="ConflictingKeysResolution.Throw"/> strategy was requested.</exception> 83/// <exception cref="Exception">Thrown if key is already present in current dictionary and <see cref="ConflictingKeysResolution.Throw"/> strategy was requested.</exception>
EngineInitializationException.cs (1)
14public EngineInitializationException(string message, string settingsItem, Exception innerException)
InstallRequestPathResolution.cs (1)
79catch (Exception ex)
PhysicalFileSystem.cs (1)
118catch (Exception)
TemplateAuthoringException.cs (1)
18public TemplateAuthoringException(string message, string? configItem, Exception innerException)
Microsoft.TemplateSearch.Common (9)
Providers\NuGetMetadataSearchProvider.cs (2)
165List<Exception> exceptionsOccurred = new(); 217catch (Exception e)
TemplateDiscoveryMetadata\LegacySearchCacheReader.cs (3)
135catch (Exception ex) 200catch (Exception ex) 241catch (Exception ex)
TemplateSearchCache\TemplatePackageSearchData.Json.cs (1)
55catch (Exception ex)
TemplateSearchCache\TemplateSearchCache.Json.cs (2)
65catch (Exception ex) 92catch (Exception ex)
TemplateSearchCoordinator.cs (1)
68catch (Exception ex)
Microsoft.TestPlatform.CommunicationUtilities (29)
DataCollectionRequestHandler.cs (3)
290catch (Exception e) 348catch (Exception e) 377catch (Exception ex)
DataCollectionTestCaseEventHandler.cs (3)
94catch (Exception ex) 118catch (Exception ex) 139catch (Exception ex)
Interfaces\Communication\CommunicationException.cs (1)
36public CommunicationException(string? message, Exception? inner)
Interfaces\Communication\ConnectedEventArgs.cs (2)
32public ConnectedEventArgs(Exception? faultException) 53public Exception? Fault { get; private set; }
Interfaces\Communication\DisconnectedEventArgs.cs (1)
16public Exception? Error { get; set; }
Json\Jsonite\Jsonite.cs (4)
1300public void OnDeserializeRaiseParsingError(int offset, int line, int column, string message, Exception inner) 1378public JsonException(int offset, int line, int column, string message, Exception inner = null) : base(message, inner) 1557void OnDeserializeRaiseParsingError(int offset, int line, int column, string message, Exception inner); 1686public void OnDeserializeRaiseParsingError(int offset, int line, int column, string message, Exception inner)
LengthPrefixCommunicationChannel.cs (1)
64catch (Exception ex)
Serialization\TestRunCompleteEventArgsConverter.cs (2)
37var error = DeserializeProperty<Exception>(root, "Error", options);
SocketClient.cs (1)
114private void StopOnError(Exception? error)
SocketCommunicationManager.cs (2)
203catch (Exception ex) 390catch (Exception exception)
SocketServer.cs (1)
117private void StopOnError(Exception? error)
TcpClientExtensions.cs (3)
25Action<Exception?> errorHandler, 28Exception? error = null; 96catch (Exception exception)
TestRequestSender.cs (5)
598catch (Exception exception) 663catch (Exception ex) 669private void OnTestRunAbort(IInternalTestRunEventsHandler testRunEventsHandler, Exception? exception, bool getClientError) 694private void OnDiscoveryAbort(ITestDiscoveryEventsHandler2 eventHandler, Exception? exception, bool getClientError) 731private string? GetAbortErrorMessage(Exception? exception, bool getClientError)
Microsoft.TestPlatform.CoreUtilities (7)
Helpers\DotnetHostHelper.cs (3)
372catch (Exception ex) 402catch (Exception ex) 443catch (Exception ex)
Tracing\EqtTrace.cs (3)
342public static void Error(Exception exceptionToTrace) 729private static string FormatException(Exception exceptionToTrace) 763Exception inner = exceptionToTrace.InnerException;
Utilities\JobQueue.cs (1)
361catch (Exception e)
Microsoft.TestPlatform.CrossPlatEngine (55)
AttachmentsProcessing\DataCollectorAttachmentsProcessorsFactory.cs (1)
106catch (Exception ex)
AttachmentsProcessing\TestRunAttachmentsProcessingManager.cs (2)
97catch (Exception e) 186catch (Exception e)
Client\InProcessProxyDiscoveryManager.cs (1)
68catch (Exception exception)
Client\InProcessProxyexecutionManager.cs (1)
95catch (Exception exception)
Client\Parallel\ParallelOperationManager.cs (1)
355catch (Exception ex)
Client\Parallel\ParallelRunDataAggregator.cs (4)
39Exceptions = new List<Exception>(); 58public List<Exception> Exceptions { get; } 128public Exception? GetAggregatedException() 140Exception? exception,
Client\ProxyDiscoveryManager.cs (3)
158catch (Exception exception) 191catch (Exception exception) 197private void HandleException(Exception exception)
Client\ProxyExecutionManager.cs (3)
201catch (Exception ex) 291catch (Exception exception) 299private void HandleError(Exception exception)
Client\ProxyExecutionManagerWithDataCollection.cs (1)
110catch (Exception)
Client\ProxyOperationManager.cs (3)
247catch (Exception ex) 341catch (Exception ex) 357catch (Exception ex)
Client\ProxyOperationManagerWithDataCollection.cs (1)
72catch (Exception)
Client\TestLoggerManager.cs (2)
572catch (Exception ex) 606catch (Exception ex)
DataCollection\InProcDataCollectionExtensionManager.cs (2)
222catch (Exception ex) 280catch (Exception ex)
DataCollection\InProcDataCollector.cs (1)
160catch (Exception ex)
DataCollection\ProxyDataCollectionManager.cs (2)
291catch (Exception ex) 298private static void HandleExceptionMessage(ITestMessageEventHandler? runEventsHandler, Exception exception)
Discovery\DiscovererEnumerator.cs (3)
256catch (Exception e) 278catch (Exception e) 508catch (Exception ex)
EventHandlers\TestRequestHandler.cs (8)
52private Exception? _messageProcessingUnrecoverableError; 374catch (Exception ex) 400catch (Exception ex) 430catch (Exception ex) 457catch (Exception ex) 491catch (Exception ex) 526catch (Exception ex) 566catch (Exception ex)
Execution\BaseRunTests.cs (7)
202Exception? exception = null; 217catch (Exception ex) 234catch (Exception ex2) 311catch (Exception e) 510catch (Exception e) 568catch (Exception ex) 592Exception? exception,
Execution\ExecutionManager.cs (3)
115catch (Exception e) 150catch (Exception e) 210catch (Exception ex)
Execution\TestRunCache.cs (1)
358catch (Exception ex)
PostProcessing\ArtifactProcessingManager.cs (2)
119catch (Exception e) 161catch (Exception ex)
TestEngine.cs (1)
582catch (Exception ex)
TestSession\ProxyTestSessionManager.cs (1)
378catch (Exception ex)
TestSession\TestSessionPool.cs (1)
195catch (Exception ex)
Microsoft.TestPlatform.Extensions.BlameDataCollector (17)
BlameCollector.cs (6)
265catch (Exception ex) 286catch (Exception ex) 298catch (Exception ex) 324catch (Exception ex) 655catch (Exception e) 677catch (Exception e)
NetClientHangDumper.cs (2)
76catch (Exception ex) 100catch (Exception ex)
ProcDumpDumper.cs (2)
233catch (Exception e) 278catch (Exception ex)
ProcessCodeMethods.cs (3)
101catch (Exception ex) 126catch (Exception ex) 160catch (Exception ex)
ProcessDumpUtility.cs (1)
133catch (Exception ex)
WindowsHangDumper.cs (3)
76catch (Exception ex) 92catch (Exception ex) 102catch (Exception ex)
Microsoft.TestPlatform.PlatformAbstractions (9)
common\System\ProcessHelper.cs (1)
68catch (Exception)
common\Tracing\PlatformEqtTrace.cs (4)
237catch (Exception e) 300private static void LogIgnoredException(Exception e) 372catch (Exception e) 414catch (Exception e)
common\Tracing\RollingFileTraceListener.cs (1)
260catch (Exception)
Interfaces\System\ThreadApartmentStateNotSupportedException.cs (1)
37public ThreadApartmentStateNotSupportedException(string? message, Exception? innerException)
netcore\System\PlatformThread.cs (2)
29Exception? exThrown = null; 36catch (Exception e)
Microsoft.TestPlatform.TestHostRuntimeProvider (3)
Hosting\DefaultTestHostManager.cs (2)
405catch (Exception ex) 587catch (Exception ex)
Hosting\DotnetTestHostManager.cs (1)
780catch (Exception ex)
Microsoft.TestPlatform.Utilities (4)
CodeCoverageDataAttachmentsHandler.cs (2)
113catch (Exception ex) 151catch (Exception ex)
InferRunSettingsHelper.cs (2)
376catch (Exception ex) 440catch (Exception ex)
Microsoft.TestPlatform.VsTestConsole.TranslationLayer (15)
TransationLayerException.cs (1)
27public TransationLayerException(string? message, Exception? innerException)
VsTestConsoleRequestSender.cs (14)
103catch (Exception ex) 142catch (Exception ex) 492catch (Exception exception) 592catch (Exception exception) 679catch (Exception exception) 769catch (Exception exception) 1013catch (Exception exception) 1108catch (Exception exception) 1195catch (Exception exception) 1280catch (Exception exception) 1380catch (Exception exception) 1433catch (Exception ex) 1507catch (Exception ex) 1537catch (Exception ex)
Microsoft.VisualBasic.Core (126)
Microsoft\VisualBasic\Collection.vb (1)
104Catch ex As Exception
Microsoft\VisualBasic\CompilerServices\Conversions.vb (3)
1517Catch Ex As Exception 1923Catch Ex As Exception 1959Catch Ex As Exception
Microsoft\VisualBasic\CompilerServices\DecimalType.vb (1)
140Catch Ex As Exception
Microsoft\VisualBasic\CompilerServices\DoubleType.vb (2)
180Catch Ex As Exception 221Catch Ex As Exception
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
194Friend Shared Function VbMakeException(ByVal ex As Exception, ByVal hr As Integer) As System.Exception
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (11)
133Catch ex As Exception When IsMissingMemberException(ex) 167Catch exInner As Exception When IsMissingMemberException(exInner) AndAlso (TypeOf ex Is MissingMemberException) 182Private Shared Function IsMissingMemberException(ByVal ex As Exception) As Boolean 415Catch ex As Exception When IsMissingMemberException(ex) 436Catch exInner As Exception When IsMissingMemberException(exInner) AndAlso (TypeOf ex Is MissingMemberException) 445Catch exInner As Exception 454Catch exInner As Exception When IsMissingMemberException(exInner) AndAlso (TypeOf ex Is MissingMemberException) 596Catch ex As Exception 647Catch ex As Exception When IsMissingMemberException(ex) 893Catch ex As Exception When IsMissingMemberException(ex) 1043Catch ex As Exception When IsMissingMemberException(ex)
Microsoft\VisualBasic\CompilerServices\NewLateBinding.vb (1)
1254Friend Shared Function ReportPropertyMismatch(ByVal targetProcedure As Method, ByVal flags As BindingFlags) As Exception
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (2)
3577Private Shared Function GetNoValidOperatorException(ByVal Operand As Object) As Exception 3581Private Shared Function GetNoValidOperatorException(ByVal Left As Object, ByVal Right As Object) As Exception
Microsoft\VisualBasic\CompilerServices\Operators.vb (2)
86Private Shared Function GetNoValidOperatorException(ByVal op As UserDefinedOperator, ByVal operand As Object) As Exception 90Private Shared Function GetNoValidOperatorException(ByVal op As UserDefinedOperator, ByVal left As Object, ByVal right As Object) As Exception
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (4)
2521ByVal candidateFilter As CandidateProperty) As Exception 2609ByVal failure As ResolutionFailure) As Exception 2651ByVal failure As ResolutionFailure) As Exception 2683ByVal failure As ResolutionFailure) As Exception
Microsoft\VisualBasic\CompilerServices\ProjectData.vb (3)
130Public Shared Function CreateProjectError(ByVal hr As Integer) As System.Exception 151Public Overloads Shared Sub SetProjectError(ByVal ex As Exception) 172Public Overloads Shared Sub SetProjectError(ByVal ex As Exception, ByVal lErl As Integer)
Microsoft\VisualBasic\CompilerServices\Utils.LateBinder.vb (1)
115Catch ex As Exception
Microsoft\VisualBasic\CompilerServices\VB6InputFile.vb (2)
48Catch ex As Exception 118Catch e As Exception
Microsoft\VisualBasic\CompilerServices\VB6RandomFile.vb (1)
52Catch ex As Exception
Microsoft\VisualBasic\CompilerServices\VBBinder.vb (3)
495Dim ex As Exception 1764Catch ex As Exception 1875Private Function CreateParamOrder(ByVal SetProp As Boolean, ByVal paramOrder() As Integer, ByVal pars() As ParameterInfo, ByVal args() As Object, ByVal names() As String) As Exception
Microsoft\VisualBasic\ErrObject.vb (7)
15Private m_curException As Exception 240Public Function GetException() As Exception 316Dim e As Exception 346Dim e As Exception = MapNumberToException(m_curNumber, Description) 351Friend Overloads Sub CaptureException(ByVal ex As Exception) 363Friend Overloads Sub CaptureException(ByVal ex As Exception, ByVal lErl As Integer) 368Private Function MapExceptionToNumber(ByVal e As Exception) As Integer
Microsoft\VisualBasic\FileIO\FileSystem.vb (5)
1022Catch ex As Exception 1043Catch ex As Exception 1063Catch ex As Exception 1327Catch ex As Exception 1506Catch ex As Exception
Microsoft\VisualBasic\FileIO\MalformedLineException.vb (2)
55Public Sub New(ByVal message As String, ByVal lineNumber As Long, ByVal innerException As Exception) 66Public Sub New(ByVal message As String, ByVal innerException As Exception)
Microsoft\VisualBasic\FileSystem.vb (50)
230Catch e2 As Exception 294Catch ex As Exception 421Catch ex As Exception 539Catch ex As Exception 562Catch ex As Exception 579Catch ex As Exception 590Catch ex As Exception 602Catch ex As Exception 612Catch ex As Exception 622Catch ex As Exception 632Catch ex As Exception 642Catch ex As Exception 652Catch ex As Exception 662Catch ex As Exception 672Catch ex As Exception 682Catch ex As Exception 692Catch ex As Exception 702Catch ex As Exception 712Catch ex As Exception 723Catch ex As Exception 739Catch ex As Exception 752Catch ex As Exception 762Catch ex As Exception 772Catch ex As Exception 782Catch ex As Exception 792Catch ex As Exception 802Catch ex As Exception 812Catch ex As Exception 822Catch ex As Exception 832Catch ex As Exception 842Catch ex As Exception 852Catch ex As Exception 862Catch ex As Exception 871Catch ex As Exception 880Catch ex As Exception 890Catch ex As Exception 899Catch ex As Exception 908Catch ex As Exception 917Catch ex As Exception 926Catch ex As Exception 935Catch ex As Exception 944Catch ex As Exception 953Catch ex As Exception 962Catch ex As Exception 971Catch ex As Exception 980Catch ex As Exception 989Catch ex As Exception 998Catch ex As Exception 1007Catch ex As Exception 1033Catch ex As Exception
Microsoft\VisualBasic\Information.vb (1)
119Return (TypeOf Expression Is Exception)
Microsoft\VisualBasic\Interaction.vb (4)
342Catch ex As Exception 402Catch ex As Exception 470Catch ex As Exception 539Catch e As Exception
Microsoft\VisualBasic\Strings.vb (19)
206Catch ex As Exception 279Catch ex As Exception 370Catch ex As Exception 472Catch ex As Exception 509Catch ex As Exception 521Catch ex As Exception 529Catch ex As Exception 696Catch ex As Exception 806Catch ex As Exception 1045Catch ex As Exception 1053Catch ex As Exception 1335Catch ex As Exception 1387Catch ex As Exception 1423Catch ex As Exception 1459Catch ex As Exception 1875Catch ex As Exception 1942Catch ex As Exception 1964Catch ex As Exception 1981Catch ex As Exception
Microsoft.VisualStudio.TestPlatform.Client (11)
DesignMode\DesignModeClient.cs (11)
291catch (Exception ex) 494catch (Exception ex) 500void OnError(Exception? ex) 532catch (Exception ex) 538void OnError(Exception? ex) 571catch (Exception ex) 577void OnError(Exception? ex) 615catch (Exception ex) 621static void OnError(TestSessionEventsHandler eventsHandler, Exception? ex) 647catch (Exception ex) 653void OnError(TestSessionEventsHandler eventsHandler, Exception? ex)
Microsoft.VisualStudio.TestPlatform.Common (40)
DataCollection\DataCollectionAttachmentManager.cs (3)
145catch (Exception ex) 283catch (Exception ex) 312catch (Exception e)
DataCollection\DataCollectionManager.cs (5)
250catch (Exception ex) 347catch (Exception ex) 532catch (Exception ex) 551catch (Exception ex) 647catch (Exception ex)
DataCollection\DataCollectorInformation.cs (1)
168catch (Exception ex)
DataCollection\TestPlatformDataCollectionEvents.cs (1)
113catch (Exception ex)
DataCollection\TestPlatformDataCollectionLogger.cs (1)
59public override void LogError(DataCollectionContext context, string text, Exception exception)
Exceptions\InvalidLoggerException.cs (1)
26public InvalidLoggerException(string? message, Exception? innerException)
ExtensionFramework\TestDiscoveryExtensionManager.cs (1)
113catch (Exception ex)
ExtensionFramework\TestExecutorExtensionManager.cs (1)
209catch (Exception ex)
ExtensionFramework\TestPluginCache.cs (1)
184catch (Exception e)
ExtensionFramework\TestPluginDiscoverer.cs (3)
108catch (Exception e) 144catch (Exception e) 174foreach (var ex in e.LoaderExceptions)
ExtensionFramework\TestPluginManager.cs (2)
38catch (Exception ex) 68catch (Exception ex)
ExtensionFramework\VSExtensionManager.cs (1)
62catch (Exception ex)
Logging\InternalTestLoggerEvents.cs (1)
288internal void CompleteTestRun(ITestRunStatistics? stats, bool isCanceled, bool isAborted, Exception? error, Collection<AttachmentSet>? attachmentSet, Collection<InvokedDataCollector>? invokedDataCollectors, TimeSpan elapsedTime)
RunSettings.cs (4)
113catch (Exception e) 158catch (Exception e) 199catch (Exception e) 239Exception? innerException = null)
SettingsProvider\SettingsProviderExtensionManager.cs (1)
151catch (Exception ex)
Utilities\AssemblyProperties.cs (1)
58catch (Exception ex)
Utilities\AssemblyResolver.cs (2)
114catch (Exception ex) 204catch (Exception ex)
Utilities\ExceptionUtilities.cs (3)
19public static string GetExceptionMessage(Exception? exception) 29var inner = exception.InnerException; 42private static void AppendStackTrace(StringBuilder stringBuilder, Exception exception)
Utilities\FakesUtilities.cs (2)
188catch (Exception ex) 202catch (Exception ex)
Utilities\MetadataReaderHelper.cs (5)
60catch (Exception ex) 168catch (Exception ex) 175catch (Exception ex) 185private static string FormatException(Exception ex) 188Exception? current = ex;
Microsoft.VisualStudio.TestPlatform.Extensions.Html.TestLogger (1)
HtmlLogger.cs (1)
340catch (Exception ex)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (8)
ObjectModel\RunInfo.cs (2)
20private readonly Exception? _exception; 46public RunInfo(string textMessage, Exception? ex, string computer, TestOutcome outcome)
Utility\Converter.cs (5)
211catch (Exception e) 404catch (Exception e) 481catch (Exception ex) 532catch (Exception ex) 547catch (Exception ex)
XML\XmlPersistence.cs (1)
53public DuplicateKeyLoadException(object key, string message, Exception? innerException)
Microsoft.VisualStudio.TestPlatform.ObjectModel (21)
Adapter\TestPlatformFormatException.cs (1)
53public TestPlatformFormatException(string? message, Exception? innerException)
Adapter\TestsCanceledException.cs (1)
41public TestCanceledException(string? message, Exception? innerException)
Client\Events\TestRunAttachmentsProcessingCompleteEventArgs.cs (2)
18public TestRunAttachmentsProcessingCompleteEventArgs(bool isCanceled, Exception? error) 34public Exception? Error { get; private set; }
Client\Events\TestRunCompleteEventArgs.cs (3)
40Exception? error, 67Exception? error, 105public Exception? Error { get; private set; }
DataCollector\DataCollectionLogger.cs (3)
38public void LogError(DataCollectionContext context, Exception exception) 52public abstract void LogError(DataCollectionContext context, string text, Exception exception); 73public virtual void LogException(DataCollectionContext context, Exception ex, DataCollectorMessageLevel level)
ExceptionConverter.cs (2)
21public TestPlatformException(string? message, Exception? innerException) 103public ProcessExitedException(string? message, Exception? inner) : base(message, inner) { }
Framework.cs (1)
114catch (Exception ex)
Navigation\FullSymbolReader.cs (2)
281catch (Exception ex) 296catch (Exception ex)
Navigation\PortablePdbReader.cs (1)
41/// <exception cref="Exception">
Navigation\PortableSymbolReader.cs (1)
131catch (Exception ex)
RunSettings\SettingsException.cs (1)
41public SettingsException(string? message, Exception? innerException)
TestObject.cs (2)
283catch (Exception e) 330catch (Exception e)
TestProperty\TestProperty.cs (1)
222catch (Exception)
Microsoft.Web.XmlTransform (26)
IXmlTransformationLogger.cs (3)
33void LogErrorFromException(Exception ex); 35void LogErrorFromException(Exception ex, string file); 37void LogErrorFromException(Exception ex, string file, int lineNumber, int linePosition);
XmlElementContext.cs (8)
85catch (Exception ex) { 137catch (Exception ex) { 151catch (Exception ex) { 250private Exception WrapException(Exception ex) { 254private Exception WrapException(Exception ex, XmlNode node) { 336catch (Exception ex) {
XmlNodeException.cs (3)
19public static Exception Wrap(Exception ex, XmlNode node) { 30public XmlNodeException(Exception innerException, XmlNode node)
XmlTransform.cs (2)
215catch (Exception ex) { 264catch (Exception ex) {
XmlTransformation.cs (8)
143catch (Exception ex) { 187catch (Exception ex) { 219catch (Exception ex) { 229private void HandleException(Exception ex) { 233private void HandleException(Exception ex, XmlNodeContext context) { 237private Exception WrapException(Exception ex, XmlNodeContext context) { 263catch (Exception ex)
XmlTransformationException.cs (1)
19public XmlTransformationException(string message, Exception innerException)
XmlTransformationLogger.cs (1)
28internal void LogErrorFromException(Exception ex) {
Microsoft.Win32.Msi (1)
WindowsInstallerException.cs (1)
33public WindowsInstallerException(string? message, Exception? innerException) : base(message, innerException)
Microsoft.Win32.Registry (3)
Microsoft\Win32\RegistryKey.cs (1)
1357catch (Exception exc) when (exc is OverflowException || exc is InvalidOperationException || exc is FormatException || exc is InvalidCastException)
System\Security\AccessControl\RegistrySecurity.cs (2)
98private static Exception? _HandleErrorCode(int errorCode, string? name, SafeHandle? handle, object? context) 100Exception? exception = null;
Microsoft.Win32.SystemEvents (4)
Microsoft\Win32\SystemEvents.cs (4)
732catch (Exception t) 1023catch (Exception) 1126catch (Exception e) 1223catch (Exception e)
Mono.Cecil (11)
Mono.Cecil.Cil\Symbols.cs (4)
937 } catch (Exception) { 946 } catch (Exception) { 1000 } catch (Exception) { 1013 } catch (Exception) {
Mono.Cecil\AssemblyReader.cs (1)
109 } catch (Exception) {
Mono.Cecil\AssemblyWriter.cs (1)
2274 static Exception CreateForeignMemberException (MemberReference member)
Mono.Cecil\BaseAssemblyResolver.cs (1)
53 public AssemblyResolutionException (AssemblyNameReference reference, Exception innerException)
Mono.Cecil\MetadataResolver.cs (1)
62 public ResolutionException (MemberReference member, Exception innerException)
Mono.Cecil\ModuleDefinition.cs (1)
1156 } catch (Exception) {
Mono.Security.Cryptography\CryptoConvert.cs (2)
141 catch (Exception e) { 219 catch (Exception e) {
Mono.Cecil.Mdb (2)
Mono.CompilerServices.SymbolWriter\MonoSymbolFile.cs (2)
50 public MonoSymbolFileException (string message, Exception innerException) 357 } catch (Exception e) {
MSBuild (66)
AutomaticEncodingRestorer.cs (2)
42catch (Exception ex) when (ex is IOException || ex is SecurityException) 61catch (Exception ex) when (ex is IOException || ex is SecurityException)
CommandLine\CommandLineParser.cs (1)
186catch (Exception ex)
CommandLine\CommandLineSwitches.cs (3)
818private Exception _innerException; 848internal void SetParameterError(string messageResourceNameValue, string badCommandLineArgValue, Exception innerExceptionValue, string commandLine) 860private void SetError(string messageResourceNameValue, string badCommandLineArgValue, Exception innerExceptionValue, bool isParameterErrorValue, string commandLine)
InitializationException.cs (2)
141internal static void Throw(string messageResourceName, string invalidSwitch, Exception e, bool showStackTrace) 163internal static void Throw(string messageResourceName, string invalidSwitch, Exception e, bool showStackTrace, params object[] formatArgs)
OutOfProcTaskAppDomainWrapperBase.cs (7)
133catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 137Exception exceptionToReturn = e is TargetInvocationException ? e.InnerException : e; 347catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 349Exception exceptionToReturn = e; 372catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 395catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 425catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
OutOfProcTaskHostNode.cs (4)
843public NodeEngineShutdownReason Run(out Exception shutdownException, bool nodeReuse = false, byte parentPacketVersion = 1) 1306catch (Exception ex) 1474catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1510catch (Exception e)
src\msbuild\src\Shared\Debugging\DebugUtils.cs (4)
95Exception ex = (Exception)e.ExceptionObject; 105private static void RecordCrashTelemetryForUnhandledException(Exception ex) 117internal static void DumpExceptionToFile(Exception ex)
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (1)
30catch (Exception e)
src\msbuild\src\Shared\ErrorUtilities.cs (7)
168internal static void ThrowArgument(Exception? innerException, string resourceName, params object?[]? args) 220internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName) 232internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0) 245internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1) 258internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2) 271internal static void VerifyThrowArgument([DoesNotReturnIf(false)] bool condition, Exception? innerException, string resourceName, object arg0, object arg1, object arg2, object arg3) 349throw new ArgumentNullException(ResourceUtilities.FormatResourceStringStripCodeAndKeyword(resourceName, parameterName), (Exception?)null);
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (5)
507catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 542catch (Exception) 657catch (Exception e) 716catch (Exception e) 775catch (Exception e)
src\msbuild\src\Shared\NodeShutdown.cs (3)
46private Exception _exception; 59public NodeShutdown(NodeShutdownReason reason, Exception e) 95public Exception Exception
src\msbuild\src\Shared\OutOfProcTaskHostTaskResult.cs (4)
39internal OutOfProcTaskHostTaskResult(TaskCompleteType result, Exception taskException) 48internal OutOfProcTaskHostTaskResult(TaskCompleteType result, Exception taskException, string exceptionMessage, string[] exceptionMessageArgs) 57internal OutOfProcTaskHostTaskResult(TaskCompleteType result, IDictionary<string, Object> finalParams, Exception taskException, string exceptionMessage, string[] exceptionMessageArgs) 111public Exception TaskException
src\msbuild\src\Shared\RegisteredTaskObjectCacheBase.cs (1)
150catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
src\msbuild\src\Shared\TaskHostTaskComplete.cs (2)
68private Exception _taskException; 159public Exception TaskException
src\msbuild\src\Shared\TaskParameter.cs (3)
109if (wrappedParameter is Exception) 252Exception exceptionParam = (Exception)_wrappedParameter;
XMake.cs (17)
174catch (Exception ex) 239private static void HandleStaticConstructorException(Exception ex) 378catch (Exception ex) 1019catch (Exception e) when (e is ProjectCacheException || e is Microsoft.Build.Experimental.ProjectCache.ProjectCacheException) 1060catch (Exception e) 1106private static void RecordCrashTelemetry(Exception exception, ExitType exitType, bool isUnhandled = false) 1600Exception exception = null; 1686catch (Exception ex) 1769catch (Exception ex) 1969catch (Exception ex) when (ex is IOException || ex is SecurityException) 2806catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex)) 2825catch (Exception ex) when (ExceptionHandling.IsIoRelatedException(ex)) 2985Exception nodeException = null; 3717catch (Exception e) when (ExceptionHandling.IsIoRelatedException(e)) 4021catch (Exception e) when (loggerDescription.IsOptional) 4044catch (Exception e) 4105catch (Exception ex)
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
228[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Exception))]
netstandard (1)
netstandard.cs (1)
786[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Exception))]
NuGet.Build.Tasks (6)
GetRestoreSettingsTask.cs (1)
182catch (Exception ex)
RestoreTask.cs (1)
158catch (Exception e)
StaticGraphRestoreTaskBase.cs (3)
164catch (Exception e) 191catch (Exception e) when ( 226catch (Exception e)
TaskLoggingQueue.cs (1)
74catch (Exception)
NuGet.Build.Tasks.Console (14)
MSBuildStaticGraphRestore.cs (10)
174catch (Exception e) 215catch (Exception e) 898catch (Exception e) when (e is not OperationCanceledException) 901var innerException = e is AggregateException agg ? agg.InnerExceptions[0] : e; 1005catch (Exception e) 1038catch (Exception e) 1377catch (Exception e) 1401/// <param name="exception">The <see cref="Exception" /> with details to be logged.</param> 1402private void LogErrorFromException(Exception exception) 1407foreach (Exception innerException in aggregateException.Flatten().InnerExceptions)
Program.cs (4)
114catch (Exception e) 217catch (Exception) 255catch (Exception e) 280catch (Exception e)
NuGet.Build.Tasks.Pack (1)
PackTask.cs (1)
151catch (Exception ex)
NuGet.CommandLine.XPlat (7)
Commands\ConfigCommands\ConfigCommand.cs (1)
16internal static void LogException(Exception e, ILogger log)
Commands\Package\Download\PackageDownloadRunner.cs (1)
171catch (Exception ex)
Program.cs (2)
171catch (Exception e) 189internal static void LogException(Exception e, ILogger log)
UILanguageOverride.cs (1)
75catch (Exception e) when (e is CultureNotFoundException || e is ArgumentOutOfRangeException)
Utility\MSBuildAPIUtility.cs (2)
795catch (Exception) 828catch (Exception)
NuGet.Commands (17)
ClientCertificatesCommand\ListClientCertRunner.cs (1)
91catch (Exception e)
Common\CommandException.cs (1)
29public CommandException(string message, Exception exception)
RestoreCommand\ProjectRestoreCommand.cs (1)
193catch (Exception e)
RestoreCommand\RequestFactory\RestoreSpecException.cs (2)
20private RestoreSpecException(string message, IEnumerable<string> files, Exception innerException) 31public static RestoreSpecException Create(string message, IEnumerable<string> files, Exception innerException)
RestoreCommand\SourceRepositoryDependencyProvider.cs (3)
699static ILogMessage UnwrapToLogMessage(Exception e) 701var currentException = ExceptionUtilities.Unwrap(e); 711static bool ContainsHttpSourceException(Exception e, out HttpSourceException httpSourceException)
RestoreCommand\Utility\AuditUtility.cs (1)
249foreach (Exception exception in exceptions.InnerExceptions)
RestoreCommand\Utility\BuildAssetsUtils.cs (1)
416catch (Exception ex)
RestoreCommand\Utility\MSBuildRestoreUtility.cs (1)
112catch (Exception e) when (collectAdditionalMessages && e is not OperationCanceledException)
RestoreCommand\Utility\NoOpRestoreUtilities.cs (1)
158catch (Exception ex)
RestoreCommand\Utility\SpecValidationUtility.cs (1)
76catch (Exception ex) when (!(ex is RestoreSpecException))
RestoreCommand\VulnerabilityInformationProvider.cs (1)
86catch (Exception e)
SignCommand\SignCommandRunner.cs (3)
42catch (Exception e) 102catch (Exception e) 149catch (Exception e)
NuGet.Common (15)
ExceptionUtilities.cs (10)
21public static void LogException(Exception ex, ILogger logger) 30public static void LogException(Exception ex, ILogger logger, bool logStackAsError) 33var unwrappedException = Unwrap(ex); 55public static string DisplayMessage(Exception exception, bool indent) 81public static string DisplayMessage(Exception exception) 106public static Exception Unwrap(Exception exception) 143foreach (var inner in inners) 166private static IEnumerable<string> GetMessages(Exception exception) 168Exception? current = exception;
PathUtil\FileUtility.cs (4)
198catch (Exception ex) when ((i < (MaxTries - 1)) && (ex is UnauthorizedAccessException || ex is IOException)) 228catch (Exception ex) when ((i < (MaxTries - 1)) && (ex is UnauthorizedAccessException || ex is IOException)) 248catch (Exception ex) when ((i < retries) && (ex is UnauthorizedAccessException || ex is IOException)) 270catch (Exception ex) when ((i < retries) && (ex is UnauthorizedAccessException || ex is IOException))
PathUtil\PathUtility.cs (1)
468catch (Exception)
NuGet.Configuration (4)
Exceptions\NuGetConfigurationException.cs (1)
17public NuGetConfigurationException(string message, Exception? innerException)
PackageSource\PackageSourceProvider.cs (1)
1048catch (Exception)
Settings\Items\FileClientCertItem.cs (1)
112catch (Exception e)
Settings\SettingsFile.cs (1)
236catch (Exception e)
NuGet.Credentials (6)
PluginCredentialProvider.cs (2)
155catch (Exception e) 216catch (Exception)
PluginException.cs (2)
27public PluginException(string message, Exception inner) : base(message, inner) { } 38public static PluginException Create(string path, Exception inner)
PluginUnexpectedStatusException.cs (1)
39public PluginUnexpectedStatusException(string message, Exception inner) : base(message, inner) { }
ProviderException.cs (1)
32public ProviderException(string message, Exception inner) : base(message, inner)
NuGet.PackageManagement (35)
Audit\AuditChecker.cs (3)
75foreach (Exception exception in allVulnerabilityData.Exceptions.InnerExceptions) 178List<Exception>? errors = null; 230catch (Exception exception)
FileModifiers\XdtTransformer.cs (1)
134catch (Exception exception)
IDE\PackageRestoreFailedEventArgs.cs (2)
14public Exception Exception { get; private set; } 17public PackageRestoreFailedEventArgs(Packaging.PackageReference restoredFailedPackageReference, Exception exception, IEnumerable<string> projectNames)
IDE\PackageRestoreManager.cs (3)
175catch (Exception) 523Exception exception = null; 534catch (Exception ex)
NuGetPackageManager.cs (5)
1321catch (Exception ex) 2011catch (Exception ex) 2095catch (Exception ex) 2728catch (Exception ex) 3556catch (Exception)
PackagePreFetcherResult.cs (1)
117catch (Exception ex)
Projects\FolderNuGetProject.cs (2)
600catch (Exception ex) 620catch (Exception ex)
Projects\PackagesConfigNuGetProject.cs (3)
288catch (Exception ex) when ((i < (FileUtility.MaxTries - 1)) 296catch (Exception ex) when 336catch (Exception ex)
Projects\ProjectJsonNuGetProject.cs (2)
321catch (Exception ex) 340catch (Exception ex)
Resolution\ResolverGather.cs (2)
469catch (Exception ex) when (ex is System.Net.Http.HttpRequestException || ex is OperationCanceledException || ex is TaskCanceledException) 661catch (Exception ex) when (ex is System.Net.Http.HttpRequestException || ex is OperationCanceledException ||
Utility\ExceptionUtility.cs (4)
13public static Exception GetRootException(Exception exception) 28public static Exception Unwrap(Exception exception)
Utility\FileSystemUtility.cs (1)
513catch (Exception e)
Utility\MSBuildNuGetProjectSystemUtility.cs (6)
160catch (Exception) 318catch (Exception e) 337catch (Exception e) 366catch (Exception e) 413catch (Exception e) 484catch (Exception e)
NuGet.Packaging (24)
Core\PackagingException.cs (2)
25public PackagingException(NuGetLogCode logCode, string message, Exception innerException) 31public PackagingException(string message, Exception innerException)
Definitions\IPackageDownloader.cs (1)
73void SetExceptionHandler(Func<Exception, Task<bool>> handleExceptionAsync);
Exceptions\PackagesConfigReaderException.cs (1)
16public PackagesConfigReaderException(string message, Exception innerException)
Exceptions\PackagesConfigWriterException.cs (1)
16public PackagesConfigWriterException(string message, Exception innerException)
Licenses\NuGetLicenseExpressionParser.cs (1)
145catch (Exception e)
Licenses\NuGetLicenseExpressionParsingException.cs (1)
17public NuGetLicenseExpressionParsingException(string message, Exception innerException)
NuGetExtractionFileIO.cs (1)
60catch (Exception exception)
NupkgMetadata\NupkgMetadataFileFormat.cs (2)
58catch (Exception ex) 63static InvalidDataException LogAndWrap(ILogger log, string path, Exception ex)
PackageArchiveReader.cs (2)
141catch (Exception ex) 375catch (Exception e)
PackageCreation\Authoring\ManifestReader.cs (1)
168catch (Exception ex) when (!(ex is InvalidDataException))
PackagesConfigWriter.cs (2)
69catch (Exception ex) 576catch (Exception ex)
Signing\SignatureException.cs (1)
30public SignatureException(NuGetLogCode code, string message, Exception innerException)
Signing\Signatures\PrimarySignature.cs (1)
165catch (Exception ex)
Signing\Signatures\Signature.cs (1)
168catch (Exception e)
Signing\Timestamp\Rfc3161TimestampProvider.cs (1)
147catch (Exception e)
Signing\Timestamp\Timestamp.cs (1)
70catch (Exception ex)
Signing\Timestamp\TimestampException.cs (1)
24public TimestampException(NuGetLogCode code, string message, Exception innerException)
Signing\TrustStore\CertificateBundleX509ChainFactory.cs (1)
51catch (Exception ex) when
Signing\Utility\VerificationUtility.cs (1)
125catch (Exception e)
Signing\Verification\IntegrityVerificationProvider.cs (1)
37catch (Exception e)
NuGet.ProjectModel (13)
CacheFileFormat.cs (1)
64catch (Exception ex) when (ex is ArgumentNullException || ex is JsonException || ex is NotSupportedException)
FileFormatException.cs (4)
18public FileFormatException(string message, Exception innerException) 58public static FileFormatException Create(Exception exception, JToken value, string path) 74internal static FileFormatException Create(Exception exception, int line, int column, string path) 88internal static FileFormatException Create(Exception exception, string path)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (6)
151catch (Exception ex) 237catch (Exception ex) 407catch (Exception ex) 436catch (Exception ex) 651catch (Exception ex) 713catch (Exception ex)
LockFile\LockFileFormat.cs (1)
163catch (Exception ex)
ProjectLockFile\PackagesLockFileFormat.cs (1)
80catch (Exception ex)
NuGet.Protocol (108)
EnhancedHttpRetryHelper.cs (2)
147catch (Exception) { } 170catch (Exception) { }
Exceptions\FatalProtocolException.cs (1)
16public FatalProtocolException(string message, Exception innerException) : base(message, innerException)
Exceptions\InvalidCacheProtocolException.cs (1)
21public InvalidCacheProtocolException(string message, Exception innerException)
Exceptions\NuGetProtocolException.cs (1)
20public NuGetProtocolException(string message, Exception innerException)
Exceptions\PackageNotFoundProtocolException.cs (1)
26public PackageNotFoundProtocolException(PackageIdentity package, Exception innerException)
Exceptions\RetriableProtocolException.cs (1)
16public RetriableProtocolException(string message, Exception innerException) : base(message, innerException)
HttpSource\HttpRetryHandler.cs (1)
261catch (Exception e)
HttpSource\HttpSource.cs (1)
106catch (Exception e)
HttpSource\HttpSourceAuthenticationHandler.cs (1)
293catch (Exception e)
HttpSource\HttpSourceException.cs (1)
15public HttpSourceException(string message, Exception innerException)
HttpSource\HttpStreamValidation.cs (4)
56catch (Exception e) when (!(e is InvalidDataException)) 89catch (Exception e) 141catch (Exception e) 180catch (Exception e)
HttpSource\ProxyAuthenticationHandler.cs (3)
102catch (Exception ex) 142private static bool ProxyAuthenticationRequired(Exception ex) 221catch (Exception e)
LegacyFeed\DependencyInfoResourceV2Feed.cs (2)
55catch (Exception ex) 86catch (Exception ex)
LegacyFeed\DownloadResourceV2Feed.cs (1)
105catch (Exception ex) when (!(ex is FatalProtocolException))
LegacyFeed\MetadataResourceV2Feed.cs (2)
80catch (Exception ex) 96catch (Exception ex)
LegacyFeed\ODataServiceDocumentUtils.cs (1)
43catch (Exception ex) when (!(ex is FatalProtocolException) && (!(ex is OperationCanceledException)))
LegacyFeed\V2FeedParser.cs (1)
569catch (Exception ex)
LocalPackageArchiveDownloader.cs (3)
24private Func<Exception, Task<bool>> _handleExceptionAsync; 197catch (Exception ex) 256public void SetExceptionHandler(Func<Exception, Task<bool>> handleExceptionAsync)
LocalRepositories\LocalDependencyInfoResource.cs (2)
77catch (Exception ex) 126catch (Exception ex)
LocalRepositories\LocalMetadataResource.cs (1)
94catch (Exception ex)
PackagesFolder\LocalPackageFileCache.cs (1)
148catch (Exception)
Plugins\AutomaticProgressReporter.cs (3)
64catch (Exception) 90catch (Exception) 185catch (Exception)
Plugins\Connection.cs (1)
199catch (Exception)
Plugins\FaultedPluginEventArgs.cs (2)
18public Exception Exception { get; } 32public FaultedPluginEventArgs(IPlugin plugin, Exception exception)
Plugins\InboundRequestContext.cs (4)
124catch (Exception ex) 154catch (Exception) 173public void BeginFaultAsync(Message request, Exception exception) 208catch (Exception)
Plugins\Logging\PluginLogger.cs (1)
123catch (Exception)
Plugins\OutboundRequestContext`1.cs (2)
236catch (Exception) 274catch (Exception)
Plugins\Plugin.cs (2)
203catch (Exception) 214catch (Exception)
Plugins\PluginCreationResult.cs (2)
29public Exception Exception { get; } 96public PluginCreationResult(string message, Exception exception)
Plugins\PluginException.cs (1)
31public PluginException(string message, Exception innerException)
Plugins\PluginFactory.cs (3)
290catch (Exception) 365catch (Exception) 455catch (Exception)
Plugins\PluginManager.cs (1)
261catch (Exception e)
Plugins\PluginPackageDownloader.cs (3)
20private Func<Exception, Task<bool>> _handleExceptionAsync; 161catch (Exception ex) 225public void SetExceptionHandler(Func<Exception, Task<bool>> handleExceptionAsync)
Plugins\PluginPackageReader.cs (1)
1178catch (Exception)
Plugins\PluginProcess.cs (1)
133catch (Exception)
Plugins\ProtocolErrorEventArgs.cs (3)
18public Exception Exception { get; } 30public ProtocolErrorEventArgs(Exception exception) 47public ProtocolErrorEventArgs(Exception exception, Message message)
Plugins\ProtocolException.cs (1)
31public ProtocolException(string message, Exception innerException)
Plugins\Receiver.cs (1)
63protected void FireFaultEvent(Exception exception, Message message)
Plugins\RequestHandlers\MonitorNuGetProcessExitRequestHandler.cs (1)
103catch (Exception)
Plugins\StandardInputReceiver.cs (2)
78catch (Exception) 146catch (Exception ex)
Plugins\StandardOutputReceiver.cs (1)
128catch (Exception ex)
Plugins\TimeoutUtilities.cs (1)
45catch (Exception)
Providers\RepositorySignatureResourceProvider.cs (2)
109catch (Exception ex) when (retry < maxRetries) 116catch (Exception ex) when (retry == maxRetries)
Providers\ServiceIndexResourceV3Provider.cs (2)
165catch (Exception ex) when (retry < maxRetries) 184catch (Exception ex) when (retry == maxRetries)
RemotePackageArchiveDownloader.cs (3)
25private Func<Exception, Task<bool>> _handleExceptionAsync; 192catch (Exception ex) 250public void SetExceptionHandler(Func<Exception, Task<bool>> handleExceptionAsync)
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResource.cs (2)
547catch (Exception ex) when (retry < _maxRetries) 566catch (Exception ex) when (retry == _maxRetries)
RemoteRepositories\PackageUtilities.cs (1)
34catch (Exception exception) when (exception is PackagingException ||
RemoteRepositories\PluginFindPackageByIdResource.cs (1)
444catch (Exception ex)
RemoteRepositories\RemoteV2FindPackageByIdResource.cs (2)
546catch (Exception ex) when (retry < maxRetries) 553catch (Exception ex) when (retry == maxRetries)
Resources\DependencyInfoResourceV3.cs (3)
86catch (Exception ex) 124catch (Exception ex) 150catch (Exception ex)
Resources\MetadataResourceV3.cs (1)
54catch (Exception ex)
Resources\PackageUpdateResource.cs (1)
484catch (Exception e)
Resources\VulnerabilityInfoResourceV3.cs (9)
57catch (Exception ex) when (ex is not FatalProtocolException) 111catch (Exception ex) when (ex is not FatalProtocolException) 130List<Exception>? exceptions = null; 176catch (Exception ex) 182catch (Exception ex) 190static AggregateException? ToAggregateException(IEnumerable<Exception>? exceptions) 200private IReadOnlyList<V3VulnerabilityIndexEntry> GetValidIndexEntries(IReadOnlyList<V3VulnerabilityIndexEntry> indexEntries, ref List<Exception>? exceptions) 277private static void AddException(Exception exception, ref List<Exception>? exceptions)
Utility\FindPackagesByIdNupkgDownloader.cs (2)
292catch (Exception ex) when (retry < maxRetries) 316catch (Exception ex) when (retry == maxRetries)
Utility\GetDownloadResultUtility.cs (3)
114catch (Exception ex) when (retry < 2) 121catch (Exception ex) 150catch (Exception e) when (e is UnauthorizedAccessException ||
Utility\LocalFolderUtility.cs (6)
823catch (Exception ex) when (ex is ArgumentException || 845catch (Exception ex) when (ex is ArgumentException || ex is IOException || ex is SecurityException) 1146catch (Exception e) when (e is not OperationCanceledException) 1166catch (Exception e) when (e is not OperationCanceledException) 1189catch (Exception e) when (e is not OperationCanceledException) 1231catch (Exception ex)
Utility\OfflineFeedUtility.cs (1)
227catch (Exception ex) when (ex is InvalidDataException
Pipelines.AppHost (1)
AppHost.cs (1)
218catch (Exception ex)
PresentationBuildTasks (39)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (1)
98catch (Exception e)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
210catch (Exception e) 326catch (Exception e)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (1)
177catch (Exception e)
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (1)
131catch (Exception e)
Microsoft\Build\Tasks\Windows\MergeLocalizationDirectives.cs (1)
86catch (Exception e)
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
194catch (Exception e)
Microsoft\Build\Tasks\Windows\UidManager.cs (4)
93catch (Exception e) 391catch (Exception e) 988catch (Exception e) 1027catch (Exception e)
Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (1)
125catch (Exception e)
MS\Internal\MarkupCompiler\CompilationUnit.cs (3)
104internal MarkupErrorEventArgs(Exception e, int lineNum, int linePos, string fileName) 119public Exception Exception 154private Exception _e;
MS\Internal\MarkupCompiler\MarkupCompiler.cs (4)
489catch (Exception e) 542catch (Exception e) 734Exception compilerException = new Exception(message); 738internal void OnError(Exception e)
MS\Internal\Tasks\CompilerWrapper.cs (1)
322private bool IsXmlException(Exception e)
MS\Internal\Tasks\TaskHelper.cs (3)
190internal static string GetWholeExceptionMessage(Exception exception) 192Exception e = exception; 197Exception eInner = e.InnerException;
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlMapTable.cs (1)
1052catch (Exception e)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParseException.cs (5)
62public XamlParseException(string message, Exception innerException) 104public XamlParseException(string message, int lineNumber, int linePosition, Exception innerException) 111internal XamlParseException(string message, int lineNumber, int linePosition, Uri baseUri, Exception innerException) 409Exception innerException, 517Exception innerException,
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParser.cs (1)
187catch (Exception e)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (3)
410catch (Exception e) 1373Exception innerException) 3135catch (Exception e)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (2)
2633catch (Exception e) 3806internal void ThrowExceptionWithLine(string message, Exception innerException)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CriticalExceptions.cs (3)
19internal static bool IsCriticalException(Exception ex) 45internal static Exception Unwrap(Exception ex)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (1)
98catch (Exception e) when (!CriticalExceptions.IsCriticalException(e))
PresentationCore (121)
MS\Internal\AppModel\CookieHandler.cs (2)
49catch (Exception ex) // Attaching cookies shouldn't fail a web request. 87catch (Exception ex) // A malformed cookie shouldn't fail the whole web request.
MS\Internal\Automation\ElementUtil.cs (2)
185Exception remoteException = null; 197catch(Exception e)
MS\Internal\DpiUtil\DpiUtil+DpiAwarenessContextHelper.cs (1)
50catch (Exception e) when (e is EntryPointNotFoundException || e is MissingMethodException || e is DllNotFoundException)
MS\Internal\DpiUtil\DpiUtil+DpiAwarenessScope.cs (1)
119catch (Exception e) when (e is EntryPointNotFoundException || e is MissingMethodException || e is DllNotFoundException)
MS\Internal\DpiUtil\DpiUtil+ProcessDpiAwarenessHelper.cs (2)
70catch (Exception e) when (e is EntryPointNotFoundException || e is MissingMethodException || e is DllNotFoundException) 74catch (Exception e) when (e is ArgumentException || e is UnauthorizedAccessException || e is COMException)
MS\Internal\DpiUtil\DpiUtil+SystemDpiHelper.cs (1)
52catch (Exception e) when (e is EntryPointNotFoundException || e is MissingMethodException || e is DllNotFoundException)
MS\Internal\DpiUtil\DpiUtil+WindowDpiScaleHelper.cs (3)
50catch (Exception e) when (e is EntryPointNotFoundException || e is MissingMethodException || e is DllNotFoundException) 54catch (Exception e) when (e is COMException) 65catch (Exception e) when (e is COMException)
MS\Internal\FontCache\FontCacheUtil.cs (1)
764internal static Exception ConvertInPageException(FontSource fontSource, SEHException e)
MS\Internal\FontFace\CompositeFontParser.cs (4)
192catch (Exception x) when(string.Equals(x.GetType().FullName, "System.Security.XmlSyntaxException", StringComparison.OrdinalIgnoreCase)) 870private void FailNotWellFormed(Exception x) 888private void FailAttributeValue(Exception x) 939private void Fail(string message, Exception innerException)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (2)
552catch (Exception e) // catch (and re-throw) exceptions so we can inform the other thread 841private Exception _erroredOutException;
MS\Internal\Text\TextInterface\DWriteUtil.cs (1)
55System.Exception e = System.Runtime.InteropServices.Marshal.GetExceptionForHR(hr);
MS\Internal\Text\TextInterface\FontCollectionLoader.cs (1)
74catch (Exception exception)
MS\Internal\TextFormatting\FullTextBreakpoint.cs (1)
82Exception callbackException = context.CallbackException;
MS\Internal\TextFormatting\FullTextLine.cs (9)
292Exception callbackException = context.CallbackException; 400private static Exception WrapException(Exception caughtException) 410new Type[] { typeof(Exception) } 414return (Exception)constructor.Invoke( 421new Type[] { typeof(string), typeof(Exception) } 425return (Exception)constructor.Invoke( 613Exception callbackException = context.CallbackException; 2142Exception callbackException = context.CallbackException;
MS\Internal\TextFormatting\LineServicesCallbacks.cs (32)
217catch (Exception e) 342catch (Exception e) 386catch (Exception e) 432catch (Exception e) 526catch (Exception e) 557catch (Exception e) 635catch (Exception e) 699catch (Exception e) 752catch (Exception e) 812catch (Exception e) 849catch (Exception e) 891catch (Exception e) 956catch (Exception e) 1009catch (Exception e) 1466catch (Exception e) 1516catch (Exception e) 1651catch (Exception e) 1733catch (Exception e) 1839catch (Exception e) 1889catch (Exception e) 1939catch (Exception e) 2043catch (Exception e) 2175catch (Exception e) 2319catch (Exception e) 2391catch (Exception e) 2555catch (Exception e) 2684catch (Exception e) 2766catch (Exception e) 3387private void SaveException(Exception e, Plsrun plsrun, LSRun lsrun) 3395Exception e = new System.Exception(SR.NonCLSException); 3426private Exception _exception; 3428internal Exception Exception
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\InputPane.cs (1)
194catch (Exception e) when (e is TypeLoadException
MS\Internal\WindowsRuntime\Windows\UI\ViewManagement\UISettings.cs (1)
123catch (Exception e) when (e is TypeLoadException || e is FileNotFoundException)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\Graphics\wgx_render.cs (2)
773internal static Exception ConvertHRToException(int hr) 775Exception exceptionForHR = Marshal.GetExceptionForHR(hr, (IntPtr)(-1));
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (2)
131internal static Exception GetExceptionForHR(int hr) 143internal static int GetHRForException(Exception exception)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\IO\FileHelper.cs (1)
132catch (Exception e) when (retries > 0 && (e is IOException || e is UnauthorizedAccessException))
System\IO\Packaging\PackWebResponse.cs (1)
931private Exception _responseException; // actual exception to throw (if any)
System\Windows\Documents\GetPageCompletedEventArgs.cs (1)
33public GetPageCompletedEventArgs(DocumentPage page, int pageNumber, Exception error, bool cancelled, object userState)
System\Windows\Documents\GetPageNumberCompletedEventArgs.cs (1)
33public GetPageNumberCompletedEventArgs(ContentPosition contentPosition, int pageNumber, Exception error, bool cancelled, object userState)
System\Windows\Input\Stylus\Common\StylusLogic.cs (1)
287catch (Exception e) when (e is IOException)
System\Windows\Input\Stylus\Common\StylusTraceLogger.cs (1)
279where T : Exception, new()
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (6)
149catch (Exception e) when (PenThreadWorker.IsKnownException(e)) 204catch (Exception e) when (PenThreadWorker.IsKnownException(e)) 312catch (Exception e) when (PenThreadWorker.IsKnownException(e)) 353catch (Exception e) when (PenThreadWorker.IsKnownException(e)) 394catch (Exception e) when (PenThreadWorker.IsKnownException(e)) 1131private static bool IsKnownException(Exception e)
System\Windows\InterOp\HwndTarget.cs (1)
1455catch (Exception e)
System\Windows\Markup\IProvidePropertyFallback.cs (1)
25object ProvidePropertyFallback(string property, Exception cause);
System\Windows\Media\Animation\AnimationException.cs (1)
38string message, Exception innerException)
System\Windows\Media\Animation\AnimationStorage.cs (1)
480catch (Exception e)
System\Windows\Media\DrawingCollection.cs (1)
46catch (Exception)
System\Windows\Media\EventProxy.cs (1)
91catch (Exception e)
System\Windows\Media\ImageSourceConverter.cs (1)
140catch (Exception e)
System\Windows\Media\Imaging\BitmapDownload.cs (5)
143catch(Exception e) 213catch (Exception e) 249catch (Exception e) 267catch (Exception e) 390Exception e
System\Windows\Media\Imaging\BitmapImage.cs (1)
595catch (Exception e)
System\Windows\Media\Imaging\BitmapSource.cs (3)
797catch (Exception e) 853catch (Exception e) 950internal void RecoverFromDecodeFailure(Exception e)
System\Windows\Media\Imaging\LateBoundBitmapDecoder.cs (2)
302catch(Exception e) 333_failedEvent.InvokeEvents(this, new ExceptionEventArgs((Exception)arg));
System\Windows\Media\InvalidWMPVersionException.cs (1)
54public InvalidWmpVersionException(string message, Exception innerException) : base(message, innerException)
System\Windows\Media\mediaeventargs.cs (3)
20internal ExceptionEventArgs(Exception errorException) 31public Exception ErrorException 42private Exception _errorException;
System\Windows\Media\mediaeventshelper.cs (1)
213internal void RaiseMediaFailed(Exception e)
System\Windows\Media\StreamAsIStream.cs (14)
120private Exception _lastException; 161catch (Exception e) 180catch (Exception e) 237catch (Exception e) 253catch (Exception e) 274catch (Exception e) 290catch (Exception e) 362catch (Exception e) 380catch (Exception e) 405catch (Exception e) 421catch (Exception e) 445catch (Exception e) 465catch (Exception e) 485catch (Exception e)
System\Windows\Media\textformatting\TextFormatterContext.cs (1)
193internal Exception CallbackException
System\Windows\Media\textformatting\TextParagraphCache.cs (1)
65Exception callbackException = context.CallbackException;
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
22catch (Exception ex) when (ex is KeyNotFoundException or InvalidCastException)
PresentationFramework (368)
MS\Internal\AppModel\ContentFilePart.cs (1)
105catch (Exception ex)
MS\Internal\AppModel\Journaling.cs (1)
677catch (Exception ex)
MS\Internal\AppModel\ReturnEventSaver.cs (1)
129catch (Exception ex)
MS\Internal\Controls\ActiveXSite.cs (3)
211catch (Exception t) 354catch (Exception t) 442catch (Exception ex)
MS\Internal\Controls\ConnectionPointCookie.cs (4)
20Exception ex = null; 31catch (Exception e) 99catch (Exception ex) 116catch (Exception ex)
MS\Internal\Data\AsyncDataRequest.cs (3)
70public Exception Exception { get { return _exception; } } 146public void Fail(Exception exception) 214private Exception _exception;
MS\Internal\Data\ClrBindingWorker.cs (4)
464internal void ReportGetValueError(int k, object item, Exception ex) 479internal void ReportSetValueError(int k, object item, object value, Exception ex) 749Exception exception = filteredException as Exception;
MS\Internal\Data\DefaultAsyncDataDispatcher.cs (1)
73catch (Exception ex)
MS\Internal\Data\PropertyPathWorker.cs (4)
539catch (Exception ex) 1410catch (Exception ex) 1523catch (Exception ex) // if error getting value, we will use fallback/default instead 1619catch (Exception ex2)
MS\Internal\Data\RBTree.cs (1)
123catch (Exception e)
MS\Internal\DataStreams.cs (2)
128catch (Exception ex) when (!ex.IsCriticalException()) 257catch (Exception ex) when (!ex.IsCriticalException())
MS\Internal\Documents\UndoManager.cs (2)
499/// <exception cref="Exception"> 564/// <exception cref="Exception">
MS\Internal\IO\Packaging\XpsFilter.cs (1)
554catch (Exception ex)
MS\Internal\Printing\PrintDlgExMarshaler.cs (1)
613catch (Exception)
MS\Internal\Printing\Win32PrintDialog.cs (1)
103catch(Exception e)
MS\Internal\PtsHost\Pts.cs (5)
94Exception innerException = GetInnermostException(ptsContext); 129private static Exception GetInnermostException(PtsContext ptsContext) 132Exception exception = ptsContext.CallbackException; 133Exception innerException = exception; 266internal SecondaryException(Exception e) : base(null, e) { }
MS\Internal\PtsHost\PtsContext.cs (2)
405internal Exception CallbackException 591private Exception _callbackException;
MS\Internal\PtsHost\PtsHost.cs (89)
154catch (Exception e) 194catch (Exception e) 237catch (Exception e) 267catch (Exception e) 298catch (Exception e) 325catch (Exception e) 357catch (Exception e) 392catch (Exception e) 420catch (Exception e) 455catch (Exception e) 490catch (Exception e) 516catch (Exception e) 546catch (Exception e) 599catch (Exception e) 629catch (Exception e) 657catch (Exception e) 684catch (Exception e) 712catch (Exception e) 736catch (Exception e) 764catch (Exception e) 787catch (Exception e) 823catch (Exception e) 850catch (Exception e) 973catch (Exception e) 998catch (Exception e) 1031catch (Exception e) 1070catch (Exception e) 1105catch (Exception e) 1158catch (Exception e) 1202catch (Exception e) 1228catch (Exception e) 1327catch (Exception e) 1385catch (Exception e) 1444catch (Exception e) 1564catch (Exception e) 1624catch (Exception e) 1661catch (Exception e) 1686catch (Exception e) 1730catch (Exception e) 1759catch (Exception e) 1787catch (Exception e) 1825catch (Exception e) 1929catch (Exception e) 1985catch (Exception e) 2041catch (Exception e) 2099catch (Exception e) 2127catch (Exception e) 2169catch (Exception e) 2199catch (Exception e) 2250catch (Exception e) 2292catch (Exception e) 2335catch (Exception e) 2375catch (Exception e) 2590catch (Exception e) 2626catch (Exception e) 2709catch (Exception e) 2765catch (Exception e) 2823catch (Exception e) 2856catch (Exception e) 3024catch (Exception e) 3080catch (Exception e) 3138catch (Exception e) 3271catch (Exception e) 3301catch (Exception e) 3334catch (Exception e) 3366catch (Exception e) 3395catch (Exception e) 3427catch (Exception e) 3458catch (Exception e) 3490catch (Exception e) 3520catch (Exception e) 3551catch (Exception e) 3587catch (Exception e) 3625catch (Exception e) 3661catch (Exception e) 3692catch (Exception e) 3722catch (Exception e) 3750catch (Exception e) 3780catch (Exception e) 3807catch (Exception e) 3844catch (Exception e) 3890catch (Exception e) 3935catch (Exception e) 3982catch (Exception e) 4044catch (Exception e) 4080catch (Exception e) 4105catch (Exception e) 4132catch (Exception e) 4160catch (Exception e)
MS\Internal\TraceData.cs (3)
287public static string IdentifyException(Exception ex) 301public static void TraceAndNotify(TraceEventType eventType, AvTraceDetails traceDetails, BindingExpressionBase binding, Exception exception = null) 318public static void TraceAndNotify(TraceEventType eventType, AvTraceDetails traceDetails, Exception exception = null)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (29)
475catch (Exception __exception__) 494catch (Exception __exception__) 513catch (Exception __exception__) 647catch (Exception __exception__) 669catch (Exception __exception__) 688catch (Exception __exception__) 707catch (Exception __exception__) 726catch (Exception __exception__) 745catch (Exception __exception__) 764catch (Exception __exception__) 783catch (Exception __exception__) 802catch (Exception __exception__) 821catch (Exception __exception__) 840catch (Exception __exception__) 859catch (Exception __exception__) 878catch (Exception __exception__) 897catch (Exception __exception__) 916catch (Exception __exception__) 935catch (Exception __exception__) 954catch (Exception __exception__) 1159catch (Exception __exception__) 1178catch (Exception __exception__) 1197catch (Exception __exception__) 1311catch (Exception __exception__) 1330catch (Exception __exception__) 1346catch (Exception __exception__) 1365catch (Exception __exception__) 1499catch (Exception __exception__) 1643catch (Exception __exception__)
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (10)
250catch (Exception __exception__) 269catch (Exception __exception__) 288catch (Exception __exception__) 307catch (Exception __exception__) 434catch (Exception __exception__) 508catch (Exception __exception__) 589catch (Exception __exception__) 672catch (Exception __exception__) 691catch (Exception __exception__) 788catch (Exception __exception__)
MS\Internal\WindowsRuntime\Generated\WinRT.cs (2)
132catch (Exception) { } 242catch (Exception) { }
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (16)
64Exception ex = GetExceptionForHR(hr, useGlobalErrorState: true, out bool restoredExceptionFromGlobalState); 75public static Exception GetExceptionForHR(int hr) => GetExceptionForHR(hr, false, out _); 77private static Exception GetExceptionForHR(int hr, bool useGlobalErrorState, out bool restoredExceptionFromGlobalState) 87Exception ex; 114ex = ComWrappersSupport.FindObject<Exception>(languageException.ThisPtr); 164public static unsafe void SetErrorInfo(Exception ex) 203public static void ReportUnhandledError(Exception ex) 214public static int GetHRForException(Exception ex) 256this Exception ex, 280this Exception ex, 298public static Exception AttachRestrictedErrorInfo(Exception e) 353public static void SetHResult(this Exception ex, int value) 358internal static Exception GetExceptionForHR(this Exception innerException, int hresult, string messageResource) 360Exception e;
MS\Internal\WindowsRuntime\Generated\WinRT\IInspectable.cs (2)
58catch (Exception ex) 73catch (Exception ex)
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\ExceptionErrorInfo.cs (8)
45private readonly Exception _exception; 47public ManagedExceptionErrorInfo(Exception ex) 119catch (Exception ex) 136catch (Exception ex) 154catch (Exception ex) 172catch (Exception ex) 190catch (Exception ex) 352catch (Exception ex)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (10)
59catch (Exception) when (dispose()) 153catch (Exception) when (dispose()) 217catch (Exception) when (dispose()) 243catch (Exception) when (dispose()) 471catch (Exception) when (dispose()) 548catch (Exception) when (dispose()) 577catch (Exception) when (dispose()) 651catch (Exception) when (dispose()) 706catch (Exception) when (dispose()) 734catch (Exception) when (dispose())
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (6)
132catch (Exception __exception__) 298catch (Exception e) 480catch (Exception __exception__) 501catch (Exception __exception__) 519catch (Exception __exception__) 538catch (Exception __exception__)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (6)
94catch (Exception ex) 123Exception e = new ArgumentOutOfRangeException(nameof(index), ErrorStrings.ArgumentOutOfRange_IndexLargerThanMaxValue); 268catch (Exception __exception__) 290catch (Exception __exception__) 311catch (Exception __exception__) 330catch (Exception __exception__)
MS\Internal\WindowsRuntime\Generated\WinRT\TypeExtensions.cs (2)
13if (typeof(Exception).IsAssignableFrom(type)) 15type = typeof(Exception);
MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (1)
68catch (Exception e)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SecurityHelper.cs (1)
131internal static Exception GetExceptionForHR(int hr)
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
218catch (Exception ex)
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
183catch (Exception ex)
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
294catch(Exception ex)
System\Windows\Controls\DataErrorValidationRule.cs (1)
79catch (Exception ex)
System\Windows\Controls\DatePickerDateValidationErrorEventArgs.cs (2)
18public DatePickerDateValidationErrorEventArgs(Exception exception, string text) 27public Exception Exception
System\Windows\Controls\ExceptionRoutedEventArgs.cs (3)
19Exception errorException 30public Exception ErrorException 38private Exception _errorException;
System\Windows\Controls\Image.cs (2)
323catch(Exception e) 496object IProvidePropertyFallback.ProvidePropertyFallback(string property, Exception cause)
System\Windows\Controls\ItemContainerGenerator.cs (1)
1098Exception exception = new Exception(sb.ToString());
System\Windows\Controls\Primitives\Popup.cs (4)
1862Exception nre = new NullReferenceException(); 1905private static readonly UncommonField<Exception> SavedExceptionField = new UncommonField<Exception>(); 1907internal Exception SavedException
System\Windows\Controls\Primitives\PopupRoot.cs (1)
147catch (Exception e)
System\Windows\Controls\PrintDialogException.cs (1)
47Exception innerException
System\Windows\Controls\ValidationError.cs (3)
27public ValidationError(ValidationRule ruleInError, object bindingInError, object errorContent, Exception exception) 84public Exception Exception 112private Exception _exception;
System\Windows\Data\Binding.cs (1)
670internal object DoFilterException(object bindExpr, Exception exception)
System\Windows\Data\BindingExpression.cs (7)
31public delegate object UpdateSourceExceptionFilterCallback(object bindExpression, Exception exception); 1641catch (Exception ex) 1694catch (Exception ex) 1978catch (Exception ex) 2167private void ProcessException(Exception ex, bool validate) 2308catch (Exception ex) 2527private object CallDoFilterException(Exception ex)
System\Windows\Data\BindingExpressionBase.cs (4)
2118Exception e; 2144Exception e; 2164private static object ConvertValue(object value, DependencyProperty dp, out Exception e) 2191catch (Exception ex)
System\Windows\Data\BindingGroup.cs (2)
1066catch (Exception ex) 1237catch (Exception ex)
System\Windows\Data\BindingOperations.cs (5)
568internal static void LogException(Exception ex) 579internal void LogException(Exception ex) 590internal List<Exception> Log { get { return _log; } } 592private List<Exception> _log = new List<Exception>();
System\Windows\Data\MultiBinding.cs (1)
362internal object DoFilterException(object bindExpr, Exception exception)
System\Windows\Data\ObjectDataProvider.cs (6)
374Exception e = null; // exception to pass back to main thread 384Exception exInstantiation = null; 429private object CreateObjectInstance(out Exception e) 467catch (Exception ex) 499private object InvokeMethodOnInstance(out Exception e) 544catch (Exception ex)
System\Windows\Data\ValueUnavailableException.cs (1)
39public ValueUnavailableException(string message, Exception innerException) : base(message, innerException)
System\Windows\Data\XmlDataProvider.cs (3)
464Exception ex = null; 554Exception ex = null; 587catch (Exception e)
System\Windows\DataTemplate.cs (2)
43Exception ex = TemplateKey.ValidateDataType(dataType, "dataType"); 73Exception ex = TemplateKey.ValidateDataType(value, "value");
System\Windows\Documents\DocumentSequence.cs (1)
918private void _NotifyGetPageAsyncCompleted(DocumentPage page, int pageNumber, Exception error, bool cancelled, object userState)
System\Windows\Documents\FixedDocument.cs (3)
663catch (Exception e) 949catch (Exception e) 1254private void _NotifyGetPageAsyncCompleted(DocumentPage page, int pageNumber, Exception error, bool cancelled, object userState)
System\Windows\Documents\FixedFindEngine.cs (1)
411catch (Exception)
System\Windows\Documents\ITextView.cs (4)
594public BringPositionIntoViewCompletedEventArgs(ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState) 622public BringPointIntoViewCompletedEventArgs(Point point, ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState) 691public BringLineIntoViewCompletedEventArgs(ITextPointer position, double suggestedX, int count, ITextPointer newPosition, double newSuggestedX, int linesMoved, bool succeeded, Exception error, bool cancelled, object userState) 807public BringPageIntoViewCompletedEventArgs(ITextPointer position, Point suggestedOffset, int count, ITextPointer newPosition, Point newSuggestedOffset, int pagesMoved, bool succeeded, Exception error, bool cancelled, object userState)
System\Windows\Documents\MsSpellCheckLib\SpellCheckerFactory\SpellCheckerFactory.cs (1)
161catch (Exception e) when (suppressOtherExceptions && !(e is COMException) && !(e is UnauthorizedAccessException))
System\Windows\Documents\MsSpellCheckLib\Utils\RetryHelper.cs (7)
68catch (Exception e) when (MatchException(e, ignoredExceptions)) 124catch (Exception e) when (MatchException(e, ignoredExceptions)) 191catch (Exception e) when (MatchException(e, ignoredExceptions)) 253catch (Exception e) when (MatchException(e, ignoredExceptions)) 281private static bool MatchException(Exception exception, List<Type> exceptions) 300Invariant.Assert(exceptions.TrueForAll((t) => typeof(Exception).IsAssignableFrom(t))); 313internal RetriesExhaustedException(string message, Exception innerException) : base(message, innerException) { }
System\Windows\Documents\NLGSpellerInterop.cs (1)
971catch (Exception e)
System\Windows\Documents\PageContent.cs (2)
468private void _NotifyPageCompleted(FixedPage result, Exception error, bool cancelled, object userToken) 636internal GetPageRootCompletedEventArgs(FixedPage page, Exception error, bool cancelled, object userToken)
System\Windows\Documents\PageContentAsyncResult.cs (2)
202internal Exception Exception 251private Exception _exception;
System\Windows\Documents\Serialization\SerializerWriterEventHandlers.cs (4)
131Exception exception): base(exception, cancelled, state) 197Exception exception 207Exception 217private Exception _exception;
System\Windows\Documents\Speller.cs (2)
357catch(Exception e) 1583catch (Exception e)
System\Windows\Documents\SpellerInteropBase.cs (1)
135catch (Exception ex) when
System\Windows\Documents\WinRTSpellerInterop.cs (4)
43catch (Exception ex) 61catch (Exception ex) when (ex is ArgumentException || ex is NotSupportedException || ex is PlatformNotSupportedException) 311catch (Exception ex) 478catch (Exception e) when ((e is ArgumentException) || !fileCopied)
System\Windows\Documents\WpfPayload.cs (1)
291/// <exception cref="Exception">
System\Windows\FrameworkTemplate.cs (1)
1052catch (Exception e)
System\Windows\Interop\ActiveXHost.cs (1)
654catch (Exception e)
System\Windows\Markup\BamlRecordReader.cs (18)
770catch (Exception e) 1533catch (Exception e) 1635catch( Exception e ) 2134Exception innerException = null; 2148catch (Exception e) 2205catch (Exception e) 2478catch( Exception e ) 2651catch (Exception e) 2893catch (Exception e) 3708catch (Exception e) 3846catch (Exception e) 3956catch (Exception e) 3976Exception e, 4493catch( Exception e ) 4758catch( Exception e ) 4986catch (Exception e) 5186internal void ThrowExceptionWithLine(string message, Exception innerException) 5304catch (Exception e)
System\Windows\Markup\WpfXamlLoader.cs (1)
163catch (Exception e)
System\Windows\Markup\XamlParseException.cs (6)
62public XamlParseException(string message, Exception innerException) 104public XamlParseException(string message, int lineNumber, int linePosition, Exception innerException) 111internal XamlParseException(string message, int lineNumber, int linePosition, Uri baseUri, Exception innerException) 409Exception innerException, 501internal static void ThrowException(ParserContext parserContext, int lineNumber, int linePosition, string message, Exception innerException) 517Exception innerException,
System\Windows\Markup\XamlReader.cs (11)
300internal static bool ShouldReWrapException(Exception e, Uri baseUri) 448catch (Exception e) 486internal static void RewrapException(Exception e, Uri baseUri) 491internal static void RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) 496internal static XamlParseException WrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) 498Exception baseException = e.InnerException ?? e; 636catch (Exception e) 898catch (Exception e) 968catch (Exception e) 1071catch (Exception e) 1166private Exception _parseException;
System\Windows\Markup\XamlTemplateSerializer.cs (2)
120Exception ex = TemplateKey.ValidateDataType(dataType, null); 160Exception innerException)
System\Windows\Markup\XamlTypeMapper.cs (3)
563catch (Exception e) 2633catch (Exception e) 3806internal void ThrowExceptionWithLine(string message, Exception innerException)
System\Windows\Markup\XamlTypeMapperSchemaContext.cs (1)
216catch (Exception e)
System\Windows\Navigation\NavigationFailedEventArgs.cs (3)
31internal NavigationFailedEventArgs(Uri uri, Object extraData, Object navigator, WebRequest request, WebResponse response, Exception e) 99public Exception Exception 127private Exception _exception;
System\Windows\PropertyPath.cs (1)
793catch (Exception ex)
System\Windows\Shell\JumpList.cs (3)
772catch (Exception e) 969catch (Exception) 992catch (Exception)
System\Windows\Standard\ErrorCodes.cs (3)
415Exception e = MS.Internal.PresentationFramework.SecurityHelper.GetExceptionForHR((int)_value); 442e = cons.Invoke(new object[] { message }) as Exception; 460private static Exception CreateWin32Exception(int code, string message)
System\Windows\StyleHelper.cs (1)
5906catch (Exception ex)
System\Windows\TemplateKey.cs (4)
29Exception ex = ValidateDataType(dataType, "dataType"); 73Exception ex = ValidateDataType(value, "value"); 153internal static Exception ValidateDataType(object dataType, string argName) 155Exception result = null;
PresentationUI (11)
MS\Internal\Documents\Application\DocumentStream.cs (5)
167catch (Exception e) 418Exception exception = null; 600catch (Exception e) 772catch (Exception exception) 933catch(Exception e)
MS\Internal\Documents\Application\RightsManagementErrorHandler.cs (3)
69Exception exception) 193Exception exception, 241Exception exception,
MS\Internal\Documents\Application\XpsViewerException.cs (1)
56internal XpsViewerException(string message, Exception innerException)
MS\Internal\Documents\RightsManagementManager.cs (1)
1360catch (Exception exception)
MS\Internal\Documents\RMPublishingDialog.cs (1)
396catch (Exception e)
ReachFramework (36)
Exceptions\XpsException.cs (1)
47Exception innerException
Exceptions\XpsPackagingException.cs (1)
46Exception innerException
Exceptions\XpsSerializationException.cs (1)
46Exception innerException
PrintConfig\PrtCap_Public.cs (3)
39/// The exception object's <see cref="Exception.Message"/> property describes why the XML is not well-formed. And if not 40/// null, the exception object's <see cref="Exception.InnerException"/> property provides more details. 455internal static FormatException NewPrintCapFormatException(string detailMsg, Exception innerException)
PrintConfig\PrtCap_Public_Simple.cs (2)
193/// well-formed XML PrintCapabilities. The exception object's <see cref="Exception.Message"/> property describes 195/// <see cref="Exception.InnerException"/> property provides more details.
PrintConfig\PrtCap_Reader.cs (1)
492private static FormatException NewPrintCapFormatException(string detailMsg, Exception innerException)
PrintConfig\PrtTicket_Editor.cs (1)
400private static FormatException NewPTFormatException(string detailMsg, Exception innerException)
PrintConfig\PrtTicket_Public.cs (3)
58/// The exception object's <see cref="Exception.Message"/> property describes why the XML is not well-formed. 59/// And if not null, the exception object's <see cref="Exception.InnerException"/> property provides more details. 521internal static FormatException NewPTFormatException(string detailMsg, Exception innerException)
PrintConfig\PrtTicket_Public_Simple.cs (2)
262/// well-formed XML PrintTicket. The exception object's <see cref="Exception.Message"/> property describes 264/// <see cref="Exception.InnerException"/> property provides more details.
PrintSystemExceptions\PrintSystemException.cs (14)
126Exception innerException 188Exception innerException 369Exception innerException 448Exception innerException 533Exception innerException 598Exception innerException 681Exception innerException 861Exception innerException 1011Exception innerException 1035Exception innerException 1109Exception innerException 1148Exception innerException 1210Exception innerException 1260public PrintingNotSupportedException(string message, Exception innerException)
Serialization\Manager\NGCSerializationManagerAsync.cs (2)
168catch(Exception e) 282catch(Exception e)
Serialization\Manager\XpsOMSerializationManagerAsync.cs (2)
139catch (Exception e) when (!CriticalExceptions.IsCriticalException(e)) 238catch (Exception e) when (!CriticalExceptions.IsCriticalException(e))
Serialization\Manager\XpsSerializationManagerAsync.cs (3)
156catch(Exception e) 266catch(Exception e) 636Exception exception
RepoTasks (30)
GenerateGuid.cs (1)
30catch (Exception e)
GenerateTestDevCert.cs (1)
57catch (Exception e)
src\aspnetcore\src\Shared\CertificateGeneration\CertificateManager.cs (13)
199catch (Exception e) 344catch (Exception e) 383catch (Exception e) 399catch (Exception e) 422catch (Exception e) 452catch (Exception e) 568catch (Exception e) 593catch (Exception e) 730catch (Exception e) when (Log.IsEnabled()) 753catch (Exception ex) when (Log.IsEnabled()) 781catch (Exception ex) when (Log.IsEnabled()) 886catch (Exception ex) when (Log.IsEnabled()) 1014catch (Exception ex) when (Log.IsEnabled())
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (4)
144catch (Exception ex) 321catch (Exception ex) 441catch (Exception) 462catch (Exception ex)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (11)
226catch (Exception ex) 432catch (Exception ex) 457catch (Exception ex) 720catch (Exception ex) 748catch (Exception ex) 777catch (Exception ex) 797catch (Exception ex) 823catch (Exception ex) 957catch (Exception ex) 992catch (Exception ex) 1067catch (Exception ex)
Roslyn.Diagnostics.Analyzers (62)
src\roslyn\src\Compilers\Core\Portable\EncodedStringText.cs (1)
65catch (Exception)
src\roslyn\src\Compilers\Core\Portable\FileSystem\FileUtilities.cs (8)
205catch (Exception) 304catch (Exception e) 328catch (Exception e) when (e is not IOException) 345catch (Exception e) when (e is not IOException) 387catch (Exception e) 405catch (Exception e) 424catch (Exception e) 449catch (Exception e)
src\roslyn\src\Compilers\Core\Portable\FileSystem\PathUtilities.cs (1)
803catch (Exception ex) when (
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (1)
259catch (Exception ex)
src\roslyn\src\Dependencies\Collections\Internal\ArraySortHelper.cs (7)
45catch (Exception e) 58catch (Exception e) 78catch (Exception e) 335catch (Exception e) 356catch (Exception e) 685catch (Exception e) 938catch (Exception e)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (1)
179internal static void ThrowInvalidOperationException(ExceptionResource resource, Exception e)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (3)
26internal static void OnFatalException(Exception exception) 63internal static void DumpStackTrace(Exception? exception = null, string? message = null) 74for (Exception? current = exception; current is object; current = current.InnerException)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (14)
24public OperationCanceledIgnoringCallerTokenException(Exception innerException) 32public delegate void ErrorReporterHandler(Exception exception, ErrorSeverity severity, bool forceDump); 38private static Exception? s_reportedException; 46/// cref="ReportNonFatalError(Exception, ErrorSeverity, bool)"/></param> 102public static bool ReportAndPropagate(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 114public static bool ReportAndPropagateUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 143public static bool ReportAndPropagateUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 164public static bool ReportAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 176public static bool ReportWithDumpAndCatch(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 189public static bool ReportAndCatchUnlessCanceled(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized) 219public static bool ReportAndCatchUnlessCanceled(Exception exception, CancellationToken contextCancellationToken, ErrorSeverity severity = ErrorSeverity.Uncategorized) 259private static void Report(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 270public static void ReportNonFatalError(Exception exception, ErrorSeverity severity = ErrorSeverity.Uncategorized, bool forceDump = false) 275private static void ReportException(Exception exception, ErrorSeverity severity, bool forceDump, ErrorReporterHandler? handler)
src\roslyn\src\Dependencies\Contracts\ExceptionUtilities.cs (3)
21internal static Exception UnexpectedValue(object? o) 30internal static Exception Unreachable([CallerFilePath] string? path = null, [CallerLineNumber] int line = 0) 39internal static bool IsCurrentOperationBeingCancelled(Exception exception, CancellationToken cancellationToken)
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
278catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, ErrorSeverity.Critical))
src\roslyn\src\Dependencies\Threading\ParallelExtensions.NetFramework.cs (8)
166catch (Exception e) 181catch (Exception e) 202catch (Exception e) 331catch (Exception e) 346catch (Exception e) 367catch (Exception e) 408private List<Exception> _exceptions; 501public void RecordException(Exception e)
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (2)
381Exception? exception = null; 386catch (Exception ex) when ((exception = ex) == null)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (2)
294catch (Exception ex) 448catch (Exception e) when (FatalError.ReportAndPropagate(e))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SoftCrashException.cs (2)
37public SoftCrashException(string message, Exception innerException) : base(message, innerException) { } 39public SoftCrashException(string message, Exception innerException, CancellationToken token) : base(message, innerException, token) { }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
100=> compilation.GetTypeByMetadataName(typeof(Exception).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (2)
120public static Exception CreateDocumentNotFoundException(DocumentId? documentId) 127public static Exception CreateDocumentNotFoundException(string? debugName)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
50catch (Exception)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
62List<Exception>? exceptions = null;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (2)
14public static void DisposeWithExceptionTracking<T>(T instance, [NotNullIfNotNull("exceptions")] ref List<Exception>? exceptions) 21catch (Exception ex) when (FatalError.ReportAndCatch(ex))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
84List<Exception>? exceptions = null;
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
133catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.General))
rzc (21)
Application.cs (2)
58foreach (var innerException in ex.Flatten().InnerExceptions) 78catch (Exception ex)
Client.cs (3)
59catch (Exception e) when (e is IOException || e is TimeoutException) 83catch (Exception e) when (!(e is TaskCanceledException || e is OperationCanceledException)) 182catch (Exception e)
ConnectionHost.cs (2)
118catch (Exception e) 135catch (Exception ex)
DefaultExtensionDependencyChecker.cs (1)
49catch (Exception ex)
DefaultRequestDispatcher.cs (3)
313catch (Exception ex) 332catch (Exception e) 404catch (Exception ex)
MetadataCache.cs (1)
60catch (Exception e)
ServerCommand.cs (2)
62catch (Exception ex) 89catch (Exception ex)
ServerProtocol\ServerConnection.cs (3)
150catch (Exception ex) 236catch (Exception e) 260catch (Exception e)
ServerProtocol\ServerLogger.cs (2)
55catch (Exception e) 75public static void LogException(Exception e, string reason)
ShutdownCommand.cs (2)
62catch (Exception ex) 73catch (Exception ex) when (IsServerRunning())
ScenarioTests.Common.Tests (5)
ScenarioTestHelpers.cs (1)
141catch (Exception ex)
ScenarioTestTypes.cs (3)
743public bool HandleError(Exception error) 748public void ProvideFault(Exception error, MessageVersion version, ref Message msg) 1213catch (Exception)
ServiceInterfaces.cs (1)
455void ThrowingOperation(Exception exceptionToThrow);
sdk-tasks (9)
CopyPreservingRelativeSymlinks.cs (1)
70catch (Exception ex)
DeduplicateAssembliesWithLinks.cs (2)
86catch (Exception ex) 120catch (Exception ex)
FilterItemsByDuplicateHash.cs (2)
45catch (Exception ex) 65catch (Exception ex)
GetDependencyInfo.cs (1)
43catch (Exception ex)
OverrideAndCreateBundledNETCoreAppPackageVersion.cs (1)
121catch (Exception ex)
ReplaceFilesWithSymbolicLinks.cs (1)
143catch (Exception ex)
ZipFileCreateFromDirectory.cs (1)
104catch (Exception e)
Security.TransportSecurity.IntegrationTests (12)
Https\HttpsTests.4.1.0.cs (8)
94catch (Exception ex) 97for (Exception innerException = ex.InnerException; innerException != null; innerException = innerException.InnerException) 133catch (Exception ex) 136for (Exception innerException = ex.InnerException; innerException != null; innerException = innerException.InnerException) 172catch (Exception ex) 175for (Exception innerException = ex.InnerException; innerException != null; innerException = innerException.InnerException) 211catch (Exception ex) 214for (Exception innerException = ex.InnerException; innerException != null; innerException = innerException.InnerException)
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (2)
70catch (Exception exception) when (exception is CommunicationException || exception is MessageSecurityException) 147catch (Exception exception) when (exception is CommunicationException || exception is MessageSecurityException)
Tcp\ClientCredentialTypeTests.OSX.cs (2)
98Exception exception; 117internal bool TryValidate(X509Certificate2 certificate, out Exception exception)
Shared (3)
LogBuffering\SerializedLogRecordFactory.cs (1)
25Exception? exception,
Throw\Throw.cs (2)
386public static void ArgumentException(string paramName, string? message, Exception? innerException) 409public static void InvalidOperationException(string message, Exception? innerException)
Shared.Tests (104)
Throw\DoubleTests.cs (17)
30var exception = Record.Exception(() => Throw.IfLessThan(0.0, 0.0, "paramName")); 49var exception = Record.Exception(() => Throw.IfGreaterThan(0.0, 0.0, "paramName")); 69var exception = Record.Exception(() => Throw.IfLessThanOrEqual(1.5, 0.0, "paramName")); 89var exception = Record.Exception(() => Throw.IfGreaterThanOrEqual(0.0, 1.3, "paramName")); 110var exception = Record.Exception(() => Throw.IfZero(notZero, "paramName")); 138var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfGreaterThan(Zero, -1)); 139var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfGreaterThan(Zero, -1, nameof(Zero))); 149var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfGreaterThanOrEqual(Zero, -1)); 150var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfGreaterThanOrEqual(Zero, -1, nameof(Zero))); 160var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfLessThan(Zero, 1)); 161var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfLessThan(Zero, 1, nameof(Zero))); 171var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfLessThanOrEqual(Zero, 1)); 172var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfLessThanOrEqual(Zero, 1, nameof(Zero))); 182var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfZero(Zero)); 183var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfZero(Zero, nameof(Zero))); 193var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfOutOfRange(Zero, 1, 2)); 194var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfOutOfRange(Zero, 1, 2, nameof(Zero)));
Throw\IntegerTests.cs (34)
26var exception = Record.Exception(() => Throw.IfLessThan(0, 0, "paramName")); 41var exception = Record.Exception(() => Throw.IfGreaterThan(0, 0, "paramName")); 56var exception = Record.Exception(() => Throw.IfLessThanOrEqual(1, 0, "paramName")); 71var exception = Record.Exception(() => Throw.IfGreaterThanOrEqual(0, 1, "paramName")); 86var exception = Record.Exception(() => Throw.IfZero(1, "paramName")); 110var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfGreaterThan(Zero, -1)); 111var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfGreaterThan(Zero, -1, nameof(Zero))); 121var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfGreaterThanOrEqual(Zero, -1)); 122var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfGreaterThanOrEqual(Zero, -1, nameof(Zero))); 132var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfLessThan(Zero, 1)); 133var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfLessThan(Zero, 1, nameof(Zero))); 143var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfLessThanOrEqual(Zero, 1)); 144var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfLessThanOrEqual(Zero, 1, nameof(Zero))); 154var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfZero(Zero)); 155var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfZero(Zero, nameof(Zero))); 165var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfOutOfRange(Zero, 1, 2)); 166var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfOutOfRange(Zero, 1, 2, nameof(Zero))); 186var exception = Record.Exception(() => Throw.IfLessThan(0U, 0U, "paramName")); 201var exception = Record.Exception(() => Throw.IfGreaterThan(0U, 0U, "paramName")); 216var exception = Record.Exception(() => Throw.IfLessThanOrEqual(1U, 0U, "paramName")); 231var exception = Record.Exception(() => Throw.IfGreaterThanOrEqual(0U, 1U, "paramName")); 246var exception = Record.Exception(() => Throw.IfZero(1U, "paramName")); 270var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfGreaterThan(One, 0U)); 271var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfGreaterThan(One, 0U, nameof(One))); 281var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfGreaterThanOrEqual(One, 0U)); 282var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfGreaterThanOrEqual(One, 0U, nameof(One))); 292var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfLessThan(Zero, 1U)); 293var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfLessThan(Zero, 1U, nameof(Zero))); 303var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfLessThanOrEqual(Zero, 1U)); 304var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfLessThanOrEqual(Zero, 1U, nameof(Zero))); 314var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfZero(Zero)); 315var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfZero(Zero, nameof(Zero))); 325var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfOutOfRange(Zero, 1U, 2U)); 326var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfOutOfRange(Zero, 1U, 2U, nameof(Zero)));
Throw\LongTests.cs (34)
26var exception = Record.Exception(() => Throw.IfLessThan(0L, 0L, "paramName")); 41var exception = Record.Exception(() => Throw.IfGreaterThan(0L, 0L, "paramName")); 56var exception = Record.Exception(() => Throw.IfLessThanOrEqual(1L, 0L, "paramName")); 71var exception = Record.Exception(() => Throw.IfGreaterThanOrEqual(0L, 1L, "paramName")); 86var exception = Record.Exception(() => Throw.IfZero(1L, "paramName")); 110var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfGreaterThan(Zero, -1)); 111var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfGreaterThan(Zero, -1, nameof(Zero))); 121var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfGreaterThanOrEqual(Zero, -1)); 122var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfGreaterThanOrEqual(Zero, -1, nameof(Zero))); 132var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfLessThan(Zero, 1)); 133var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfLessThan(Zero, 1, nameof(Zero))); 143var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfLessThanOrEqual(Zero, 1)); 144var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfLessThanOrEqual(Zero, 1, nameof(Zero))); 154var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfZero(Zero)); 155var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfZero(Zero, nameof(Zero))); 165var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfOutOfRange(Zero, 1, 2)); 166var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfOutOfRange(Zero, 1, 2, nameof(Zero))); 186var exception = Record.Exception(() => Throw.IfLessThan(0UL, 0UL, "paramName")); 201var exception = Record.Exception(() => Throw.IfGreaterThan(0UL, 0UL, "paramName")); 216var exception = Record.Exception(() => Throw.IfLessThanOrEqual(1UL, 0UL, "paramName")); 231var exception = Record.Exception(() => Throw.IfGreaterThanOrEqual(0UL, 1UL, "paramName")); 246var exception = Record.Exception(() => Throw.IfZero(1UL, "paramName")); 270var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfGreaterThan(One, 0UL)); 271var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfGreaterThan(One, 0UL, nameof(One))); 281var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfGreaterThanOrEqual(One, 0UL)); 282var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfGreaterThanOrEqual(One, 0UL, nameof(One))); 292var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfLessThan(Zero, 1UL)); 293var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfLessThan(Zero, 1UL, nameof(Zero))); 303var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfLessThanOrEqual(Zero, 1UL)); 304var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfLessThanOrEqual(Zero, 1UL, nameof(Zero))); 314var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfZero(Zero)); 315var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfZero(Zero, nameof(Zero))); 325var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfOutOfRange(Zero, 1UL, 2UL)); 326var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfOutOfRange(Zero, 1UL, 2UL, nameof(Zero)));
Throw\ThrowTest.cs (19)
29var innerException = new Exception(); 52var innerException = new Exception(); 146var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfNull(somethingThatIsNull)); 147var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfNull(somethingThatIsNull, nameof(somethingThatIsNull))); 159var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfNullOrMemberNull(somethingThatIsNull, somethingNestedThatIsNull)); 160var exceptionExplicitArgumentName = Record.Exception( 173var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfNullOrMemberNull(red, somethingNestedThatIsNull)); 174var exceptionExplicitArgumentName = Record.Exception( 208var exception = Record.Exception(() => Throw.IfNullOrMemberNull(red, blue)); 239var exception = Record.Exception(() => Throw.IfNullOrWhitespace("param", "paramName")); 261var exception = Record.Exception(() => Throw.IfNullOrEmpty("param", "paramName")); 270var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfNullOrWhitespace(somethingThatIsNull)); 271var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfNullOrWhitespace(somethingThatIsNull, nameof(somethingThatIsNull))); 281var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfNullOrEmpty(somethingThatIsNull)); 282var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfNullOrEmpty(somethingThatIsNull, nameof(somethingThatIsNull))); 302var exception = Record.Exception(() => Throw.IfBufferTooSmall(23, 23, "paramName")); 380var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfNullOrEmpty(listButActuallyNull!)); 417var exceptionImplicitArgumentName = Record.Exception(() => Throw.IfOutOfRange((Color)colorButNull!)); 418var exceptionExplicitArgumentName = Record.Exception(() => Throw.IfOutOfRange((Color)colorButNull!, nameof(colorButNull)));
SuperFileCheck (3)
Program.cs (3)
160catch (Exception ex) 663catch (Exception ex) 754catch (Exception ex)
System.CodeDom (1)
System\CodeDom\CodeCatchClause.cs (1)
39get => _catchExceptionType ??= new CodeTypeReference(typeof(Exception));
System.CommandLine (4)
Help\HelpAction.cs (1)
27catch (Exception)
Invocation\InvocationPipeline.cs (3)
88catch (Exception ex) when (parseResult.InvocationConfiguration.EnableDefaultExceptionHandler) 133catch (Exception ex) when (parseResult.InvocationConfiguration.EnableDefaultExceptionHandler) 139private static int DefaultExceptionHandler(Exception exception, ParseResult parseResult)
System.ComponentModel.Annotations (3)
src\runtime\src\libraries\Common\src\System\NotImplemented.cs (2)
14internal static Exception ByDesign => new NotImplementedException(); 19internal static Exception ByDesignWithMessage(string message)
System\ComponentModel\DataAnnotations\ValidationException.cs (1)
68public ValidationException(string? message, Exception? innerException)
System.ComponentModel.Composition (84)
Microsoft\Internal\GenerationServices.cs (1)
37private static readonly MethodInfo ExceptionGetData = typeof(Exception).GetProperty("Data")!.GetGetMethod()!;
System\ComponentModel\Composition\ChangeRejectedException.cs (4)
19: this((string?)null, (Exception?)null) 27: this(message, (Exception?)null) 34public ChangeRejectedException(string? message, Exception? innerException) 44: base((string?)null, (Exception?)null, errors)
System\ComponentModel\Composition\CompositionContractMismatchException.cs (7)
21: this((string?)null, (Exception?)null) 32/// the <see cref="Exception.Message"/> property to its default value. 35: this(message, (Exception?)null) 47/// the <see cref="Exception.Message"/> property to its default value. 50/// The <see cref="Exception"/> that is the underlying cause of the 52/// the <see cref="Exception.InnerException"/> property to <see langword="null"/>. 54public CompositionContractMismatchException(string? message, Exception? innerException)
System\ComponentModel\Composition\CompositionError.cs (11)
18private readonly Exception? _exception; 32: this(CompositionErrorId.Unknown, message, (ICompositionElement?)null, (Exception?)null) 53: this(CompositionErrorId.Unknown, message, element, (Exception?)null) 72public CompositionError(string? message, Exception? exception) 98public CompositionError(string? message, ICompositionElement? element, Exception? exception) 103internal CompositionError(CompositionErrorId id, string? description, ICompositionElement? element, Exception? exception) 142public Exception? Exception 152internal Exception? InnerException 170return Create(id, (ICompositionElement?)null, (Exception?)null, format, parameters); 175return Create(id, element, (Exception?)null, format, parameters); 178internal static CompositionError Create(CompositionErrorId id, ICompositionElement? element, Exception? exception, string format, params object?[] parameters)
System\ComponentModel\Composition\CompositionErrorDebuggerProxy.cs (1)
25public Exception? Exception
System\ComponentModel\Composition\CompositionException.cs (13)
30: this((string?)null, (Exception?)null, (IEnumerable<CompositionError>?)null) 41/// the <see cref="Exception.Message"/> property to its default value. 44: this(message, (Exception?)null, (IEnumerable<CompositionError>?)null) 56/// the <see cref="Exception.Message"/> property to its default value. 59/// The <see cref="Exception"/> that is the underlying cause of the 61/// the <see cref="Exception.InnerException"/> property to <see langword="null"/>. 63public CompositionException(string? message, Exception? innerException) 87: this((string?)null, (Exception?)null, errors) 91internal CompositionException(string? message, Exception? innerException, IEnumerable<CompositionError>? errors) 134public ReadOnlyCollection<Exception> RootCauses 138var errors = new List<Exception>(); 156return errors.ToReadOnlyCollection<Exception>(); 310private static void VisitException(Exception exception, VisitContext context)
System\ComponentModel\Composition\CompositionExceptionDebuggerProxy.cs (4)
23public ReadOnlyCollection<Exception> Exceptions 27var errors = new List<Exception>(); 37return errors.ToReadOnlyCollection<Exception>(); 46public ReadOnlyCollection<Exception> RootCauses
System\ComponentModel\Composition\ErrorBuilder.cs (4)
44(Exception?)null); 47public static CompositionError CreatePartCannotActivate(ComposablePart part, Exception innerException) 61public static CompositionError CreatePartCannotSetImport(ComposablePart part, ImportDefinition definition, Exception innerException) 77public static CompositionError CreateCannotGetExportedValue(ComposablePart part, ExportDefinition definition, Exception innerException)
System\ComponentModel\Composition\ExceptionBuilder.cs (2)
12public static Exception CreateDiscoveryException(string messageFormat, params string[] arguments) 78public static CompositionException CreateCannotGetExportedValue(ComposablePart part, ExportDefinition definition, Exception innerException)
System\ComponentModel\Composition\Hosting\AtomicComposition.cs (6)
148List<Exception>? exceptions = null; 164catch (Exception e) 169exceptions ??= new List<Exception>(); 187List<Exception>? exceptions = null; 200catch (Exception e) 204exceptions ??= new List<Exception>();
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (1)
663Exception? exception;
System\ComponentModel\Composition\ImportCardinalityMismatchException.cs (7)
24: this((string?)null, (Exception?)null) 35/// the <see cref="Exception.Message"/> property to its default value. 38: this(message, (Exception?)null) 50/// the <see cref="Exception.Message"/> property to its default value. 53/// The <see cref="Exception"/> that is the underlying cause of the 55/// the <see cref="Exception.InnerException"/> property to <see langword="null"/>. 57public ImportCardinalityMismatchException(string? message, Exception? innerException)
System\ComponentModel\Composition\ImportCardinalityMismatchExceptionDebuggerProxy.cs (1)
19public Exception? InnerException
System\ComponentModel\Composition\MetadataViewGenerator.cs (2)
146catch (Exception e) 200LocalBuilder exception = proxyCtorIL.DeclareLocal(typeof(Exception));
System\ComponentModel\Composition\Primitives\ComposablePartException.cs (13)
25: this((string?)null, (ICompositionElement?)null, (Exception?)null) 66/// the <see cref="Exception.Message"/> property to its default value. 69: this(message, (ICompositionElement?)null, (Exception?)null) 81/// the <see cref="Exception.Message"/> property to its default value. 90: this(message, element, (Exception?)null) 102/// the <see cref="Exception.Message"/> property to its default value. 105/// The <see cref="Exception"/> that is the underlying cause of the 107/// the <see cref="Exception.InnerException"/> property to <see langword="null"/>. 109public ComposablePartException(string? message, Exception? innerException) 122/// the <see cref="Exception.Message"/> property to its default value. 131/// The <see cref="Exception"/> that is the underlying cause of the 133/// the <see cref="Exception.InnerException"/> property to <see langword="null"/>. 135public ComposablePartException(string? message, ICompositionElement? element, Exception? innerException)
System\ComponentModel\Composition\Primitives\ComposablePartExceptionDebuggerProxy.cs (1)
24public Exception? InnerException
System\ComponentModel\Composition\ReflectionModel\ImportingMember.cs (3)
192catch (Exception exception) 222catch (Exception exception) 239catch (Exception exception)
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePart.cs (2)
417Exception? exception = null; 547catch (Exception exception)
System\Composition\Diagnostics\CompositionTrace.cs (1)
41internal static void AssemblyLoadFailed(DirectoryCatalog catalog, string fileName, Exception exception)
System.ComponentModel.EventBasedAsync (5)
System\ComponentModel\AsyncCompletedEvent.cs (2)
12public AsyncCompletedEventArgs(Exception? error, bool cancelled, object? userState) 32public Exception? Error { get; }
System\ComponentModel\BackgroundWorker.cs (2)
170Exception? error = null; 186catch (Exception exception)
System\ComponentModel\RunWorkerCompletedEvent.cs (1)
13Exception? error,
System.ComponentModel.Primitives (2)
System\ComponentModel\InvalidAsynchronousStateException.cs (1)
38public InvalidAsynchronousStateException(string? message, Exception? innerException) : base(message, innerException)
System\ComponentModel\InvalidEnumArgumentException.cs (1)
37public InvalidEnumArgumentException(string? message, Exception? innerException)
System.ComponentModel.TypeConverter (14)
src\runtime\src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
110catch (Exception e)
System\ComponentModel\BaseNumberConverter.cs (1)
78catch (Exception e)
System\ComponentModel\Design\CheckoutException.cs (1)
65public CheckoutException(string? message, Exception? innerException) : base(message, innerException)
System\ComponentModel\EnumConverter.cs (1)
101catch (Exception e)
System\ComponentModel\LicenseException.cs (1)
51public LicenseException(Type? type, object? instance, string? message, Exception? innerException) : base(message, innerException)
System\ComponentModel\MemberDescriptor.cs (1)
336catch (Exception)
System\ComponentModel\ReflectPropertyDescriptor.cs (3)
105catch (Exception t) 921catch (Exception t) 1124catch (Exception t)
System\ComponentModel\ToolboxItemAttribute.cs (1)
91catch (Exception ex)
System\ComponentModel\TypeConverter.cs (2)
192protected Exception GetConvertFromException(object? value) 202protected Exception GetConvertToException(object? value, Type destinationType)
System\ComponentModel\VersionConverter.cs (1)
48catch (Exception e)
System\ComponentModel\WarningException.cs (1)
45public WarningException(string? message, Exception? innerException) : base(message, innerException)
System.Composition.Runtime (1)
System\Composition\Hosting\CompositionFailedException.cs (1)
33public CompositionFailedException(string message, Exception innerException)
System.Configuration.ConfigurationManager (56)
System\Configuration\AppSettingsReader.cs (1)
69catch (Exception)
System\Configuration\BaseConfigurationRecord.cs (12)
515catch (Exception e) 593catch (Exception e) 731catch (Exception e) 1208Exception savedException = null; 1282catch (Exception e) 1349catch (Exception e) 1581catch (Exception e) 1631catch (Exception e) 1733catch (Exception e) 2599catch (Exception e) 3032catch (Exception e) 3610catch (Exception e)
System\Configuration\ClientConfigurationSystem.cs (3)
18private Exception _initError; 160catch (Exception e) 216catch (Exception ex)
System\Configuration\ConfigurationElement.cs (1)
1778catch (Exception ex)
System\Configuration\ConfigurationErrorsException.cs (5)
35public ConfigurationErrorsException(string message, Exception inner, string filename, int line) 50public ConfigurationErrorsException(string message, Exception inner) : 62public ConfigurationErrorsException(string message, Exception inner, XmlNode node) : 70public ConfigurationErrorsException(string message, Exception inner, XmlReader reader) : 78internal ConfigurationErrorsException(string message, Exception inner, IConfigErrorInfo errorInfo) :
System\Configuration\ConfigurationException.cs (3)
44public ConfigurationException(string message, Exception inner) : this(message, inner, null, 0) { } 52public ConfigurationException(string message, Exception inner, XmlNode node) 60public ConfigurationException(string message, Exception inner, string filename, int line) : base(message, inner)
System\Configuration\ConfigurationManager.cs (3)
17private static volatile Exception s_initError; 106catch (Exception e) 122internal static void SetInitError(Exception initError)
System\Configuration\ConfigurationProperty.cs (4)
303catch (Exception ex) 334catch (Exception ex) 357catch (Exception ex) 370catch (Exception ex)
System\Configuration\ExceptionUtil.cs (2)
38internal static ConfigurationErrorsException WrapAsConfigException(string outerMessage, Exception e, 46internal static ConfigurationErrorsException WrapAsConfigException(string outerMessage, Exception e,
System\Configuration\HandlerBase.cs (2)
50catch (Exception e) 82catch (Exception e)
System\Configuration\Internal\InternalConfigHost.cs (1)
267catch (Exception e)
System\Configuration\MgmtConfigurationRecord.cs (8)
268catch (Exception e) 414catch (Exception e) 485catch (Exception e) 1092catch (Exception e) 1674catch (Exception e) 1694catch (Exception e) 1882catch (Exception e) 3045catch (Exception e)
System\Configuration\Provider\ProviderException.cs (1)
19public ProviderException(string message, Exception innerException)
System\Configuration\RuntimeConfigurationRecord.cs (1)
71catch (Exception e)
System\Configuration\SettingsPropertyIsReadOnlyException.cs (1)
18public SettingsPropertyIsReadOnlyException(string message, Exception innerException)
System\Configuration\SettingsPropertyNotFoundException.cs (1)
18public SettingsPropertyNotFoundException(string message, Exception innerException)
System\Configuration\SettingsPropertyValue.cs (3)
109catch (Exception) 143catch (Exception e) 278catch (Exception)
System\Configuration\SettingsPropertyValueCollection.cs (1)
31catch (Exception)
System\Configuration\SettingsPropertyWrongTypeException.cs (1)
18public SettingsPropertyWrongTypeException(string message, Exception innerException)
System\Diagnostics\TraceUtils.cs (2)
48Exception innerException = null; 115catch (Exception e)
System.Console (8)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
99Exception e = Interop.GetExceptionForIoErrno(Sys.GetLastErrorInfo(), path, isDirError); 114internal static Exception GetExceptionForIoErrno(ErrorInfo errorInfo, string? path = null, bool isDirError = false) 143Exception inner = GetIOException(errorInfo); 183internal static Exception GetIOException(Interop.ErrorInfo errorInfo, string? path = null)
System\IO\Error.cs (4)
8internal static Exception GetFileNotOpen() 13internal static Exception GetReadNotSupported() 18internal static Exception GetSeekNotSupported() 23internal static Exception GetWriteNotSupported()
System.Data.Common (515)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (16)
28static partial void TraceException(string trace, Exception e); 30internal static void TraceExceptionAsReturnValue(Exception e) 35internal static void TraceExceptionWithoutRethrow(Exception e) 48internal static ArgumentException Argument(string error, Exception? inner) 102internal static InvalidCastException InvalidCast(string error, Exception? inner) 237internal static bool IsCatchableExceptionType(Exception e) 251internal static bool IsCatchableOrSecurityExceptionType(Exception e) 287internal static ArgumentException ConvertFailed(Type fromType, Type toType, Exception? innerException) 295internal static Exception InvalidConnectionOptionValue(string key) 299internal static Exception InvalidConnectionOptionValue(string key, Exception? inner) 354internal static Exception StreamClosed([CallerMemberName] string method = "") 443internal static Exception InternalError(InternalErrorCode internalError) 451internal static Exception DataReaderClosed([CallerMemberName] string method = "") 467internal static Exception InvalidDataLength(long length) 489internal static Exception InvalidSeekOrigin(string parameterName)
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
483private static void ParseComparison(Dictionary<string, string?> parsetable, string connectionString, Dictionary<string, string>? synonyms, bool firstKey, Exception? e)
System\Data\Common\AdapterUtil.Common.cs (29)
25static partial void TraceException(string trace, Exception e) 34internal static void TraceExceptionForCapture(Exception e) 278internal static Exception WrongType(Type got, Type expected) 286internal static Exception CollectionUniqueValue(Type itemType, string propertyName, string? propertyValue) 354internal static Exception InvalidSourceColumn(string parameter) 358internal static Exception ColumnsAddNullAttempt(string parameter) 362internal static Exception ColumnsDataSetColumn(string cacheColumn) 366internal static Exception ColumnsIndexInt32(int index, IColumnMappingCollection collection) 370internal static Exception ColumnsIndexSource(string srcColumn) 374internal static Exception ColumnsIsNotParent(ICollection collection) 378internal static Exception ColumnsIsParent(ICollection collection) 382internal static Exception ColumnsUniqueSourceColumn(string? srcColumn) 386internal static Exception NotADataColumnMapping(object value) 394internal static Exception InvalidSourceTable(string parameter) 398internal static Exception TablesAddNullAttempt(string parameter) 402internal static Exception TablesDataSetTable(string cacheTable) 406internal static Exception TablesIndexInt32(int index, ITableMappingCollection collection) 410internal static Exception TablesIsNotParent(ICollection collection) 414internal static Exception TablesIsParent(ICollection collection) 418internal static Exception TablesSourceIndex(string srcTable) 422internal static Exception TablesUniqueSourceTable(string? srcTable) 426internal static Exception NotADataTableMapping(object value) 519internal static Exception FillSchemaRequiresSourceTableName(string parameter) 527internal static Exception InvalidMaxRecords(string parameter, int max) 531internal static Exception InvalidStartRecord(string parameter, int start) 535internal static Exception FillRequires(string parameter) 539internal static Exception FillRequiresSourceTableName(string parameter) 543internal static Exception FillChapterAutoIncrement() 575internal static Exception UpdateConcurrencyViolation(StatementType statementType, int affected, int expected, DataRow[] dataRows)
System\Data\Common\DataAdapter.cs (5)
605catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 642catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 685catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 709catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 744private void OnFillErrorHandler(Exception e, DataTable? dataTable, object?[]? dataValues)
System\Data\Common\DataRecordInternal.cs (2)
142catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 218catch (Exception e) when (ADP.IsCatchableExceptionType(e))
System\Data\Common\DbCommand.cs (5)
94catch (Exception) 139catch (Exception e) 180catch (Exception e) 212catch (Exception e) 239catch (Exception e)
System\Data\Common\DBCommandBuilder.cs (1)
1589catch (Exception e) when (ADP.IsCatchableExceptionType(e))
System\Data\Common\DbConnection.cs (7)
78catch (Exception e) 99catch (Exception e) 125catch (Exception e) 240catch (Exception e) 272catch (Exception e) 304catch (Exception e) 337catch (Exception e)
System\Data\Common\DbDataAdapter.cs (12)
31internal Exception? _errors; 678protected virtual bool GetBatchedRecordsAffected(int commandIdentifier, out int recordsAffected, out Exception? error) 1058catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 1122Exception? errors = null; 1160catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 1240catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 1251Exception? errors = rowUpdatedEvent.Errors; 1320catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 1327Exception? errors = rowUpdatedEvent.Errors; 1655Exception? errors = rowUpdatedEvent.Errors; 1672if (batchCommands[i]._errors is Exception commandErrors) 1725Exception? errors = rowUpdatedEvent.Errors;
System\Data\Common\DbDataReader.cs (7)
43catch (Exception e) 114catch (Exception e) 144catch (Exception e) 262catch (Exception e) 287catch (Exception e) 312catch (Exception e) 333catch (Exception e)
System\Data\Common\DbDataSource.cs (12)
123catch (Exception e) 150catch (Exception e) 176catch (Exception e) 203catch (Exception e) 229catch (Exception e) 259catch (Exception e) 382catch (Exception e) 409catch (Exception e) 435catch (Exception e) 462catch (Exception e) 488catch (Exception e) 518catch (Exception e)
System\Data\Common\DbException.cs (1)
16protected DbException(string? message, System.Exception? innerException) : base(message, innerException) { }
System\Data\Common\DbTransaction.cs (5)
35catch (Exception e) 65catch (Exception e) 106catch (Exception e) 132catch (Exception e) 159catch (Exception e)
System\Data\Common\RowUpdatedEventArgs.cs (2)
15private Exception? _errors; 50public Exception? Errors
System\Data\Common\RowUpdatingEventArgs.cs (2)
11private Exception? _errors; 50public Exception? Errors
System\Data\Constraint.cs (1)
119catch (Exception e) when (Common.ADP.IsCatchableExceptionType(e))
System\Data\ConstraintCollection.cs (1)
451catch (Exception e) when (Common.ADP.IsCatchableOrSecurityExceptionType(e))
System\Data\DataColumn.cs (4)
796catch (Exception e1) when (ADP.IsCatchableExceptionType(e1)) 818catch (Exception e2) when (ADP.IsCatchableExceptionType(e2)) 1144catch (Exception e) 1183catch (Exception e)
System\Data\DataColumnCollection.cs (2)
363catch (Exception e) when (ADP.IsCatchableOrSecurityExceptionType(e)) 608catch (Exception e) when (ADP.IsCatchableOrSecurityExceptionType(e))
System\Data\DataException.cs (304)
31public DataException(string? s, Exception? innerException) : base(s ?? SR.DataSet_DefaultDataException, innerException) { } 54public ConstraintException(string? message, Exception? innerException) : base(message ?? SR.DataSet_DefaultConstraintException, innerException) 86public DeletedRowInaccessibleException(string? message, Exception? innerException) : base(message ?? SR.DataSet_DefaultDeletedRowInaccessibleException, innerException) 112public DuplicateNameException(string? message, Exception? innerException) : base(message ?? SR.DataSet_DefaultDuplicateNameException, innerException) 138public InRowChangingEventException(string? message, Exception? innerException) : base(message ?? SR.DataSet_DefaultInRowChangingEventException, innerException) 164public InvalidConstraintException(string? message, Exception? innerException) : base(message ?? SR.DataSet_DefaultInvalidConstraintException, innerException) 190public MissingPrimaryKeyException(string? message, Exception? innerException) : base(message ?? SR.DataSet_DefaultMissingPrimaryKeyException, innerException) 216public NoNullAllowedException(string? message, Exception? innerException) : base(message ?? SR.DataSet_DefaultNoNullAllowedException, innerException) 242public ReadOnlyException(string? message, Exception? innerException) : base(message ?? SR.DataSet_DefaultReadOnlyException, innerException) 268public RowNotInTableException(string? message, Exception? innerException) : base(message ?? SR.DataSet_DefaultRowNotInTableException, innerException) 294public VersionNotFoundException(string? message, Exception? innerException) : base(message ?? (SR.DataSet_DefaultVersionNotFoundException), innerException) 311private static void TraceException(string trace, Exception e) 320internal static Exception TraceExceptionAsReturnValue(Exception e) 326internal static Exception TraceExceptionForCapture(Exception e) 332internal static Exception TraceExceptionWithoutRethrow(Exception e) 338internal static Exception _Argument(string error) => TraceExceptionAsReturnValue(new ArgumentException(error)); 339internal static Exception _Argument(string error, Exception? innerException) => TraceExceptionAsReturnValue(new ArgumentException(error, innerException)); 340private static Exception _ArgumentNull(string paramName, string msg) => TraceExceptionAsReturnValue(new ArgumentNullException(paramName, msg)); 341internal static Exception _ArgumentOutOfRange(string paramName, string msg) => TraceExceptionAsReturnValue(new ArgumentOutOfRangeException(paramName, msg)); 342private static Exception _IndexOutOfRange(string error) => TraceExceptionAsReturnValue(new IndexOutOfRangeException(error)); 343private static Exception _InvalidOperation(string error) => TraceExceptionAsReturnValue(new InvalidOperationException(error)); 344private static Exception _InvalidEnumArgumentException(string error) => TraceExceptionAsReturnValue(new InvalidEnumArgumentException(error)); 345private static Exception _InvalidEnumArgumentException<T>(T value) where T : Enum 352private static void ThrowDataException(string error, Exception? innerException) 357private static Exception _Data(string error) => TraceExceptionAsReturnValue(new DataException(error)); 358private static Exception _Constraint(string error) => TraceExceptionAsReturnValue(new ConstraintException(error)); 359private static Exception _InvalidConstraint(string error) => TraceExceptionAsReturnValue(new InvalidConstraintException(error)); 360private static Exception _DeletedRowInaccessible(string error) => TraceExceptionAsReturnValue(new DeletedRowInaccessibleException(error)); 361private static Exception _DuplicateName(string error) => TraceExceptionAsReturnValue(new DuplicateNameException(error)); 362private static Exception _InRowChangingEvent(string error) => TraceExceptionAsReturnValue(new InRowChangingEventException(error)); 363private static Exception _MissingPrimaryKey(string error) => TraceExceptionAsReturnValue(new MissingPrimaryKeyException(error)); 364private static Exception _NoNullAllowed(string error) => TraceExceptionAsReturnValue(new NoNullAllowedException(error)); 366private static Exception _ReadOnly(string error) => TraceExceptionAsReturnValue(new ReadOnlyException(error)); 367private static Exception _RowNotInTable(string error) => TraceExceptionAsReturnValue(new RowNotInTableException(error)); 368private static Exception _VersionNotFound(string error) => TraceExceptionAsReturnValue(new VersionNotFoundException(error)); 370public static Exception ArgumentNull(string paramName) => _ArgumentNull(paramName, SR.Format(SR.Data_ArgumentNull, paramName)); 371public static Exception ArgumentOutOfRange(string paramName) => _ArgumentOutOfRange(paramName, SR.Format(SR.Data_ArgumentOutOfRange, paramName)); 372public static Exception BadObjectPropertyAccess(string error) => _InvalidOperation(SR.Format(SR.DataConstraint_BadObjectPropertyAccess, error)); 373public static Exception ArgumentContainsNull(string paramName) => TraceExceptionAsReturnValue(new ArgumentException(SR.Data_ArgumentContainsNull, paramName)); 374public static Exception TypeNotAllowed(Type type) => _InvalidOperation(SR.Format(SR.Data_TypeNotAllowed, type.AssemblyQualifiedName)); 380public static Exception NotSupportedOnDataSourceBatch() => Common.ADP.NotSupported(SR.Batch_NotSupportedOnDataSourceBatch); 386public static Exception NotSupportedOnDataSourceCommand() => Common.ADP.NotSupported(SR.Command_NotSupportedOnDataSourceCommand); 392public static Exception CannotModifyCollection() => _Argument(SR.Data_CannotModifyCollection); 393public static Exception CaseInsensitiveNameConflict(string? name) => _Argument(SR.Format(SR.Data_CaseInsensitiveNameConflict, name)); 394public static Exception NamespaceNameConflict(string? name) => _Argument(SR.Format(SR.Data_NamespaceNameConflict, name)); 395public static Exception InvalidOffsetLength() => _Argument(SR.Data_InvalidOffsetLength); 401public static Exception ColumnNotInTheTable(string column, string table) => _Argument(SR.Format(SR.DataColumn_NotInTheTable, column, table)); 402public static Exception ColumnNotInAnyTable() => _Argument(SR.DataColumn_NotInAnyTable); 403public static Exception ColumnOutOfRange(int index) => _IndexOutOfRange(SR.Format(SR.DataColumns_OutOfRange, (index).ToString(CultureInfo.InvariantCulture))); 404public static Exception ColumnOutOfRange(string column) => _IndexOutOfRange(SR.Format(SR.DataColumns_OutOfRange, column)); 405public static Exception CannotAddColumn1(string column) => _Argument(SR.Format(SR.DataColumns_Add1, column)); 406public static Exception CannotAddColumn2(string column) => _Argument(SR.Format(SR.DataColumns_Add2, column)); 407public static Exception CannotAddColumn3() => _Argument(SR.DataColumns_Add3); 408public static Exception CannotAddColumn4(string column) => _Argument(SR.Format(SR.DataColumns_Add4, column)); 409public static Exception CannotAddDuplicate(string column) => _DuplicateName(SR.Format(SR.DataColumns_AddDuplicate, column)); 410public static Exception CannotAddDuplicate2(string table) => _DuplicateName(SR.Format(SR.DataColumns_AddDuplicate2, table)); 411public static Exception CannotAddDuplicate3(string table) => _DuplicateName(SR.Format(SR.DataColumns_AddDuplicate3, table)); 412public static Exception CannotRemoveColumn() => _Argument(SR.DataColumns_Remove); 413public static Exception CannotRemovePrimaryKey() => _Argument(SR.DataColumns_RemovePrimaryKey); 414public static Exception CannotRemoveChildKey(string relation) => _Argument(SR.Format(SR.DataColumns_RemoveChildKey, relation)); 415public static Exception CannotRemoveConstraint(string constraint, string table) => _Argument(SR.Format(SR.DataColumns_RemoveConstraint, constraint, table)); 416public static Exception CannotRemoveExpression(string column, string expression) => _Argument(SR.Format(SR.DataColumns_RemoveExpression, column, expression)); 417public static Exception ColumnNotInTheUnderlyingTable(string column, string table) => _Argument(SR.Format(SR.DataColumn_NotInTheUnderlyingTable, column, table)); 418public static Exception InvalidOrdinal(string name, int ordinal) => _ArgumentOutOfRange(name, SR.Format(SR.DataColumn_OrdinalExceedMaximum, (ordinal).ToString(CultureInfo.InvariantCulture))); 424public static Exception AddPrimaryKeyConstraint() => _Argument(SR.DataConstraint_AddPrimaryKeyConstraint); 425public static Exception NoConstraintName() => _Argument(SR.DataConstraint_NoName); 426public static Exception ConstraintViolation(string constraint) => _Constraint(SR.Format(SR.DataConstraint_Violation, constraint)); 427public static Exception ConstraintNotInTheTable(string constraint) => _Argument(SR.Format(SR.DataConstraint_NotInTheTable, constraint)); 456public static Exception ConstraintViolation(DataColumn[] columns, object[] values) => _Constraint(UniqueConstraintViolationText(columns, values)); 457public static Exception ConstraintOutOfRange(int index) => _IndexOutOfRange(SR.Format(SR.DataConstraint_OutOfRange, (index).ToString(CultureInfo.InvariantCulture))); 458public static Exception DuplicateConstraint(string constraint) => _Data(SR.Format(SR.DataConstraint_Duplicate, constraint)); 459public static Exception DuplicateConstraintName(string constraint) => _DuplicateName(SR.Format(SR.DataConstraint_DuplicateName, constraint)); 460public static Exception NeededForForeignKeyConstraint(UniqueConstraint key, ForeignKeyConstraint fk) => _Argument(SR.Format(SR.DataConstraint_NeededForForeignKeyConstraint, key.ConstraintName, fk.ConstraintName)); 461public static Exception UniqueConstraintViolation() => _Argument(SR.DataConstraint_UniqueViolation); 462public static Exception ConstraintForeignTable() => _Argument(SR.DataConstraint_ForeignTable); 463public static Exception ConstraintParentValues() => _Argument(SR.DataConstraint_ParentValues); 464public static Exception ConstraintAddFailed(DataTable table) => _InvalidConstraint(SR.Format(SR.DataConstraint_AddFailed, table.TableName)); 465public static Exception ConstraintRemoveFailed() => _Argument(SR.DataConstraint_RemoveFailed); 466public static Exception FailedCascadeDelete(string constraint) => _InvalidConstraint(SR.Format(SR.DataConstraint_CascadeDelete, constraint)); 467public static Exception FailedCascadeUpdate(string constraint) => _InvalidConstraint(SR.Format(SR.DataConstraint_CascadeUpdate, constraint)); 468public static Exception FailedClearParentTable(string table, string constraint, string childTable) => _InvalidConstraint(SR.Format(SR.DataConstraint_ClearParentTable, table, constraint, childTable)); 469public static Exception ForeignKeyViolation(string constraint, object[] keys) => _InvalidConstraint(SR.Format(SR.DataConstraint_ForeignKeyViolation, constraint, KeysToString(keys))); 470public static Exception RemoveParentRow(ForeignKeyConstraint constraint) => _InvalidConstraint(SR.Format(SR.DataConstraint_RemoveParentRow, constraint.ConstraintName)); 473public static Exception CantAddConstraintToMultipleNestedTable(string tableName) => _Argument(SR.Format(SR.DataConstraint_CantAddConstraintToMultipleNestedTable, tableName)); 479public static Exception AutoIncrementAndExpression() => _Argument(SR.DataColumn_AutoIncrementAndExpression); 480public static Exception AutoIncrementAndDefaultValue() => _Argument(SR.DataColumn_AutoIncrementAndDefaultValue); 481public static Exception AutoIncrementSeed() => _Argument(SR.DataColumn_AutoIncrementSeed); 482public static Exception CantChangeDataType() => _Argument(SR.DataColumn_ChangeDataType); 483public static Exception NullDataType() => _Argument(SR.DataColumn_NullDataType); 484public static Exception ColumnNameRequired() => _Argument(SR.DataColumn_NameRequired); 485public static Exception DefaultValueAndAutoIncrement() => _Argument(SR.DataColumn_DefaultValueAndAutoIncrement); 486public static Exception DefaultValueDataType(string column, Type defaultType, Type columnType, Exception inner) => 491public static Exception DefaultValueColumnDataType(string column, Type defaultType, Type columnType, Exception inner) => _Argument(SR.Format(SR.DataColumn_DefaultValueColumnDataType, column, defaultType.FullName, columnType.FullName), inner); 492public static Exception ExpressionAndUnique() => _Argument(SR.DataColumn_ExpressionAndUnique); 493public static Exception ExpressionAndReadOnly() => _Argument(SR.DataColumn_ExpressionAndReadOnly); 494public static Exception ExpressionAndConstraint(DataColumn column, Constraint constraint) => _Argument(SR.Format(SR.DataColumn_ExpressionAndConstraint, column.ColumnName, constraint.ConstraintName)); 495public static Exception ExpressionInConstraint(DataColumn column) => _Argument(SR.Format(SR.DataColumn_ExpressionInConstraint, column.ColumnName)); 496public static Exception ExpressionCircular() => _Argument(SR.DataColumn_ExpressionCircular); 497public static Exception NonUniqueValues(string column) => _InvalidConstraint(SR.Format(SR.DataColumn_NonUniqueValues, column)); 498public static Exception NullKeyValues(string column) => _Data(SR.Format(SR.DataColumn_NullKeyValues, column)); 499public static Exception NullValues(string column) => _NoNullAllowed(SR.Format(SR.DataColumn_NullValues, column)); 500public static Exception ReadOnlyAndExpression() => _ReadOnly(SR.DataColumn_ReadOnlyAndExpression); 501public static Exception ReadOnly(string column) => _ReadOnly(SR.Format(SR.DataColumn_ReadOnly, column)); 502public static Exception UniqueAndExpression() => _Argument(SR.DataColumn_UniqueAndExpression); 503public static Exception SetFailed(object? value, DataColumn column, Type type, Exception innerException) => _Argument(innerException.Message + SR.Format(SR.DataColumn_SetFailed, value?.ToString(), column.ColumnName, type.Name), innerException); 504public static Exception CannotSetToNull(DataColumn column) => _Argument(SR.Format(SR.DataColumn_CannotSetToNull, column.ColumnName)); 505public static Exception LongerThanMaxLength(DataColumn column) => _Argument(SR.Format(SR.DataColumn_LongerThanMaxLength, column.ColumnName)); 506public static Exception CannotSetMaxLength(DataColumn column, int value) => _Argument(SR.Format(SR.DataColumn_CannotSetMaxLength, column.ColumnName, value.ToString(CultureInfo.InvariantCulture))); 507public static Exception CannotSetMaxLength2(DataColumn column) => _Argument(SR.Format(SR.DataColumn_CannotSetMaxLength2, column.ColumnName)); 508public static Exception CannotSetSimpleContentType(string columnName, Type type) => _Argument(SR.Format(SR.DataColumn_CannotSimpleContentType, columnName, type)); 509public static Exception CannotSetSimpleContent(string columnName, Type type) => _Argument(SR.Format(SR.DataColumn_CannotSimpleContent, columnName, type)); 510public static Exception CannotChangeNamespace(string columnName) => _Argument(SR.Format(SR.DataColumn_CannotChangeNamespace, columnName)); 511public static Exception HasToBeStringType(DataColumn column) => _Argument(SR.Format(SR.DataColumn_HasToBeStringType, column.ColumnName)); 512public static Exception AutoIncrementCannotSetIfHasData(string typeName) => _Argument(SR.Format(SR.DataColumn_AutoIncrementCannotSetIfHasData, typeName)); 513public static Exception INullableUDTwithoutStaticNull(string typeName) => _Argument(SR.Format(SR.DataColumn_INullableUDTwithoutStaticNull, typeName)); 514public static Exception IComparableNotImplemented(string typeName) => _Data(SR.Format(SR.DataStorage_IComparableNotDefined, typeName)); 515public static Exception UDTImplementsIChangeTrackingButnotIRevertible(string typeName) => _InvalidOperation(SR.Format(SR.DataColumn_UDTImplementsIChangeTrackingButnotIRevertible, typeName)); 516public static Exception SetAddedAndModifiedCalledOnnonUnchanged() => _InvalidOperation(SR.DataColumn_SetAddedAndModifiedCalledOnNonUnchanged); 517public static Exception InvalidDataColumnMapping(Type type) => _Argument(SR.Format(SR.DataColumn_InvalidDataColumnMapping, type.AssemblyQualifiedName)); 518public static Exception CannotSetDateTimeModeForNonDateTimeColumns() => _InvalidOperation(SR.DataColumn_CannotSetDateTimeModeForNonDateTimeColumns); 519public static Exception InvalidDateTimeMode(DataSetDateTime mode) => _InvalidEnumArgumentException(mode); 520public static Exception CantChangeDateTimeMode(DataSetDateTime oldValue, DataSetDateTime newValue) => _InvalidOperation(SR.Format(SR.DataColumn_DateTimeMode, oldValue.ToString(), newValue.ToString())); 521public static Exception ColumnTypeNotSupported() => Common.ADP.NotSupported(SR.DataColumn_NullableTypesNotSupported); 527public static Exception SetFailed(string name) => _Data(SR.Format(SR.DataView_SetFailed, name)); 528public static Exception SetDataSetFailed() => _Data(SR.DataView_SetDataSetFailed); 529public static Exception SetRowStateFilter() => _Data(SR.DataView_SetRowStateFilter); 530public static Exception CanNotSetDataSet() => _Data(SR.DataView_CanNotSetDataSet); 531public static Exception CanNotUseDataViewManager() => _Data(SR.DataView_CanNotUseDataViewManager); 532public static Exception CanNotSetTable() => _Data(SR.DataView_CanNotSetTable); 533public static Exception CanNotUse() => _Data(SR.DataView_CanNotUse); 534public static Exception CanNotBindTable() => _Data(SR.DataView_CanNotBindTable); 535public static Exception SetTable() => _Data(SR.DataView_SetTable); 536public static Exception SetIListObject() => _Argument(SR.DataView_SetIListObject); 537public static Exception AddNewNotAllowNull() => _Data(SR.DataView_AddNewNotAllowNull); 538public static Exception NotOpen() => _Data(SR.DataView_NotOpen); 539public static Exception CreateChildView() => _Argument(SR.DataView_CreateChildView); 540public static Exception CanNotDelete() => _Data(SR.DataView_CanNotDelete); 541public static Exception CanNotEdit() => _Data(SR.DataView_CanNotEdit); 542public static Exception GetElementIndex(int index) => _IndexOutOfRange(SR.Format(SR.DataView_GetElementIndex, (index).ToString(CultureInfo.InvariantCulture))); 543public static Exception AddExternalObject() => _Argument(SR.DataView_AddExternalObject); 544public static Exception CanNotClear() => _Argument(SR.DataView_CanNotClear); 545public static Exception InsertExternalObject() => _Argument(SR.DataView_InsertExternalObject); 546public static Exception RemoveExternalObject() => _Argument(SR.DataView_RemoveExternalObject); 547public static Exception PropertyNotFound(string property, string table) => _Argument(SR.Format(SR.DataROWView_PropertyNotFound, property, table)); 548public static Exception ColumnToSortIsOutOfRange(string column) => _Argument(SR.Format(SR.DataColumns_OutOfRange, column)); 554public static Exception KeyTableMismatch() => _InvalidConstraint(SR.DataKey_TableMismatch); 555public static Exception KeyNoColumns() => _InvalidConstraint(SR.DataKey_NoColumns); 556public static Exception KeyTooManyColumns(int cols) => _InvalidConstraint(SR.Format(SR.DataKey_TooManyColumns, (cols).ToString(CultureInfo.InvariantCulture))); 557public static Exception KeyDuplicateColumns(string columnName) => _InvalidConstraint(SR.Format(SR.DataKey_DuplicateColumns, columnName)); 563public static Exception RelationDataSetMismatch() => _InvalidConstraint(SR.DataRelation_DataSetMismatch); 564public static Exception NoRelationName() => _Argument(SR.DataRelation_NoName); 565public static Exception ColumnsTypeMismatch() => _InvalidConstraint(SR.DataRelation_ColumnsTypeMismatch); 566public static Exception KeyLengthMismatch() => _Argument(SR.DataRelation_KeyLengthMismatch); 567public static Exception KeyLengthZero() => _Argument(SR.DataRelation_KeyZeroLength); 568public static Exception ForeignRelation() => _Argument(SR.DataRelation_ForeignDataSet); 569public static Exception KeyColumnsIdentical() => _InvalidConstraint(SR.DataRelation_KeyColumnsIdentical); 570public static Exception RelationForeignTable(string t1, string t2) => _InvalidConstraint(SR.Format(SR.DataRelation_ForeignTable, t1, t2)); 571public static Exception GetParentRowTableMismatch(string t1, string t2) => _InvalidConstraint(SR.Format(SR.DataRelation_GetParentRowTableMismatch, t1, t2)); 572public static Exception SetParentRowTableMismatch(string t1, string t2) => _InvalidConstraint(SR.Format(SR.DataRelation_SetParentRowTableMismatch, t1, t2)); 573public static Exception RelationForeignRow() => _Argument(SR.DataRelation_ForeignRow); 574public static Exception RelationNestedReadOnly() => _Argument(SR.DataRelation_RelationNestedReadOnly); 575public static Exception TableCantBeNestedInTwoTables(string tableName) => _Argument(SR.Format(SR.DataRelation_TableCantBeNestedInTwoTables, tableName)); 576public static Exception LoopInNestedRelations(string tableName) => _Argument(SR.Format(SR.DataRelation_LoopInNestedRelations, tableName)); 577public static Exception RelationDoesNotExist() => _Argument(SR.DataRelation_DoesNotExist); 578public static Exception ParentRowNotInTheDataSet() => _Argument(SR.DataRow_ParentRowNotInTheDataSet); 579public static Exception ParentOrChildColumnsDoNotHaveDataSet() => _InvalidConstraint(SR.DataRelation_ParentOrChildColumnsDoNotHaveDataSet); 580public static Exception InValidNestedRelation(string childTableName) => _InvalidOperation(SR.Format(SR.DataRelation_InValidNestedRelation, childTableName)); 581public static Exception InvalidParentNamespaceinNestedRelation(string childTableName) => _InvalidOperation(SR.Format(SR.DataRelation_InValidNamespaceInNestedRelation, childTableName)); 587public static Exception RowNotInTheDataSet() => _Argument(SR.DataRow_NotInTheDataSet); 588public static Exception RowNotInTheTable() => _RowNotInTable(SR.DataRow_NotInTheTable); 589public static Exception EditInRowChanging() => _InRowChangingEvent(SR.DataRow_EditInRowChanging); 590public static Exception EndEditInRowChanging() => _InRowChangingEvent(SR.DataRow_EndEditInRowChanging); 591public static Exception BeginEditInRowChanging() => _InRowChangingEvent(SR.DataRow_BeginEditInRowChanging); 592public static Exception CancelEditInRowChanging() => _InRowChangingEvent(SR.DataRow_CancelEditInRowChanging); 593public static Exception DeleteInRowDeleting() => _InRowChangingEvent(SR.DataRow_DeleteInRowDeleting); 594public static Exception ValueArrayLength() => _Argument(SR.DataRow_ValuesArrayLength); 595public static Exception NoCurrentData() => _VersionNotFound(SR.DataRow_NoCurrentData); 596public static Exception NoOriginalData() => _VersionNotFound(SR.DataRow_NoOriginalData); 597public static Exception NoProposedData() => _VersionNotFound(SR.DataRow_NoProposedData); 598public static Exception RowRemovedFromTheTable() => _RowNotInTable(SR.DataRow_RemovedFromTheTable); 599public static Exception DeletedRowInaccessible() => _DeletedRowInaccessible(SR.DataRow_DeletedRowInaccessible); 600public static Exception RowAlreadyDeleted() => _DeletedRowInaccessible(SR.DataRow_AlreadyDeleted); 601public static Exception RowEmpty() => _Argument(SR.DataRow_Empty); 602public static Exception InvalidRowVersion() => _Data(SR.DataRow_InvalidVersion); 603public static Exception RowOutOfRange() => _IndexOutOfRange(SR.DataRow_RowOutOfRange); 604public static Exception RowOutOfRange(int index) => _IndexOutOfRange(SR.Format(SR.DataRow_OutOfRange, (index).ToString(CultureInfo.InvariantCulture))); 605public static Exception RowInsertOutOfRange(int index) => _IndexOutOfRange(SR.Format(SR.DataRow_RowInsertOutOfRange, (index).ToString(CultureInfo.InvariantCulture))); 606public static Exception RowInsertTwice(int index, string tableName) => _IndexOutOfRange(SR.Format(SR.DataRow_RowInsertTwice, (index).ToString(CultureInfo.InvariantCulture), tableName)); 607public static Exception RowInsertMissing(string tableName) => _IndexOutOfRange(SR.Format(SR.DataRow_RowInsertMissing, tableName)); 608public static Exception RowAlreadyRemoved() => _Data(SR.DataRow_AlreadyRemoved); 609public static Exception MultipleParents() => _Data(SR.DataRow_MultipleParents); 610public static Exception InvalidRowState(DataRowState state) => _InvalidEnumArgumentException<DataRowState>(state); 611public static Exception InvalidRowBitPattern() => _Argument(SR.DataRow_InvalidRowBitPattern); 617internal static Exception SetDataSetNameToEmpty() => _Argument(SR.DataSet_SetNameToEmpty); 618internal static Exception SetDataSetNameConflicting(string name) => _Argument(SR.Format(SR.DataSet_SetDataSetNameConflicting, name)); 619public static Exception DataSetUnsupportedSchema(string ns) => _Argument(SR.Format(SR.DataSet_UnsupportedSchema, ns)); 620public static Exception MergeMissingDefinition(string obj) => _Argument(SR.Format(SR.DataMerge_MissingDefinition, obj)); 621public static Exception TablesInDifferentSets() => _Argument(SR.DataRelation_TablesInDifferentSets); 622public static Exception RelationAlreadyExists() => _Argument(SR.DataRelation_AlreadyExists); 623public static Exception RowAlreadyInOtherCollection() => _Argument(SR.DataRow_AlreadyInOtherCollection); 624public static Exception RowAlreadyInTheCollection() => _Argument(SR.DataRow_AlreadyInTheCollection); 625public static Exception TableMissingPrimaryKey() => _MissingPrimaryKey(SR.DataTable_MissingPrimaryKey); 626public static Exception RecordStateRange() => _Argument(SR.DataIndex_RecordStateRange); 627public static Exception IndexKeyLength(int length, int keyLength) => length == 0 ? 630public static Exception RemovePrimaryKey(DataTable table) => table.TableName.Length == 0 ? 633public static Exception RelationAlreadyInOtherDataSet() => _Argument(SR.DataRelation_AlreadyInOtherDataSet); 634public static Exception RelationAlreadyInTheDataSet() => _Argument(SR.DataRelation_AlreadyInTheDataSet); 635public static Exception RelationNotInTheDataSet(string relation) => _Argument(SR.Format(SR.DataRelation_NotInTheDataSet, relation)); 636public static Exception RelationOutOfRange(object index) => _IndexOutOfRange(SR.Format(SR.DataRelation_OutOfRange, Convert.ToString(index, null))); 637public static Exception DuplicateRelation(string relation) => _DuplicateName(SR.Format(SR.DataRelation_DuplicateName, relation)); 638public static Exception RelationTableNull() => _Argument(SR.DataRelation_TableNull); 639public static Exception RelationDataSetNull() => _Argument(SR.DataRelation_TableNull); 640public static Exception RelationTableWasRemoved() => _Argument(SR.DataRelation_TableWasRemoved); 641public static Exception ParentTableMismatch() => _Argument(SR.DataRelation_ParentTableMismatch); 642public static Exception ChildTableMismatch() => _Argument(SR.DataRelation_ChildTableMismatch); 643public static Exception EnforceConstraint() => _Constraint(SR.Data_EnforceConstraints); 644public static Exception CaseLocaleMismatch() => _Argument(SR.DataRelation_CaseLocaleMismatch); 645public static Exception CannotChangeCaseLocale() => CannotChangeCaseLocale(null); 646public static Exception CannotChangeCaseLocale(Exception? innerException) => _Argument(SR.DataSet_CannotChangeCaseLocale, innerException); 647public static Exception CannotChangeSchemaSerializationMode() => _InvalidOperation(SR.DataSet_CannotChangeSchemaSerializationMode); 648public static Exception InvalidSchemaSerializationMode(Type enumType, string mode) => _InvalidEnumArgumentException(SR.Format(SR.ADP_InvalidEnumerationValue, enumType.Name, mode)); 649public static Exception InvalidRemotingFormat(SerializationFormat mode) => _InvalidEnumArgumentException(mode); 650public static Exception SerializationFormatBinaryNotSupported() => _InvalidEnumArgumentException(SerializationFormat.Binary); 655public static Exception TableForeignPrimaryKey() => _Argument(SR.DataTable_ForeignPrimaryKey); 656public static Exception TableCannotAddToSimpleContent() => _Argument(SR.DataTable_CannotAddToSimpleContent); 657public static Exception NoTableName() => _Argument(SR.DataTable_NoName); 658public static Exception MultipleTextOnlyColumns() => _Argument(SR.DataTable_MultipleSimpleContentColumns); 659public static Exception InvalidSortString(string sort) => _Argument(SR.Format(SR.DataTable_InvalidSortString, sort)); 660public static Exception DuplicateTableName(string table) => _DuplicateName(SR.Format(SR.DataTable_DuplicateName, table)); 661public static Exception DuplicateTableName2(string table, string ns) => _DuplicateName(SR.Format(SR.DataTable_DuplicateName2, table, ns)); 662public static Exception SelfnestedDatasetConflictingName(string table) => _DuplicateName(SR.Format(SR.DataTable_SelfnestedDatasetConflictingName, table)); 663public static Exception DatasetConflictingName(string table) => _DuplicateName(SR.Format(SR.DataTable_DatasetConflictingName, table)); 664public static Exception TableAlreadyInOtherDataSet() => _Argument(SR.DataTable_AlreadyInOtherDataSet); 665public static Exception TableAlreadyInTheDataSet() => _Argument(SR.DataTable_AlreadyInTheDataSet); 666public static Exception TableOutOfRange(int index) => _IndexOutOfRange(SR.Format(SR.DataTable_OutOfRange, (index).ToString(CultureInfo.InvariantCulture))); 667public static Exception TableNotInTheDataSet(string table) => _Argument(SR.Format(SR.DataTable_NotInTheDataSet, table)); 668public static Exception TableInRelation() => _Argument(SR.DataTable_InRelation); 669public static Exception TableInConstraint(DataTable table, Constraint constraint) => _Argument(SR.Format(SR.DataTable_InConstraint, table.TableName, constraint.ConstraintName)); 670public static Exception CanNotSerializeDataTableHierarchy() => _InvalidOperation(SR.DataTable_CanNotSerializeDataTableHierarchy); 671public static Exception CanNotRemoteDataTable() => _InvalidOperation(SR.DataTable_CanNotRemoteDataTable); 672public static Exception CanNotSetRemotingFormat() => _Argument(SR.DataTable_CanNotSetRemotingFormat); 673public static Exception CanNotSerializeDataTableWithEmptyName() => _InvalidOperation(SR.DataTable_CanNotSerializeDataTableWithEmptyName); 674public static Exception TableNotFound(string tableName) => _Argument(SR.Format(SR.DataTable_TableNotFound, tableName)); 680public static Exception AggregateException(AggregateType aggregateType, Type type) => _Data(SR.Format(SR.DataStorage_AggregateException, aggregateType, type.Name)); 681public static Exception InvalidStorageType(TypeCode typecode) => _Data(SR.Format(SR.DataStorage_InvalidStorageType, typecode.ToString())); 682public static Exception RangeArgument(int min, int max) => _Argument(SR.Format(SR.Range_Argument, (min).ToString(CultureInfo.InvariantCulture), (max).ToString(CultureInfo.InvariantCulture))); 683public static Exception NullRange() => _Data(SR.Range_NullRange); 684public static Exception NegativeMinimumCapacity() => _Argument(SR.RecordManager_MinimumCapacity); 685public static Exception ProblematicChars(char charValue) => _Argument(SR.Format(SR.DataStorage_ProblematicChars, $"0x{(ushort)charValue:X}")); 686public static Exception StorageSetFailed() => _Argument(SR.DataStorage_SetInvalidDataType); 692public static Exception SimpleTypeNotSupported() => _Data(SR.Xml_SimpleTypeNotSupported); 693public static Exception MissingAttribute(string attribute) => MissingAttribute(string.Empty, attribute); 694public static Exception MissingAttribute(string element, string attribute) => _Data(SR.Format(SR.Xml_MissingAttribute, element, attribute)); 695public static Exception InvalidAttributeValue(string name, string value) => _Data(SR.Format(SR.Xml_ValueOutOfRange, name, value)); 696public static Exception AttributeValues(string name, string value1, string value2) => _Data(SR.Format(SR.Xml_AttributeValues, name, value1, value2)); 697public static Exception ElementTypeNotFound(string name) => _Data(SR.Format(SR.Xml_ElementTypeNotFound, name)); 698public static Exception RelationParentNameMissing(string rel) => _Data(SR.Format(SR.Xml_RelationParentNameMissing, rel)); 699public static Exception RelationChildNameMissing(string rel) => _Data(SR.Format(SR.Xml_RelationChildNameMissing, rel)); 700public static Exception RelationTableKeyMissing(string rel) => _Data(SR.Format(SR.Xml_RelationTableKeyMissing, rel)); 701public static Exception RelationChildKeyMissing(string rel) => _Data(SR.Format(SR.Xml_RelationChildKeyMissing, rel)); 702public static Exception UndefinedDatatype(string name) => _Data(SR.Format(SR.Xml_UndefinedDatatype, name)); 703public static Exception DatatypeNotDefined() => _Data(SR.Xml_DatatypeNotDefined); 704public static Exception MismatchKeyLength() => _Data(SR.Xml_MismatchKeyLength); 705public static Exception InvalidField(string name) => _Data(SR.Format(SR.Xml_InvalidField, name)); 706public static Exception InvalidSelector(string name) => _Data(SR.Format(SR.Xml_InvalidSelector, name)); 707public static Exception CircularComplexType(string name) => _Data(SR.Format(SR.Xml_CircularComplexType, name)); 708public static Exception CannotInstantiateAbstract(string name) => _Data(SR.Format(SR.Xml_CannotInstantiateAbstract, name)); 709public static Exception InvalidKey(string name) => _Data(SR.Format(SR.Xml_InvalidKey, name)); 710public static Exception DiffgramMissingSQL() => _Data(SR.Xml_MissingSQL); 711public static Exception DuplicateConstraintRead(string str) => _Data(SR.Format(SR.Xml_DuplicateConstraint, str)); 712public static Exception ColumnTypeConflict(string name) => _Data(SR.Format(SR.Xml_ColumnConflict, name)); 713public static Exception CannotConvert(string name, string? type) => _Data(SR.Format(SR.Xml_CannotConvert, name, type)); 714public static Exception MissingRefer(string name) => _Data(SR.Format(SR.Xml_MissingRefer, Keywords.REFER, Keywords.XSD_KEYREF, name)); 715public static Exception InvalidPrefix(string name) => _Data(SR.Format(SR.Xml_InvalidPrefix_SpecialCharacters, name)); 716public static Exception CanNotDeserializeObjectType() => _InvalidOperation(SR.Xml_CanNotDeserializeObjectType); 717public static Exception IsDataSetAttributeMissingInSchema() => _Data(SR.Xml_IsDataSetAttributeMissingInSchema); 718public static Exception TooManyIsDataSetAttributesInSchema() => _Data(SR.Xml_TooManyIsDataSetAttributesInSchema); 721public static Exception NestedCircular(string name) => _Data(SR.Format(SR.Xml_NestedCircular, name)); 722public static Exception MultipleParentRows(string tableQName) => _Data(SR.Format(SR.Xml_MultipleParentRows, tableQName)); 723public static Exception PolymorphismNotSupported(string typeName) => _InvalidOperation(SR.Format(SR.Xml_PolymorphismNotSupported, typeName)); 724public static Exception DataTableInferenceNotSupported() => _InvalidOperation(SR.Xml_DataTableInferenceNotSupported); 727internal static void ThrowMultipleTargetConverter(Exception? innerException) 734public static Exception DuplicateDeclaration(string name) => _Data(SR.Format(SR.Xml_MergeDuplicateDeclaration, name)); 737public static Exception FoundEntity() => _Data(SR.Xml_FoundEntity); 738public static Exception MergeFailed(string name) => _Data(name); 741public static Exception ConvertFailed(Type type1, Type type2) => _Data(SR.Format(SR.SqlConvert_ConvertFailed, type1.FullName, type2.FullName)); 744public static Exception InvalidDataTableReader(string tableName) => _InvalidOperation(SR.Format(SR.DataTableReader_InvalidDataTableReader, tableName)); 745public static Exception DataTableReaderSchemaIsInvalid(string tableName) => _InvalidOperation(SR.Format(SR.DataTableReader_SchemaInvalidDataTableReader, tableName)); 746public static Exception CannotCreateDataReaderOnEmptyDataSet() => _Argument(SR.DataTableReader_CannotCreateDataReaderOnEmptyDataSet); 747public static Exception DataTableReaderArgumentIsEmpty() => _Argument(SR.DataTableReader_DataTableReaderArgumentIsEmpty); 748public static Exception ArgumentContainsNullValue() => _Argument(SR.DataTableReader_ArgumentContainsNullValue); 749public static Exception InvalidCurrentRowInDataTableReader() => _DeletedRowInaccessible(SR.DataTableReader_InvalidRowInDataTableReader); 750public static Exception EmptyDataTableReader(string tableName) => _DeletedRowInaccessible(SR.Format(SR.DataTableReader_DataTableCleared, tableName)); 751internal static Exception InvalidDuplicateNamedSimpleTypeDelaration(string stName, string errorStr) => _Argument(SR.Format(SR.NamedSimpleType_InvalidDuplicateNamedSimpleTypeDelaration, stName, errorStr)); 754internal static Exception InternalRBTreeError(RBTreeError internalError) => _InvalidOperation(SR.Format(SR.RbTree_InvalidState, (int)internalError)); 755public static Exception EnumeratorModified() => _InvalidOperation(SR.RbTree_EnumerationBroken);
System\Data\DataRelation.cs (1)
675catch (Exception e) when (ADP.IsCatchableExceptionType(e))
System\Data\DataRelationCollection.cs (1)
818catch (Exception e) when (Common.ADP.IsCatchableExceptionType(e))
System\Data\DataRow.cs (2)
336catch (Exception e1) when (Common.ADP.IsCatchableOrSecurityExceptionType(e1)) 508catch (Exception e1) when (Common.ADP.IsCatchableOrSecurityExceptionType(e1))
System\Data\DataSet.cs (1)
967catch (Exception e) when (ADP.IsCatchableExceptionType(e))
System\Data\DataSetUtil.cs (1)
86internal static bool IsCatchableExceptionType(Exception e)
System\Data\DataTable.cs (10)
990Exception? first = null; 1012catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 1455catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 2750Exception? deferredException; 3414catch (Exception e) when (ADP.IsCatchableOrSecurityExceptionType(e)) 4131catch (Exception f) when (ADP.IsCatchableExceptionType(f)) 4259Exception? deferredException; 4268int position, bool fireEvent, out Exception? deferredException) 4456catch (Exception exc) 4478catch (Exception e) when (ADP.IsCatchableExceptionType(e))
System\Data\DataTableExtensions.cs (1)
175catch (Exception e)
System\Data\DataView.cs (2)
1420catch (Exception f) when (Common.ADP.IsCatchableExceptionType(f)) 1502catch (Exception e) when (Common.ADP.IsCatchableExceptionType(e))
System\Data\DataViewManager.cs (1)
323catch (Exception f) when (Common.ADP.IsCatchableExceptionType(f))
System\Data\DBConcurrencyException.cs (2)
24public DBConcurrencyException(string? message, Exception? inner) : base(message ?? SR.ADP_DBConcurrencyExceptionMessage, inner) 29public DBConcurrencyException(string? message, Exception? inner, DataRow[]? dataRows) : base(message ?? SR.ADP_DBConcurrencyExceptionMessage, inner)
System\Data\FillErrorEventArgs.cs (2)
10private Exception? _errors; 27public Exception? Errors
System\Data\Filter\DataExpression.cs (2)
147catch (Exception e) when (ADP.IsCatchableExceptionType(e)) 270catch (Exception e) when (ADP.IsCatchableExceptionType(e))
System\Data\Filter\ExpressionParser.cs (2)
259catch (Exception e) when (Common.ADP.IsCatchableExceptionType(e)) 606catch (Exception e) when (Common.ADP.IsCatchableExceptionType(e))
System\Data\Filter\FilterException.cs (50)
25public InvalidExpressionException(string? message, Exception? innerException) : base(message, innerException) { } 42public EvaluateException(string? message, Exception? innerException) : base(message, innerException) { } 59public SyntaxErrorException(string? message, Exception? innerException) : base(message, innerException) { } 89public static Exception InvokeArgument() 94public static Exception NYI(string moreinfo) 101public static Exception MissingOperand(OperatorInfo before) 106public static Exception MissingOperator(string token) 111public static Exception TypeMismatch(string expr) 116public static Exception FunctionArgumentOutOfRange(string arg, string func) 121public static Exception ExpressionTooComplex() 126public static Exception UnboundName(string name) 131public static Exception InvalidString(string str) 136public static Exception UndefinedFunction(string name) 141public static Exception SyntaxError() 146public static Exception FunctionArgumentCount(string name) 151public static Exception MissingRightParen() 156public static Exception UnknownToken(string token, int position) 161public static Exception UnknownToken(Tokens tokExpected, Tokens tokCurr, int position) 166public static Exception DatatypeConversion(Type type1, Type type2) 171public static Exception DatavalueConversion(object value, Type type) 176public static Exception InvalidName(string name) 181public static Exception InvalidDate(string date) 186public static Exception NonConstantArgument() 191public static Exception InvalidPattern(string pat) 196public static Exception InWithoutParentheses() 201public static Exception InWithoutList() 206public static Exception InvalidIsSyntax() 211public static Exception Overflow(Type type) 216public static Exception ArgumentType(string function, int arg, Type type) 221public static Exception ArgumentTypeInteger(string function, int arg) 226public static Exception TypeMismatchInBinop(int op, Type type1, Type type2) 231public static Exception AmbiguousBinop(int op, Type type1, Type type2) 236public static Exception UnsupportedOperator(int op) 241public static Exception InvalidNameBracketing(string name) 246public static Exception MissingOperandBefore(string op) 251public static Exception TooManyRightParentheses() 256public static Exception UnresolvedRelation(string name, string expr) 266public static Exception AggregateArgument() 271public static Exception AggregateUnbound(string expr) 276public static Exception EvalNoContext() 281public static Exception ExpressionUnbound(string expr) 286public static Exception ComputeNotAggregate(string expr) 291public static Exception FilterConversion(string expr) 296public static Exception LookupArgument() 301public static Exception InvalidType(string typeName) 306public static Exception InvalidHoursArgument() 311public static Exception InvalidMinutesArgument() 316public static Exception InvalidTimeZoneRange() 321public static Exception MismatchKindandTimeSpan() 326public static Exception UnsupportedDataType(Type type)
System\Data\Filter\NameNode.cs (1)
44catch (Exception e)
System\Data\Merger.cs (1)
588catch (Exception e) when (Common.ADP.IsCatchableExceptionType(e))
System\Data\ProviderBase\SchemaMapping.cs (2)
751catch (Exception e) when (ADP.IsCatchableOrSecurityExceptionType(e)) 1129catch (Exception e) when (ADP.IsCatchableOrSecurityExceptionType(e))
System\Data\RecordManager.cs (1)
249catch (Exception e) when (Common.ADP.IsCatchableOrSecurityExceptionType(e))
System\Data\Select.cs (1)
619catch (Exception e) when (ADP.IsCatchableExceptionType(e))
System\Data\SQLTypes\SQLUtility.cs (5)
40public SqlTypeException(string? message, Exception? e) : base(message, e) 78public SqlNullValueException(string? message, Exception? e) : base(message, e) 116public SqlTruncateException(string? message, Exception? e) : base(message, e) 154public SqlNotFilledException(string? message, Exception? e) : base(message, e) 179public SqlAlreadyFilledException(string? message, Exception? e) : base(message, e)
System\Data\SQLTypes\SqlXml.cs (1)
105catch (Exception ex)
System\Data\StrongTypingException.cs (1)
33public StrongTypingException(string? s, Exception? innerException) : base(s, innerException)
System\Data\xmlsaver.cs (1)
2248catch (Exception ex) when (ADP.IsCatchableExceptionType(ex))
System\Xml\XmlDataDocument.cs (4)
903catch (Exception e) when (Data.Common.ADP.IsCatchableExceptionType(e)) 1439catch (Exception e) when (Data.Common.ADP.IsCatchableExceptionType(e)) 1699catch (Exception e) when (Data.Common.ADP.IsCatchableExceptionType(e)) 2396catch (Exception e) when (Data.Common.ADP.IsCatchableExceptionType(e))
System.Data.Odbc (99)
Common\System\Data\Common\AdapterUtil.Odbc.cs (54)
41internal static Exception ExceptionWithStackTrace(Exception e) 47catch (Exception caught) 62internal static InvalidOperationException InvalidOperation(string error, Exception? inner) 213internal static Exception MethodNotImplemented([CallerMemberName] string methodName = "") 222internal static Exception OdbcNoTypesFromProvider() 230internal static Exception PooledOpenTimeout() 235internal static Exception NonPooledOpenTimeout() 255internal static Exception CommandTextRequired(string method) 270internal static Exception OpenReaderExists() 275internal static Exception OpenReaderExists(Exception? e) 283internal static Exception NonSeqByteAccess(long badIndex, long currIndex, string method) 288internal static Exception NumericToDecimalOverflow() 296internal static Exception InvalidCommandTimeout(int value) 300internal static Exception DeriveParametersNotSupported(IDbCommand value) 304internal static Exception UninitializedParameterSize(int index, Type dataType) 316internal static Exception ConnectionIsDisabled(Exception? InnerException) 320internal static Exception ClosedConnectionError() 324internal static Exception ConnectionAlreadyOpen(ConnectionState state) 328internal static Exception OpenConnectionPropertySet(string property, ConnectionState state) 332internal static Exception EmptyDatabaseName() 336internal static Exception DatabaseNameTooLong() 348internal static Exception InternalConnectionError(ConnectionError internalError) 356internal static Exception DataReaderNoData() 389internal static Exception ParameterConversionFailed(object value, Type destType, Exception inner) 394Exception e; 423internal static Exception ParametersMappingIndex(int index, IDataParameterCollection collection) 427internal static Exception ParametersSourceIndex(string parameterName, IDataParameterCollection collection, Type parameterType) 431internal static Exception ParameterNull(string parameter, IDataParameterCollection collection, Type parameterType) 435internal static Exception InvalidParameterType(IDataParameterCollection collection, Type parameterType, object invalidValue) 443internal static Exception ParallelTransactionsNotSupported(IDbConnection obj) 447internal static Exception TransactionZombied(IDbTransaction obj) 451internal static Exception OffsetOutOfRangeException() 460internal static Exception AmbiguousCollectionName(string collectionName) 465internal static Exception CollectionNameIsNotUnique(string collectionName) 470internal static Exception DataTableDoesNotExist(string collectionName) 475internal static Exception IncorrectNumberOfDataSourceInformationRows() 485internal static Exception InvalidXml() 490internal static Exception InvalidXmlMissingColumn(string collectionName, string columnName) 495internal static Exception InvalidXmlInvalidValue(string collectionName, string columnName) 500internal static Exception MissingDataSourceInformationColumn() 505internal static Exception MissingRestrictionColumn() 510internal static Exception MissingRestrictionRow() 515internal static Exception NoColumns() 520internal static Exception QueryFailed(string collectionName, Exception e) 525internal static Exception TooManyRestrictions(string collectionName) 530internal static Exception UnableToBuildCollection(string collectionName) 535internal static Exception UndefinedCollection(string collectionName) 540internal static Exception UndefinedPopulationMechanism(string populationMechanism) 545internal static Exception UnsupportedVersion(string collectionName)
Common\System\Data\ProviderBase\DbConnectionPool.cs (5)
119private Exception? _resError; 429catch (Exception e) 577private Exception? TryCloneCachedException() 622Exception? caughtException = null; 630catch (Exception e)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (16)
28static partial void TraceException(string trace, Exception e); 30internal static void TraceExceptionAsReturnValue(Exception e) 35internal static void TraceExceptionWithoutRethrow(Exception e) 48internal static ArgumentException Argument(string error, Exception? inner) 102internal static InvalidCastException InvalidCast(string error, Exception? inner) 237internal static bool IsCatchableExceptionType(Exception e) 251internal static bool IsCatchableOrSecurityExceptionType(Exception e) 287internal static ArgumentException ConvertFailed(Type fromType, Type toType, Exception? innerException) 295internal static Exception InvalidConnectionOptionValue(string key) 299internal static Exception InvalidConnectionOptionValue(string key, Exception? inner) 354internal static Exception StreamClosed([CallerMemberName] string method = "") 443internal static Exception InternalError(InternalErrorCode internalError) 451internal static Exception DataReaderClosed([CallerMemberName] string method = "") 467internal static Exception InvalidDataLength(long length) 489internal static Exception InvalidSeekOrigin(string parameterName)
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
483private static void ParseComparison(Dictionary<string, string?> parsetable, string connectionString, Dictionary<string, string>? synonyms, bool firstKey, Exception? e)
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\DbMetaDataFactory.cs (1)
156catch (Exception e)
src\runtime\src\libraries\Common\src\System\NotImplemented.cs (2)
14internal static Exception ByDesign => new NotImplementedException(); 19internal static Exception ByDesignWithMessage(string message)
System\Data\Odbc\Odbc32.cs (10)
13internal static Exception ConnectionClosed() 18internal static Exception OpenConnectionNoOwner() 23internal static Exception UnknownSQLType(ODBC32.SQL_TYPE sqltype) 84internal static Exception NegativeArgument() 88internal static Exception CantSetPropertyOnOpenConnection() 92internal static Exception CantEnableConnectionpooling(ODBC32.SQLRETURN retcode) 96internal static Exception CantAllocateEnvironmentHandle(ODBC32.SQLRETURN retcode) 100internal static Exception FailedToGetDescriptorHandle(ODBC32.SQLRETURN retcode) 104internal static Exception NotInTransaction() 108internal static Exception UnknownOdbcType(OdbcType odbctype)
System\Data\Odbc\OdbcCommand.cs (2)
1097catch (Exception e) 1120catch (Exception e)
System\Data\Odbc\OdbcConnection.cs (4)
326internal bool ConnectionIsAlive(Exception? innerException) 516internal Exception? HandleErrorNoThrow(OdbcHandle hrHandle, ODBC32.SQLRETURN retcode) 547Exception? e = HandleErrorNoThrow(hrHandle, retcode); 587catch (Exception e)
System\Data\Odbc\OdbcDataReader.cs (1)
319Exception? error = null;
System\Data\Odbc\OdbcParameter.cs (1)
1001catch (Exception e)
System\Data\Odbc\OdbcTransaction.cs (2)
115Exception e = _connection.HandleErrorNoThrow(handle, retcode)!; 120catch (Exception e)
System.Data.OleDb (148)
_generated\0\System.Data.Common.UnsafeNativeMethods.ISQLErrorInfo.cs (1)
93catch (global::System.Exception __exception)
_generated\1\System.Data.Common.UnsafeNativeMethods.IErrorInfo.cs (3)
70catch (global::System.Exception __exception) 129catch (global::System.Exception __exception) 188catch (global::System.Exception __exception)
_generated\2\System.Data.Common.UnsafeNativeMethods.IErrorRecords.cs (6)
76catch (global::System.Exception __exception) 115catch (global::System.Exception __exception) 179catch (global::System.Exception __exception) 241catch (global::System.Exception __exception) 280catch (global::System.Exception __exception) 325catch (global::System.Exception __exception)
ColumnBinding.cs (2)
1661private Exception CheckTypeValueStatusValue() 1666private Exception CheckTypeValueStatusValue(Type expectedType)
DbConnectionOptions.cs (1)
834private static void ParseComparison(Hashtable parsetable, string connectionString, Hashtable? synonyms, bool firstKey, Exception? e)
DbPropSet.cs (1)
17private Exception? lastErrorFromProvider;
OleDb_Util.cs (18)
83internal static Exception CommandParameterStatus(string value, Exception inner) 89internal static Exception UninitializedParameters(int index, OleDbType dbtype) 93internal static Exception BadStatus_ParamAcc(int index, DBBindStatus status) 97internal static Exception NoProviderSupportForParameters(string provider, Exception? inner) 101internal static Exception NoProviderSupportForSProcResetParameters(string provider) 167internal static Exception PropsetSetFailure(string value, Exception inner) 179internal static OleDbException NoErrorInformation(string? provider, OleDbHResult hr, Exception? inner) 193internal static InvalidOperationException MDACNotAvailable(Exception? inner) 201internal static InvalidOperationException CommandTextNotSupported(string provider, Exception? inner) 209internal static InvalidOperationException ProviderUnavailable(string provider, Exception? inner) 214internal static InvalidOperationException TransactionsNotSupported(string provider, Exception? inner) 248internal static Exception InvalidOleDbType(OleDbType value) 300internal static InvalidOperationException ThreadApartmentState(Exception innerException) 310internal static ArgumentException Fill_EmptyRecordSet(string parameter, Exception innerException) 314internal static ArgumentException Fill_EmptyRecord(string parameter, Exception innerException)
OleDbCommand.cs (7)
738catch (Exception e) 766catch (Exception e) 915Exception? e = OleDbConnection.ProcessResults(hr, _connection); 923private Exception ExecuteCommandTextSpecialErrorHandling(OleDbHResult hr, Exception e) 1232Exception? e = OleDbConnection.ProcessResults(hr, _connection); 1239Exception? e = OleDbConnection.ProcessResults(hr, null);
OleDbConnection.cs (4)
504catch (Exception e) 542Exception? e = OleDbConnection.ProcessResults(hr, null); 578internal static Exception? ProcessResults(OleDbHResult hresult, OleDbConnection? connection) 587Exception? e = null;
OleDbConnectionInternal.cs (3)
106Exception? e = OleDbConnection.ProcessResults(hr, null); 676Exception? e = OleDbConnection.ProcessResults(hr, connection); 723catch (Exception e)
OleDbConnectionString.cs (2)
299Exception? failure = null; 331catch (Exception e)
OleDbDataAdapter.cs (2)
320catch (Exception e) 374catch (Exception e)
OleDbDataReader.cs (4)
1182Exception? e = OleDbConnection.ProcessResults(hr, _connection); 1249Exception? e = OleDbConnection.ProcessResults(hr, connection); 2039catch (Exception e) 2102catch (Exception e)
OleDbEnumerator.cs (1)
69Exception? f = OleDbConnection.ProcessResults(hr, null);
OleDbException.cs (4)
18internal OleDbException(string? message, OleDbHResult errorCode, Exception? inner) : base(message, inner) 24internal OleDbException(OleDbException previous, Exception? inner) : base(previous.Message, inner) 30private OleDbException(string? message, Exception? inner, string? source, OleDbHResult errorCode, OleDbErrorCollection errors) : base(message, inner) 68internal static OleDbException CreateException(UnsafeNativeMethods.IErrorInfo errorInfo, OleDbHResult errorCode, Exception? inner)
OleDbParameter.cs (1)
486catch (Exception e)
OleDbTransaction.cs (1)
300Exception? e = OleDbConnection.ProcessResults(hr, _parentConnection);
OleDbWrapper.cs (1)
101Exception? e = OleDbConnection.ProcessResults(hr, null);
System\Data\Common\AdapterUtil.cs (79)
25internal static Exception ExceptionWithStackTrace(Exception e) 31catch (Exception caught) 37private static void TraceException(string trace, Exception e) 46internal static void TraceExceptionAsReturnValue(Exception e) 50internal static void TraceExceptionForCapture(Exception e) 55internal static void TraceExceptionWithoutRethrow(Exception e) 70internal static ArgumentException Argument(string error, Exception? inner) 82internal static ArgumentException Argument(string error, string parameter, Exception inner) 122internal static InvalidCastException InvalidCast(string error, Exception? inner) 140internal static InvalidOperationException InvalidOperation(string error, Exception? inner) 162internal static InvalidOperationException DataAdapter(string error, Exception? inner) 220internal static bool IsCatchableExceptionType(Exception e) 234internal static bool IsCatchableOrSecurityExceptionType(Exception e) 358internal static ArgumentException UdlFileError(Exception inner) 378internal static ArgumentException ConvertFailed(Type fromType, Type toType, Exception innerException) 424internal static Exception InvalidConnectionOptionValue(string key) 428internal static Exception InvalidConnectionOptionValue(string key, Exception? inner) 436internal static Exception PooledOpenTimeout() 441internal static Exception NonPooledOpenTimeout() 490internal static Exception CommandTextRequired(string method) 504internal static Exception NoStoredProcedureExists(string sproc) 508internal static Exception OpenReaderExists() 513internal static Exception OpenReaderExists(Exception? e) 518internal static Exception TransactionCompleted() 526internal static Exception NonSeqByteAccess(long badIndex, long currIndex, string method) 531internal static Exception NumericToDecimalOverflow() 539internal static Exception FillRequiresSourceTableName(string parameter) 547internal static Exception InvalidCommandTimeout(int value) 551internal static Exception DeriveParametersNotSupported(IDbCommand value) 555internal static Exception UninitializedParameterSize(int index, Type dataType) 559internal static Exception PrepareParameterType(IDbCommand cmd) 563internal static Exception PrepareParameterSize(IDbCommand cmd) 567internal static Exception PrepareParameterScale(IDbCommand cmd, string type) 576internal static Exception ClosedConnectionError() 580internal static Exception ConnectionAlreadyOpen(ConnectionState state) 584internal static Exception TransactionPresent() 588internal static Exception LocalTransactionPresent() 592internal static Exception OpenConnectionPropertySet(string property, ConnectionState state) 596internal static Exception EmptyDatabaseName() 608internal static Exception InternalConnectionError(ConnectionError internalError) 652internal static Exception InternalError(InternalErrorCode internalError) 656internal static Exception InternalError(InternalErrorCode internalError, Exception innerException) 660internal static Exception InvalidConnectTimeoutValue() 668internal static Exception DataReaderNoData() 672internal static Exception DataReaderClosed(string method) 684internal static Exception InvalidDataLength(long length) 712internal static Exception ParameterConversionFailed(object value, Type destType, Exception inner) 717Exception e; 746internal static Exception ParametersMappingIndex(int index, IDataParameterCollection collection) 750internal static Exception ParametersSourceIndex(string parameterName, IDataParameterCollection collection, Type parameterType) 754internal static Exception ParameterNull(string parameter, IDataParameterCollection collection, Type parameterType) 758internal static Exception InvalidParameterType(IDataParameterCollection collection, Type parameterType, object invalidValue) 766internal static Exception ParallelTransactionsNotSupported(IDbConnection obj) 770internal static Exception TransactionZombied(IDbTransaction obj) 779internal static Exception AmbiguousCollectionName(string collectionName) 784internal static Exception CollectionNameIsNotUnique(string collectionName) 789internal static Exception DataTableDoesNotExist(string collectionName) 794internal static Exception IncorrectNumberOfDataSourceInformationRows() 804internal static Exception InvalidXml() 809internal static Exception InvalidXmlMissingColumn(string collectionName, string columnName) 814internal static Exception InvalidXmlInvalidValue(string collectionName, string columnName) 819internal static Exception MissingDataSourceInformationColumn() 824internal static Exception MissingRestrictionColumn() 829internal static Exception MissingRestrictionRow() 834internal static Exception NoColumns() 839internal static Exception QueryFailed(string collectionName, Exception e) 844internal static Exception TooManyRestrictions(string collectionName) 849internal static Exception UnableToBuildCollection(string collectionName) 854internal static Exception UndefinedCollection(string collectionName) 859internal static Exception UndefinedPopulationMechanism(string populationMechanism) 864internal static Exception UnsupportedVersion(string collectionName) 1080catch (Exception e) 1157catch (Exception e)
System\Data\ProviderBase\DbConnectionPool.cs (6)
357private Exception? _resError; 699catch (Exception e) 922private Exception? TryCloneCachedException() 972Exception? caughtException = null; 997catch (Exception e) 1485catch (Exception e)
System\Data\ProviderBase\DbMetaDataFactory.cs (1)
176catch (Exception e)
System.Diagnostics.DiagnosticSource (19)
System\Diagnostics\Activity.cs (2)
555public Activity AddException(Exception exception, in TagList tags = default, DateTimeOffset timestamp = default) 1334private static void NotifyError(Exception exception)
System\Diagnostics\ActivityListener.cs (1)
16public delegate void ExceptionRecorder(Activity activity, Exception exception, ref TagList tags);
System\Diagnostics\ActivitySource.cs (2)
406internal void NotifyActivityAddException(Activity activity, Exception exception, ref TagList tags) 511public void EnumWithExceptionNotification(Activity activity, Exception exception, ref TagList tags)
System\Diagnostics\DsesFilterAndTransform.cs (2)
712try { ret = fetch!.Fetch(obj); } catch (Exception e) { _eventSource.Message($"Property {objType}.{_propertyName} threw the exception {e}"); } 995public void OnError(Exception error) { }
System\Diagnostics\Metrics\AggregationManager.cs (7)
44private readonly Action<Exception> _collectionError; 47private readonly Action<Exception> _observableInstrumentCallbackError; 63Action<Exception> collectionError, 66Action<Exception> observableInstrumentCallbackError) 279catch (Exception e) 308catch (Exception e) 505catch (Exception e)
System\Diagnostics\Metrics\MeterListener.cs (3)
218List<Exception>? exceptionsList = null; 228catch (Exception e) 230exceptionsList ??= new List<Exception>();
System\Diagnostics\Metrics\MetricsEventSource.cs (2)
519catch (Exception e) when (LogError(e)) 695private bool LogError(Exception e)
System.Diagnostics.EventLog (10)
System\Diagnostics\EventLogInternal.cs (1)
580catch (Exception)
System\Diagnostics\Reader\EventLogException.cs (5)
53public EventLogException(string? message, Exception? innerException) : base(message, innerException) { } 100public EventLogNotFoundException(string? message, Exception? innerException) : base(message, innerException) { } 119public EventLogReadingException(string? message, Exception? innerException) : base(message, innerException) { } 138public EventLogProviderDisabledException(string? message, Exception? innerException) : base(message, innerException) { } 155public EventLogInvalidDataException(string? message, Exception? innerException) : base(message, innerException) { }
System\Diagnostics\Reader\EventLogWatcher.cs (2)
247catch (Exception e) 267EventRecordWrittenEventArgs args = new EventRecordWrittenEventArgs(asyncException.Data["RealException"] as Exception);
System\Diagnostics\Reader\EventRecordWrittenEventArgs.cs (2)
12internal EventRecordWrittenEventArgs(Exception? exception) { EventException = exception; } 25public Exception? EventException { get; }
System.Diagnostics.Process (18)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (1)
349catch (Exception ex)
src\runtime\src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (4)
81catch (Exception e) 195catch (Exception e) 355catch (Exception e) 434catch (Exception e)
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (1)
170catch (Exception ex) when (ex is IOException || ex.InnerException is IOException)
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (1)
65catch (Exception e)
System\Diagnostics\AsyncStreamReader.cs (1)
242catch (Exception e)
System\Diagnostics\Process.Multiplexing.cs (1)
580catch (Exception ex)
System\Diagnostics\Process.NonUap.cs (2)
28List<Exception>? result = KillTree(); 102private static bool IsProcessInvalidException(Exception e) =>
System\Diagnostics\Process.Unix.cs (7)
90private List<Exception>? KillTree() 92List<Exception>? exceptions = null; 97private void KillTree(ref List<Exception>? exceptions) 115(exceptions ??= new List<Exception>()).Add(new Win32Exception()); 129(exceptions ??= new List<Exception>()).Add(new Win32Exception()); 309catch (Exception e) when (IsProcessInvalidException(e)) 321catch (Exception e) when (IsProcessInvalidException(e))
System.Diagnostics.StackTrace (1)
System\Diagnostics\StackTraceSymbols.cs (1)
212catch (Exception e) when (e is BadImageFormatException || e is IOException)
System.Diagnostics.TextWriterTraceListener (2)
System\Diagnostics\TextWriterTraceListener.cs (1)
250catch (Exception)
System\Diagnostics\XmlWriterTraceListener.cs (1)
177catch (Exception)
System.Diagnostics.TraceSource (2)
System\Diagnostics\DefaultTraceListener.cs (1)
167catch (Exception e)
System\Diagnostics\Switch.cs (1)
226catch (Exception)
System.DirectoryServices (28)
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLink.cs (1)
161Exception e = new ActiveDirectoryObjectNotFoundException(SR.DSNotFound, typeof(ActiveDirectorySiteLink), siteLinkName);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLinkBridge.cs (1)
148Exception e = new ActiveDirectoryObjectNotFoundException(SR.DSNotFound, typeof(ActiveDirectorySiteLinkBridge), bridgeName);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySubnet.cs (1)
58Exception e = new ActiveDirectoryObjectNotFoundException(SR.DSNotFound, typeof(ActiveDirectorySubnet), subnetName);
System\DirectoryServices\ActiveDirectory\Exception.cs (16)
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) { } 208public SyncFromAllServersOperationException(string? message, Exception? inner, SyncFromAllServersErrorInformation[]? errors) : base(message ?? SR.DSSyncAllFailure, inner) 213public SyncFromAllServersOperationException(string? message, Exception? inner) : base(message ?? SR.DSSyncAllFailure, inner) { } 256public ForestTrustCollisionException(string? message, Exception? inner, ForestTrustRelationshipCollisionCollection? collisions) : base(message ?? SR.ForestTrustCollision, inner) 261public ForestTrustCollisionException(string? message, Exception? inner) : base(message ?? SR.ForestTrustCollision, inner) { } 294internal static Exception GetExceptionFromCOMException(COMException e) 299internal static Exception GetExceptionFromCOMException(DirectoryContext? context, COMException e) 301Exception exception; 376internal static Exception GetExceptionFromErrorCode(int errorCode) 381internal static Exception GetExceptionFromErrorCode(int errorCode, string? targetName) 478internal static Exception CreateForestTrustCollisionException(IntPtr collisionInfo)
System\DirectoryServices\ActiveDirectory\ReadOnlyStringCollection.cs (2)
22if (returnValue is Exception) 23throw (Exception)returnValue;
System\DirectoryServices\ActiveDirectory\ReplicationConnection.cs (1)
81Exception e = new ActiveDirectoryObjectNotFoundException(SR.DSNotFound, typeof(ReplicationConnection), name);
System\DirectoryServices\ActiveDirectory\Utils.cs (1)
2312catch (Exception)
System\DirectoryServices\DirectoryServicesCOMException.cs (3)
18public DirectoryServicesCOMException(string? message, Exception? inner) : base(message, inner) { } 50internal static Exception CreateFormattedComException(int hr) 56internal static Exception CreateFormattedComException(COMException e)
System\DirectoryServices\ResultPropertyValueCollection.cs (2)
23if (returnValue is Exception) 24throw (Exception)returnValue;
System.DirectoryServices.AccountManagement (19)
System\DirectoryServices\AccountManagement\AuthZSet.cs (1)
190catch (Exception e)
System\DirectoryServices\AccountManagement\Context.cs (3)
651catch (Exception e) 754catch (Exception e) 908catch (Exception e)
System\DirectoryServices\AccountManagement\exceptions.cs (14)
22internal PrincipalException(string message, Exception innerException) : 44public MultipleMatchesException(string message, Exception innerException) : 66public NoMatchingPrincipalException(string message, Exception innerException) : 88public PasswordException(string message, Exception innerException) : 110public PrincipalExistsException(string message, Exception innerException) : 135public PrincipalServerDownException(string message, Exception innerException) : 143public PrincipalServerDownException(string message, Exception innerException, int errorCode) : base(message, innerException) 147public PrincipalServerDownException(string message, Exception innerException, int errorCode, string serverName) : base(message, innerException) 186public PrincipalOperationException(string message, Exception innerException) : 194public PrincipalOperationException(string message, Exception innerException, int errorCode) : base(message, innerException) 254internal static Exception GetExceptionFromCOMException(COMException e) 256Exception exception; 327internal static Exception GetExceptionFromErrorCode(int errorCode) 332internal static Exception GetExceptionFromErrorCode(int errorCode, string targetName)
System\DirectoryServices\AccountManagement\Utils.cs (1)
159catch (Exception e)
System.DirectoryServices.Protocols (13)
System\DirectoryServices\Protocols\common\DirectoryException.cs (4)
22public DirectoryException(string message, Exception inner) : base(message, inner) 49public DirectoryOperationException(string message, Exception inner) : base(message ?? SR.DefaultOperationsError, inner) { } 63public DirectoryOperationException(DirectoryResponse response, string message, Exception inner) 100public BerConversionException(string message, Exception inner) : base(message ?? SR.BerConversionError, inner)
System\DirectoryServices\Protocols\ldap\LdapAsyncResult.cs (2)
61internal Exception _exception; 83internal Exception _exception;
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (1)
341catch (Exception e)
System\DirectoryServices\Protocols\ldap\LdapException.cs (4)
106public LdapException(string message, Exception inner) : base(message, inner) { } 125public LdapException(int errorCode, string message, Exception inner) : base(message, inner) 158public TlsOperationException(string message, Exception inner) : base(message, inner) { } 168public TlsOperationException(DirectoryResponse response, string message, Exception inner) : base(response, message, inner)
System\DirectoryServices\Protocols\ldap\LdapPartialResultsProcessor.cs (2)
174catch (Exception exception) 367catch (Exception e)
System.Drawing.Common (16)
System\Drawing\ClientUtils.cs (2)
13public static bool IsCriticalException(Exception ex) 25public static bool IsSecurityOrCriticalException(Exception ex)
System\Drawing\Drawing2D\GraphicsPath.cs (1)
129catch (Exception ex) when (!ClientUtils.IsSecurityOrCriticalException(ex))
System\Drawing\Drawing2D\GraphicsPathIterator.cs (1)
39catch (Exception ex)
System\Drawing\Font.cs (1)
188catch (Exception ex) when (!ClientUtils.IsCriticalException(ex))
System\Drawing\Gdiplus.cs (1)
22internal static Exception StatusException(Status status) => status.GetException();
System\Drawing\Image.cs (2)
64catch (Exception e) when (e is ExternalException 940catch (Exception e) when (e
System\Drawing\StringFormat.cs (1)
80catch (Exception ex)
System\Drawing\SystemFonts.cs (3)
137private static bool IsCriticalFontException(Exception ex) => 177catch (Exception ex) when (!IsCriticalFontException(ex)) { } 277catch (Exception ex) when (!IsCriticalFontException(ex)) { }
System\Drawing\ToolboxBitmapAttribute.cs (4)
138catch (Exception e) when (!ClientUtils.IsCriticalException(e)) 172catch (Exception e) when (!ClientUtils.IsCriticalException(e)) 209catch (Exception e) when (!ClientUtils.IsCriticalException(e)) 290catch (Exception) { }
System.Drawing.Primitives (2)
src\runtime\src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
110catch (Exception e)
System\Drawing\ColorTranslator.cs (1)
276catch (Exception ex)
System.Formats.Asn1 (3)
System\Formats\Asn1\AsnContentException.cs (1)
44public AsnContentException(string? message, Exception? inner)
System\Formats\Asn1\AsnDecoder.GeneralizedTime.cs (1)
396catch (Exception e)
System\Formats\Asn1\AsnDecoder.UtcTime.cs (1)
234catch (Exception e)
System.Formats.Cbor (1)
System\Formats\Cbor\CborContentException.cs (1)
29public CborContentException(string? message, Exception? inner)
System.Formats.Tar (4)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
99Exception e = Interop.GetExceptionForIoErrno(Sys.GetLastErrorInfo(), path, isDirError); 114internal static Exception GetExceptionForIoErrno(ErrorInfo errorInfo, string? path = null, bool isDirError = false) 143Exception inner = GetIOException(errorInfo); 183internal static Exception GetIOException(Interop.ErrorInfo errorInfo, string? path = null)
System.IO.Compression (10)
src\runtime\src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (4)
191catch (Exception) 208catch (Exception) 305catch (Exception e) // Could not load the ZLib dll 362catch (Exception e) // Could not load the ZLib dll
System\IO\Compression\DeflateZLib\Deflater.cs (1)
177catch (Exception cause)
System\IO\Compression\DeflateZLib\Inflater.cs (1)
257catch (Exception cause) // could not load the Zlib DLL correctly
System\IO\Compression\DeflateZLib\ZLibException.cs (1)
49public ZLibException(string? message, Exception? innerException) : base(message, innerException) { }
System\IO\Compression\ZipArchive.Async.cs (1)
123catch (Exception)
System\IO\Compression\ZipArchive.cs (1)
173catch (Exception)
System\IO\Compression\Zstandard\ZstandardUtils.cs (1)
63internal static Exception CreateExceptionForError(Interop.Zstd.ZSTD_error error)
System.IO.FileSystem.AccessControl (8)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (4)
15/// Converts, resetting it, the last Win32 error into a corresponding <see cref="Exception"/> object, optionally 18internal static Exception GetExceptionForLastWin32Error(string? path = "") 22/// Converts the specified Win32 error into a corresponding <see cref="Exception"/> object, optionally 25internal static Exception GetExceptionForWin32Error(int errorCode, string? path = "", string? errorDetails = null)
src\runtime\src\libraries\Common\src\System\NotImplemented.cs (2)
14internal static Exception ByDesign => new NotImplementedException(); 19internal static Exception ByDesignWithMessage(string message)
System\Security\AccessControl\FileSystemSecurity.cs (2)
30private static Exception? _HandleErrorCode(int errorCode, string? name, SafeHandle? handle, object? context) 32Exception? exception = null;
System.IO.FileSystem.DriveInfo (7)
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (1)
65catch (Exception e)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
99Exception e = Interop.GetExceptionForIoErrno(Sys.GetLastErrorInfo(), path, isDirError); 114internal static Exception GetExceptionForIoErrno(ErrorInfo errorInfo, string? path = null, bool isDirError = false) 143Exception inner = GetIOException(errorInfo); 183internal static Exception GetIOException(Interop.ErrorInfo errorInfo, string? path = null)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (1)
33catch (Exception e)
System\IO\DriveNotFoundException.cs (1)
26public DriveNotFoundException(string? message, Exception? innerException)
System.IO.FileSystem.Watcher (17)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
99Exception e = Interop.GetExceptionForIoErrno(Sys.GetLastErrorInfo(), path, isDirError); 114internal static Exception GetExceptionForIoErrno(ErrorInfo errorInfo, string? path = null, bool isDirError = false) 143Exception inner = GetIOException(errorInfo); 183internal static Exception GetIOException(Interop.ErrorInfo errorInfo, string? path = null)
System\IO\ErrorEventArgs.cs (4)
11private readonly Exception _exception; 16public ErrorEventArgs(Exception exception) 22/// Gets the <see cref='System.Exception'/> that represents the error that occurred. 24public virtual Exception GetException()
System\IO\FileSystemWatcher.Linux.cs (8)
271Exception exc; 498catch (Exception ex) 941public Exception? Exception { get; } 953private WatcherEvent(Exception exception) 971public static WatcherEvent Error(Exception exception) 1109catch (Exception ex) 1200catch (Exception ex) 1221internal void QueueError(Exception exception)
System\IO\InternalBufferOverflowException.cs (1)
36public InternalBufferOverflowException(string? message, Exception? inner) : base(message, inner)
System.IO.IsolatedStorage (11)
System\IO\IsolatedStorage\IsolatedStorageException.cs (2)
18internal Exception? _underlyingException; 32public IsolatedStorageException(string? message, Exception? inner)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (8)
85catch (Exception e) 132catch (Exception e) 155catch (Exception e) 313catch (Exception e) 341catch (Exception e) 369catch (Exception e) 575internal static Exception GetIsolatedStorageException(string exceptionMsg, Exception rootCause)
System\IO\IsolatedStorage\IsolatedStorageFileStream.cs (1)
126catch (Exception e)
System.IO.MemoryMappedFiles (4)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
99Exception e = Interop.GetExceptionForIoErrno(Sys.GetLastErrorInfo(), path, isDirError); 114internal static Exception GetExceptionForIoErrno(ErrorInfo errorInfo, string? path = null, bool isDirError = false) 143Exception inner = GetIOException(errorInfo); 183internal static Exception GetIOException(Interop.ErrorInfo errorInfo, string? path = null)
System.IO.Packaging (12)
System\IO\Packaging\FileFormatException.cs (3)
43public FileFormatException(string? message, Exception? innerException) 89public FileFormatException(Uri? sourceUri, Exception? innerException) 110public FileFormatException(Uri? sourceUri, string? message, Exception? innerException)
System\IO\Packaging\InternalRelationshipCollection.cs (1)
578private static void ThrowForInvalidAttributeValue(XmlCompatibilityReader reader, string attributeName, Exception ex)
System\IO\Packaging\PackUriHelper.cs (8)
309Exception? exception = GetExceptionIfPartUriInvalid(partUri, out partUriString); 344Exception? exception = GetExceptionIfPartUriInvalid(partUri, out partUriString); 370private static Exception? GetExceptionIfPartUriInvalid(Uri partUri, out string partUriString) 376Exception? argumentException = GetExceptionIfAbsoluteUri(partUri); 437Exception? exception = GetExceptionIfAbsoluteUri(uri); 452Exception? exception = GetExceptionIfFragmentPresent(partName); 467Exception? exception = GetExceptionIfPartNameEndsWithSlash(partName); 484Exception? exception = GetExceptionIfPartNameStartsWithTwoSlashes(partName);
System.IO.Pipelines (32)
System\IO\Pipelines\Pipe.cs (4)
419internal void CompleteWriter(Exception? exception) 589internal void CompleteReader(Exception? exception) 624internal void OnWriterCompleted(Action<Exception?, object?> callback, object? state) 663internal void OnReaderCompleted(Action<Exception?, object?> callback, object? state)
System\IO\Pipelines\Pipe.DefaultPipeReader.cs (2)
34public override void Complete(Exception? exception = null) => _pipe.CompleteReader(exception); 37public override void OnWriterCompleted(Action<Exception?, object?> callback, object? state) => _pipe.OnWriterCompleted(callback, state);
System\IO\Pipelines\Pipe.DefaultPipeWriter.cs (2)
22public override void Complete(Exception? exception = null) => _pipe.CompleteWriter(exception); 29public override void OnReaderCompleted(Action<Exception?, object?> callback, object? state) => _pipe.OnReaderCompleted(callback, state);
System\IO\Pipelines\PipeCompletion.cs (2)
23public PipeCompletionCallbacks? TryComplete(Exception? exception = null) 40public PipeCompletionCallbacks? AddCallback(Action<Exception?, object?> callback, object? state)
System\IO\Pipelines\PipeCompletionCallback.cs (2)
8public readonly Action<Exception?, object?> Callback; 11public PipeCompletionCallback(Action<Exception?, object?> callback, object? state)
System\IO\Pipelines\PipeCompletionCallbacks.cs (5)
12private readonly Exception? _exception; 28List<Exception>? exceptions = null; 42private void Execute(PipeCompletionCallback callback, ref List<Exception>? exceptions) 48catch (Exception ex) 50exceptions ??= new List<Exception>();
System\IO\Pipelines\PipeReader.cs (5)
122/// <param name="exception">Optional <see cref="System.Exception" /> indicating a failure that's causing the pipeline to complete.</param> 123public abstract void Complete(Exception? exception = null); 128public virtual ValueTask CompleteAsync(Exception? exception = null) 135catch (Exception ex) 149public virtual void OnWriterCompleted(Action<Exception?, object?> callback, object? state)
System\IO\Pipelines\PipeWriter.cs (5)
16/// <param name="exception">Optional <see cref="System.Exception" /> indicating a failure that's causing the pipeline to complete.</param> 17public abstract void Complete(Exception? exception = null); 22public virtual ValueTask CompleteAsync(Exception? exception = null) 29catch (Exception ex) 51public virtual void OnReaderCompleted(Action<Exception?, object?> callback, object? state)
System\IO\Pipelines\SequencePipeReader.cs (1)
50public override void Complete(Exception? exception = null)
System\IO\Pipelines\StreamPipeReader.cs (2)
168public override void Complete(Exception? exception = null) 177public override ValueTask CompleteAsync(Exception? exception = null) =>
System\IO\Pipelines\StreamPipeWriter.cs (2)
213public override void Complete(Exception? exception = null) 237public override async ValueTask CompleteAsync(Exception? exception = null)
System.IO.Pipes (13)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
99Exception e = Interop.GetExceptionForIoErrno(Sys.GetLastErrorInfo(), path, isDirError); 114internal static Exception GetExceptionForIoErrno(ErrorInfo errorInfo, string? path = null, bool isDirError = false) 143Exception inner = GetIOException(errorInfo); 183internal static Exception GetIOException(Interop.ErrorInfo errorInfo, string? path = null)
System\IO\Error.cs (6)
9internal static Exception GetEndOfFile() 14internal static Exception GetPipeNotOpen() 19internal static Exception GetReadNotSupported() 24internal static Exception GetSeekNotSupported() 29internal static Exception GetWriteNotSupported() 34internal static Exception GetOperationAborted()
System\IO\Pipes\NamedPipeClientStream.Unix.cs (1)
69catch (Exception)
System\IO\Pipes\PipeStream.cs (1)
139catch (Exception ex)
System\IO\Pipes\PipeStream.Unix.cs (1)
520internal static Exception CreateExceptionForLastError(string? pipeName = null)
System.IO.Ports (7)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
99Exception e = Interop.GetExceptionForIoErrno(Sys.GetLastErrorInfo(), path, isDirError); 114internal static Exception GetExceptionForIoErrno(ErrorInfo errorInfo, string? path = null, bool isDirError = false) 143Exception inner = GetIOException(errorInfo); 183internal static Exception GetIOException(Interop.ErrorInfo errorInfo, string? path = null)
System\IO\Ports\InternalResources.cs (1)
22internal static Exception FileNotOpenException()
System\IO\Ports\SerialStream.Unix.cs (2)
1072private static Exception GetLastIOError() 1101internal void Complete(Exception exception)
System.Linq.Expressions (25)
System\Dynamic\Utils\ContractUtils.cs (1)
18public static Exception Unreachable
System\Linq\Expressions\CatchBlock.cs (15)
25/// Gets a reference to the <see cref="Exception"/> object caught by this handler. 30/// Gets the type of <see cref="Exception"/> this handler catches. 79/// <param name="type">The <see cref="Type"/> of <see cref="Exception"/> this <see cref="CatchBlock"/> will handle.</param> 90/// <param name="variable">A <see cref="ParameterExpression"/> representing a reference to the <see cref="Exception"/> object caught by this handler.</param> 101/// an <see cref="Exception"/> filter but no reference to the caught <see cref="Exception"/> object. 103/// <param name="type">The <see cref="Type"/> of <see cref="Exception"/> this <see cref="CatchBlock"/> will handle.</param> 105/// <param name="filter">The body of the <see cref="Exception"/> filter.</param> 114/// an <see cref="Exception"/> filter and a reference to the caught <see cref="Exception"/> object. 116/// <param name="variable">A <see cref="ParameterExpression"/> representing a reference to the <see cref="Exception"/> object caught by this handler.</param> 118/// <param name="filter">The body of the <see cref="Exception"/> filter.</param> 129/// <param name="type">The <see cref="Type"/> of <see cref="Exception"/> this <see cref="CatchBlock"/> will handle.</param> 130/// <param name="variable">A <see cref="ParameterExpression"/> representing a reference to the <see cref="Exception"/> object caught by this handler.</param> 132/// <param name="filter">The body of the <see cref="Exception"/> filter.</param>
System\Linq\Expressions\Interpreter\ControlFlowInstructions.cs (4)
317catch (Exception exception) when (_tryHandler.HasHandler(frame, exception, out ExceptionHandler? exHandler, out object? unwrappedException)) 720Exception? ex = WrapThrownObject(frame.Pop()); 729private static Exception? WrapThrownObject(object? thrown) => 730thrown == null ? null : (thrown as Exception ?? new RuntimeWrappedException(thrown));
System\Linq\Expressions\Interpreter\InterpretedFrame.cs (2)
143internal void SaveTraceToException(Exception exception) 148public static InterpretedFrameInfo[]? GetExceptionStackTrace(Exception exception)
System\Linq\Expressions\Interpreter\LightCompiler.cs (1)
102internal bool HasHandler(InterpretedFrame frame, Exception exception, [NotNullWhen(true)] out ExceptionHandler? handler, out object? unwrappedException)
System\Linq\Expressions\ParameterExpression.cs (2)
49else if (type == typeof(Exception)) 51return new PrimitiveParameterExpression<Exception>(name);
System.Linq.Parallel (49)
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (2)
129catch (Exception ex) 162catch (Exception ex)
System\Linq\Parallel\QueryOperators\Inlined\CountAggregationOperator.cs (1)
39protected override int InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\DecimalAverageAggregationOperator.cs (1)
37protected override decimal InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\DecimalMinMaxAggregationOperator.cs (1)
41protected override decimal InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\DecimalSumAggregationOperator.cs (1)
37protected override decimal InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\DoubleAverageAggregationOperator.cs (1)
37protected override double InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\DoubleMinMaxAggregationOperator.cs (1)
47protected override double InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\DoubleSumAggregationOperator.cs (1)
37protected override double InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\FloatAverageAggregationOperator.cs (1)
37protected override float InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\FloatMinMaxAggregationOperator.cs (1)
46protected override float InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\FloatSumAggregationOperator.cs (1)
37protected override float InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\InlinedAggregationOperator.cs (3)
51Exception? toThrow = null; 57catch (Exception ex) 105protected abstract TResult InternalAggregate(ref Exception? singularExceptionToThrow);
System\Linq\Parallel\QueryOperators\Inlined\IntAverageAggregationOperator.cs (1)
37protected override double InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\IntMinMaxAggregationOperator.cs (1)
41protected override int InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\IntSumAggregationOperator.cs (1)
38protected override int InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\LongAverageAggregationOperator.cs (1)
37protected override double InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\LongCountAggregationOperator.cs (1)
38protected override long InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\LongMinMaxAggregationOperator.cs (1)
41protected override long InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\LongSumAggregationOperator.cs (1)
37protected override long InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalAverageAggregationOperator.cs (1)
37protected override decimal? InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalMinMaxAggregationOperator.cs (1)
41protected override decimal? InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalSumAggregationOperator.cs (1)
37protected override decimal? InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleAverageAggregationOperator.cs (1)
37protected override double? InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleMinMaxAggregationOperator.cs (1)
47protected override double? InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleSumAggregationOperator.cs (1)
37protected override double? InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatAverageAggregationOperator.cs (1)
37protected override float? InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatMinMaxAggregationOperator.cs (1)
47protected override float? InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatSumAggregationOperator.cs (1)
37protected override float? InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\NullableIntAverageAggregationOperator.cs (1)
37protected override double? InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\NullableIntMinMaxAggregationOperator.cs (1)
41protected override int? InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\NullableIntSumAggregationOperator.cs (1)
37protected override int? InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\NullableLongAverageAggregationOperator.cs (1)
37protected override double? InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\NullableLongMinMaxAggregationOperator.cs (1)
41protected override long? InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\QueryOperators\Inlined\NullableLongSumAggregationOperator.cs (1)
37protected override long? InternalAggregate(ref Exception? singularExceptionToThrow)
System\Linq\Parallel\Scheduling\SpoolingTaskBase.cs (1)
49catch (Exception ex)
System\Linq\Parallel\Utils\ExceptionAggregator.cs (5)
43catch (Exception ex) 75catch (Exception ex) 98internal static void ThrowOCEorAggregateException(Exception ex, CancellationState cancellationState) 129catch (Exception ex) 139private static bool ThrowAnOCE(Exception ex, CancellationState cancellationState)
System\Linq\ParallelEnumerable.cs (6)
1578catch (Exception e) 1712catch (Exception e) 4402catch (Exception ex) 4429catch (Exception ex) 4981catch (Exception ex) 5078catch (Exception ex)
System.Linq.Queryable (6)
System\Linq\Error.cs (6)
8internal static Exception ArgumentNotIEnumerableGeneric(string message) => 11internal static Exception ArgumentNotValid(string message) => 14internal static Exception ArgumentOutOfRange(string message) => 17internal static Exception NoMethodOnType(string name, object type) => 20internal static Exception NoMethodOnTypeMatchingArguments(string name, object type) => 23internal static Exception EnumeratingNullEnumerableExpression() =>
System.Management (13)
System\Management\InteropClasses\WMIInterop.cs (8)
1189public Exception exception; 1292catch (Exception e) 1402private Exception exception; // Exception thrown from worker method (if any). Exposed as property. 1418public System.Exception Exception 1678catch (Exception e) 1696catch (Exception e) 1714catch (Exception e) 1732catch (Exception e)
System\Management\ManagementException.cs (4)
618internal static void ThrowWithExtendedInfo(Exception e) 647internal ManagementException(Exception e, string msg, ManagementBaseObject errObj) : base(msg, e) 709public ManagementException(string message, Exception innerException) : this(innerException, message, null) 736private static string GetMessage(Exception e)
System\Management\ManagementScope.cs (1)
60catch (Exception e)
System.Memory (2)
System\ThrowHelper.cs (2)
64private static Exception CreateArgumentValidationException<T>(ReadOnlySequenceSegment<T>? startSegment, int startIndex, ReadOnlySequenceSegment<T>? endSegment) 82private static Exception CreateArgumentValidationException(Array? array, int start)
System.Net.Http (172)
src\runtime\src\libraries\Common\src\System\Net\ExceptionCheck.cs (1)
8internal static bool IsFatal(Exception exception) => exception is OutOfMemoryException;
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)
17public HPackEncodingException(string message, Exception 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)
16public QPackEncodingException(string message, Exception innerException)
src\runtime\src\libraries\Common\src\System\NotImplemented.cs (2)
14internal static Exception ByDesign => new NotImplementedException(); 19internal static Exception ByDesignWithMessage(string message)
System\Net\Http\CancellationHelper.cs (6)
15/// <summary>Determines whether to wrap an <see cref="Exception"/> in a cancellation exception.</summary> 19internal static bool ShouldWrapInOperationCanceledException(Exception exception, CancellationToken cancellationToken) => 26internal static Exception CreateOperationCanceledException(Exception? innerException, CancellationToken cancellationToken) => 32private static void ThrowOperationCanceledException(Exception? innerException, CancellationToken cancellationToken) => 45internal static void ThrowIfCancellationRequested(Exception? innerException, CancellationToken cancellationToken)
System\Net\Http\DiagnosticsHandler.cs (8)
161Exception? exception = null; 178catch (Exception ex) 301[DynamicDependency(nameof(System.Exception.Message), typeof(Exception))] 302[DynamicDependency(nameof(System.Exception.StackTrace), typeof(Exception))] 303internal ExceptionData(Exception exception, HttpRequestMessage request) 309public Exception Exception { get; }
System\Net\Http\DiagnosticsHelper.cs (1)
53public static bool TryGetErrorType(HttpResponseMessage? response, Exception? exception, out string? errorType)
System\Net\Http\HttpClient.cs (9)
213catch (Exception e) when (HttpContent.StreamCopyExceptionNeedsWrapping(e)) 221catch (Exception e) 291catch (Exception e) when (HttpContent.StreamCopyExceptionNeedsWrapping(e)) 298catch (Exception e) 345catch (Exception e) 501catch (Exception e) 556catch (Exception e) 593private void HandleFailure(Exception e, bool telemetryStarted, HttpResponseMessage? response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts) 597Exception? toThrow = null;
System\Net\Http\HttpContent.cs (15)
335catch (Exception e) when (StreamCopyExceptionNeedsWrapping(e)) 358catch (Exception e) when (StreamCopyExceptionNeedsWrapping(e)) 369catch (Exception e) when (StreamCopyExceptionNeedsWrapping(e)) 392if (!CreateTemporaryBuffer(maxBufferSize, out LimitArrayPoolWriteStream? tempBuffer, out Exception? error)) 413catch (Exception e) 480if (!CreateTemporaryBuffer(maxBufferSize, out LimitArrayPoolWriteStream? tempBuffer, out Exception? error)) 500catch (Exception e) 520catch (Exception e) 523Exception we = GetStreamCopyException(e); 600private bool CreateTemporaryBuffer(long maxBufferSize, out LimitArrayPoolWriteStream? tempBuffer, out Exception? error) 686internal static bool StreamCopyExceptionNeedsWrapping(Exception e) => e is IOException || e is ObjectDisposedException; 688private static Exception GetStreamCopyException(Exception originalException) 704internal static Exception WrapStreamCopyException(Exception e)
System\Net\Http\HttpIOException.cs (1)
19public HttpIOException(HttpRequestError httpRequestError, string? message = null, Exception? innerException = null)
System\Net\Http\HttpMessageInvoker.cs (3)
51catch (Exception ex) when (LogRequestFailed(ex, telemetryStarted: true)) 90catch (Exception ex) when (LogRequestFailed(ex, telemetryStarted: true)) 108internal static bool LogRequestFailed(Exception exception, bool telemetryStarted)
System\Net\Http\HttpProtocolException.cs (1)
27public HttpProtocolException(long errorCode, string message, Exception? innerException)
System\Net\Http\HttpRequestException.cs (4)
17public HttpRequestException(string? message, Exception? inner) 32public HttpRequestException(string? message, Exception? inner, HttpStatusCode? statusCode) 45public HttpRequestException(HttpRequestError httpRequestError, string? message = null, Exception? inner = null, HttpStatusCode? statusCode = null) 66internal HttpRequestException(HttpRequestError httpRequestError, string? message, Exception? inner, RequestRetryType allowRetry)
System\Net\Http\HttpTelemetry.cs (1)
76public void RequestFailed(Exception exception)
System\Net\Http\MessageProcessingHandler.cs (2)
95catch (Exception e) 109catch (Exception e)
System\Net\Http\Metrics\HttpMetricsEnrichmentContext.cs (3)
27private Exception? _exception; 54public Exception? Exception => _exception; 103Exception? exception,
System\Net\Http\Metrics\MetricsHandler.cs (3)
61Exception? exception = null; 69catch (Exception ex) 104private void RequestStop(HttpRequestMessage request, HttpResponseMessage? response, Exception? exception, long startTimestamp, bool recordCurrentRequests)
System\Net\Http\MultipartContent.cs (3)
178catch (Exception ex) 228catch (Exception ex) 301catch (Exception ex)
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (3)
234catch (Exception exc) when (CancellationHelper.ShouldWrapInOperationCanceledException(exc, cancellationToken)) 279catch (Exception exc) when (CancellationHelper.ShouldWrapInOperationCanceledException(exc, cancellationToken)) 430catch (Exception)
System\Net\Http\SocketsHttpHandler\ConnectHelper.cs (5)
78catch (Exception e) 133catch (Exception ex) when (ex is not OperationCanceledException) 139internal static Exception CreateWrappedException(Exception exception, string host, int port, CancellationToken cancellationToken) 145static HttpRequestError DeduceError(Exception exception)
System\Net\Http\SocketsHttpHandler\ConnectionCloseReadStream.cs (2)
62catch (Exception exc) when (CancellationHelper.ShouldWrapInOperationCanceledException(exc, cancellationToken)) 123catch (Exception exc) when (CancellationHelper.ShouldWrapInOperationCanceledException(exc, cancellationToken))
System\Net\Http\SocketsHttpHandler\ConnectionPool\ConnectionSetupDistributedTracing.cs (2)
41public static void StopConnectionSetupActivity(Activity activity, Exception? exception, IPEndPoint? remoteEndPoint) 59public static void ReportError(Activity? activity, Exception exception)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (8)
567Exception? exception = null; 637catch (Exception ex) when (activity is not null) 708catch (Exception ex) 763catch (Exception e) 818catch (Exception e) when (e is not OperationCanceledException) 853private static Exception CreateConnectTimeoutException(OperationCanceledException oce) 858Exception newException = CancellationHelper.CreateOperationCanceledException(te, oce.CancellationToken); 864private static void ThrowGetVersionException(HttpRequestMessage request, int desiredVersion, Exception? inner = null)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (3)
260Exception? connectionException = null; 267catch (Exception e) 306private void HandleHttp11ConnectionFailure(HttpConnectionWaiter<HttpConnection>? requestWaiter, Exception e)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (5)
182Exception? connectionException = null; 220catch (Exception e) 256catch (Exception e) 271private void HandleHttp2ConnectionFailure(HttpConnectionWaiter<Http2Connection?> requestWaiter, Exception e) 367catch (Exception e)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (12)
53private volatile Dictionary<HttpAuthority, Exception?>? _altSvcBlocklist; 76if (!TryGetHttp3Authority(request, out HttpAuthority? authority, out Exception? reasonException)) 93catch (Exception ex) 256Exception? connectionException = null; 264if (TryGetHttp3Authority(queueItem.Request, out authority, out Exception? reasonException)) 283catch (Exception e) 328private void HandleHttp3ConnectionFailure(HttpConnectionWaiter<Http3Connection?> requestWaiter, Exception? e) 610private bool TryGetHttp3Authority(HttpRequestMessage request, [NotNullWhen(true)] out HttpAuthority? authority, out Exception? reasonException) 782private bool IsAltSvcBlocked(HttpAuthority authority, out Exception? reasonException) 808internal void BlocklistAuthority(HttpAuthority badAuthority, Exception? exception = null) 812Dictionary<HttpAuthority, Exception?>? altSvcBlocklist = _altSvcBlocklist; 827altSvcBlocklist = new Dictionary<HttpAuthority, Exception?>();
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (1)
42catch (Exception ex) when (waitForConnectionActivity is not null)
System\Net\Http\SocketsHttpHandler\ContentLengthReadStream.cs (2)
87catch (Exception exc) when (CancellationHelper.ShouldWrapInOperationCanceledException(exc, cancellationToken)) 152catch (Exception exc) when (CancellationHelper.ShouldWrapInOperationCanceledException(exc, cancellationToken))
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (16)
74private Exception? _abortException; 243catch (Exception e) 396catch (Exception e) 517catch (Exception e) 614catch (Exception e) 1088Exception resetException = HttpProtocolException.CreateHttp2ConnectionException(errorCode, SR.net_http_http2_connection_close); 1258catch (Exception e) 1279catch (Exception e) 1341catch (Exception e) 1820private void Abort(Exception abortException) 2047catch (Exception e) 2101catch (Exception e) when (e is IOException || e is ObjectDisposedException || e is InvalidOperationException) 2204private static void ThrowRetry(string message, Exception? innerException = null) => 2207private static Exception GetRequestAbortedException(Exception? innerException = null) => 2211private static void ThrowRequestAborted(Exception? innerException = null) =>
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (6)
52private Exception? _resetException; 240catch (Exception e) 942public void OnReset(Exception resetException, Http2ProtocolErrorCode? resetStreamErrorCode = null, bool canRetry = false) 1015if (_resetException is Exception resetException) 1336if (_resetException is Exception resetException) 1565catch (Exception e)
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (11)
48private Exception? _abortException; 54public Exception? AbortException => Volatile.Read(ref _abortException); 162catch (Exception ex) 272Exception? exception = null; 362internal Exception Abort(Exception abortException) 365Exception? firstException = Interlocked.CompareExchange(ref _abortException, abortException, null); 508catch (Exception ex) 569catch (Exception ex) 696catch (Exception ex) 962public void Stop(HttpRequestMessage request, HttpConnectionPool pool, Exception? exception)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (7)
309Exception innerException = _connection.AbortException ?? HttpProtocolException.CreateHttp3StreamException(code, ex); 320Exception abortException = _connection.Abort(HttpProtocolException.CreateHttp3ConnectionException(code, SR.net_http_http3_connection_close)); 366Exception abortException = _connection.Abort(HttpProtocolException.CreateHttp3ConnectionException(Http3ErrorCode.QPackDecompressionFailed)); 374catch (Exception ex) 1258catch (Exception ex) 1330catch (Exception ex) 1338private void HandleReadResponseContentException(Exception ex, CancellationToken cancellationToken)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (9)
153catch (Exception e) when (e is SocketException || e is ObjectDisposedException) 182catch (Exception error) 270catch (Exception error) when (TransitionToCompletedAndTryOwnCompletion()) 844catch (Exception error) 884catch (Exception ex) when (MapSendException(ex, cancellationToken, out Exception mappedEx)) 897if (MapSendException(error, cancellationToken, out Exception mappedException)) 906private bool MapSendException(Exception exception, CancellationToken cancellationToken, out Exception mappedException)
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (1)
213Exception? e = task.Exception!.InnerException; // Access Exception even if not tracing, to avoid TaskScheduler.UnobservedTaskException firing
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
405catch (Exception ex)
System\Net\Http\SocketsHttpHandler\HttpContentReadStream.cs (1)
87catch (Exception e)
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (3)
69catch (Exception exc) when (CancellationHelper.ShouldWrapInOperationCanceledException(exc, cancellationToken)) 125catch (Exception exc) when (CancellationHelper.ShouldWrapInOperationCanceledException(exc, cancellationToken)) 216catch (Exception exc) when (CancellationHelper.ShouldWrapInOperationCanceledException(exc, cancellationToken))
System\Net\Http\SocketsHttpHandler\SocketsHttpHandler.cs (3)
594Exception? error = ValidateAndNormalizeRequest(request); 616Exception? error = ValidateAndNormalizeRequest(request); 637private static Exception? ValidateAndNormalizeRequest(HttpRequestMessage request)
System\Net\Http\SocketsHttpHandler\SocksException.cs (1)
12public SocksException(string message, Exception innerException) : base(message, innerException) { }
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (1)
256catch (Exception ex)
System\Net\Http\StreamToStreamCopy.cs (2)
87catch (Exception e) 102catch (Exception e)
System.Net.Http.WinHttpHandler (11)
src\runtime\src\libraries\Common\src\System\Runtime\ExceptionServices\ExceptionStackTrace.cs (2)
13public static void AddCurrentStack(Exception exception) 18FieldInfo? fi = typeof(Exception).GetField(ExceptionRemoteStackTraceStringName, BindingFlags.NonPublic | BindingFlags.Instance);
src\runtime\src\libraries\Common\src\System\Threading\Tasks\RendezvousAwaitable.cs (1)
94public void SetException(Exception exception)
System\Net\Http\WinHttpException.cs (2)
28public WinHttpException(int error, string message, Exception innerException) : base(message, innerException) 66public static WinHttpException CreateExceptionUsingError(int error, string nameOfCalledFunction, Exception innerException)
System\Net\Http\WinHttpHandler.cs (2)
1018catch (Exception ex) 1558private static void HandleAsyncException(WinHttpRequestState state, Exception ex)
System\Net\Http\WinHttpRequestCallback.cs (3)
123catch (Exception ex) 419catch (Exception ex) 444Exception innerException = WinHttpException.CreateExceptionUsingError(unchecked((int)asyncResult.dwError), "WINHTTP_CALLBACK_STATUS_REQUEST_ERROR");
System\Net\Http\WinHttpRequestState.cs (1)
124public Exception? SavedException { get; set; }
System.Net.HttpListener (17)
src\runtime\src\libraries\Common\src\System\Net\ExceptionCheck.cs (1)
8internal static bool IsFatal(Exception exception) => exception is OutOfMemoryException;
System\Net\HttpListener.cs (3)
164catch (Exception exception) 238catch (Exception exception) 305catch (Exception exception)
System\Net\Managed\ChunkedInputStream.cs (1)
145catch (Exception e)
System\Net\Managed\ChunkStream.cs (2)
280catch (Exception) 293catch (Exception)
System\Net\Managed\HttpConnection.cs (1)
400catch (Exception e)
System\Net\Managed\HttpListener.Managed.cs (5)
48catch (Exception exception) 83catch (Exception exception) 113catch (Exception exception) 139catch (Exception exception) 247Exception exc = new ObjectDisposedException("listener");
System\Net\Managed\HttpStreamAsyncResult.cs (2)
50internal Exception? _error; 58public void Complete(Exception e)
System\Net\Managed\ListenerAsyncResult.Managed.cs (2)
47private Exception? _exception; 62internal void Complete(Exception exc)
System.Net.Mail (15)
src\runtime\src\libraries\Common\src\System\NotImplemented.cs (2)
14internal static Exception ByDesign => new NotImplementedException(); 19internal static Exception ByDesignWithMessage(string message)
System\Net\Mail\SmtpClient.cs (9)
394(Exception? ex, bool _) = SendAsyncInternal<SyncReadWriteAdapter>(message, false, null).GetAwaiter().GetResult(); 410private async Task<(Exception? ex, bool synchronous)> SendAsyncInternal<TIOAdapter>(MailMessage message, bool invokeSendCompleted, object? userToken, bool forceWrapExceptions = false, CancellationToken cancellationToken = default) 445Exception? exception = null; 537catch (Exception e) 542Exception ProcessException(Exception e, ref bool canceled, bool forceWrapExceptions, bool timedOut) 593Task<(Exception? ex, bool _)> task = SendAsyncInternal<AsyncReadWriteAdapter>(message, true, userToken, true); 663Task<(Exception?, bool)> task = SendAsyncInternal<AsyncReadWriteAdapter>(message, false, null, true, cancellationToken); 684static async Task WaitAndRethrowIfNeeded(Task<(Exception? ex, bool _)> task)
System\Net\Mail\SmtpException.cs (1)
97public SmtpException(string? message, Exception? innerException) : base(message, innerException)
System\Net\Mail\SmtpFailedRecipientException.cs (2)
25public SmtpFailedRecipientException(string? message, Exception? innerException) : base(message, innerException) { } 44public SmtpFailedRecipientException(string? message, string? failedRecipient, Exception? innerException) : base(message, innerException)
System\Net\Mail\SmtpFailedRecipientsException.cs (1)
27public SmtpFailedRecipientsException(string? message, Exception? innerException) : base(message, innerException)
System.Net.NameResolution (12)
System\Net\Dns.cs (8)
28catch (Exception ex) when (LogFailure(string.Empty, activity, ex)) 133Exception? ex = t.Exception?.InnerException; 549catch (Exception ex) when (LogFailure(hostName, activity, ex)) 606catch (Exception ex) when (LogFailure(address, activity, ex)) 641catch (Exception ex) when (LogFailure(name, activity, ex)) 797Exception? exception = null; 836catch (Exception ex) 900private static bool LogFailure(object hostNameOrAddress, in NameResolutionActivity activity, Exception exception)
System\Net\NameResolutionMetrics.cs (1)
29public static void AfterResolution(TimeSpan duration, string hostName, Exception? exception)
System\Net\NameResolutionTelemetry.cs (3)
92public void AfterResolution(object hostNameOrAddress, in NameResolutionActivity activity, object? answer, Exception? exception = null) 145internal static string GetErrorType(Exception exception) => (exception as SocketException)?.SocketErrorCode switch 187public bool Stop(object? answer, Exception? exception, out TimeSpan duration)
System.Net.NetworkInformation (15)
src\runtime\src\libraries\Common\src\System\Net\NetworkInformation\NetworkInformationException.cs (1)
52internal NetworkInformationException(string message, Exception innerException) : base(message, innerException)
src\runtime\src\libraries\Common\src\System\NotImplemented.cs (2)
14internal static Exception ByDesign => new NotImplementedException(); 19internal static Exception ByDesignWithMessage(string message)
System\Net\NetworkInformation\LinuxNetworkInterface.cs (1)
61catch (Exception e) when (e is FileNotFoundException || e is UnauthorizedAccessException)
System\Net\NetworkInformation\NetEventSource.NetworkInformation.cs (1)
18public static void Error(Exception exception, [CallerMemberName] string? memberName = null) =>
System\Net\NetworkInformation\NetworkAddressChange.Unix.cs (1)
212catch (Exception ex)
System\Net\NetworkInformation\StringParsingHelpers.Misc.cs (4)
21catch (Exception e) 33catch (Exception e) 46catch (Exception e) 52internal static NetworkInformationException CreateNetworkInformationException(Exception inner)
System\Net\NetworkInformation\UnixIPGlobalProperties.cs (5)
63internal List<Exception>? _exceptions; 65internal void AddException(Exception e) 67_exceptions ??= new List<Exception>(); 84catch (Exception e) 102catch (Exception e)
System.Net.Ping (7)
System\Net\NetworkInformation\Ping.cs (3)
409catch (Exception e) when (e is not PlatformNotSupportedException) 694catch (Exception e) when (e is not PlatformNotSupportedException) 727catch (Exception e) when (e is not PlatformNotSupportedException && !(e is OperationCanceledException && _canceled))
System\Net\NetworkInformation\Ping.PingUtility.cs (2)
66catch (Exception) 101catch (Exception e)
System\Net\NetworkInformation\PingCompletedEventArgs.cs (1)
12internal PingCompletedEventArgs(PingReply? reply, Exception? error, bool cancelled, object? userToken) : base(error, cancelled, userToken)
System\Net\NetworkInformation\PingException.cs (1)
18public PingException(string? message, Exception? innerException) :
System.Net.Primitives (5)
src\runtime\src\libraries\Common\src\System\NotImplemented.cs (2)
14internal static Exception ByDesign => new NotImplementedException(); 19internal static Exception ByDesignWithMessage(string message)
System\Net\CookieContainer.cs (2)
306catch (Exception e) 625catch (Exception e)
System\Net\CookieException.cs (1)
31public CookieException(string? message, Exception? innerException) : base(message, innerException)
System.Net.Quic (41)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (2)
48internal static Exception CreateOpenSslCryptographicException() 95Exception e = CreateOpenSslCryptographicException();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
153Exception e = CreateOpenSslCryptographicException();
src\runtime\src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (1)
28catch (Exception ex)
System\Net\Quic\Internal\MsQuicTlsSecret.cs (1)
33catch (Exception ex)
System\Net\Quic\Internal\ResettableValueTaskSource.cs (7)
55/// Returns <c>true</c> if this task source has entered its final state, i.e. <see cref="TrySetResult(bool)"/> or <see cref="TrySetException(Exception)"/> 134private bool TryComplete(Exception? exception, bool final) 235public bool TrySetException(Exception exception) 268if (_finalTaskSource.TrySignal(out Exception? exception)) 299private Exception? _exception; 334public bool TryComplete(Exception? exception = null) 346public bool TrySignal(out Exception? exception)
System\Net\Quic\Internal\ThrowHelper.cs (4)
33internal static bool TryGetStreamExceptionForMsQuicStatus(int status, [NotNullWhen(true)] out Exception? exception) 57internal static Exception GetExceptionForMsQuicStatus(int status, long? errorCode = default, string? message = null) 59Exception ex = GetExceptionInternal(status, errorCode, message); 68static Exception GetExceptionInternal(int status, long? errorCode, string? message)
System\Net\Quic\Internal\ValueTaskSource.cs (3)
39/// Returns <c>true</c> if this task source was completed, i.e. <see cref="TrySetResult"/> or <see cref="TrySetException(Exception)"/> was called. 96private bool TryComplete(Exception? exception) 164public bool TrySetException(Exception exception)
System\Net\Quic\QuicConnection.cs (6)
266catch (Exception ex) 537catch (Exception ex) 654Exception exception = ExceptionDispatchInfo.SetCurrentStackTrace(ThrowHelper.GetExceptionForMsQuicStatus(data.Status, (long)data.ErrorCode)); 666Exception exception = ExceptionDispatchInfo.SetCurrentStackTrace(ThrowHelper.GetConnectionAbortedException((long)data.ErrorCode)); 680Exception exception = ExceptionDispatchInfo.SetCurrentStackTrace(_disposed ? new ObjectDisposedException(GetType().FullName) : ThrowHelper.GetOperationAbortedException()); 805catch (Exception ex)
System\Net\Quic\QuicConnection.SslConnectionOptions.cs (2)
138catch (Exception ex) 251catch (Exception ex)
System\Net\Quic\QuicException.cs (2)
41internal QuicException(QuicError error, long? applicationErrorCode, string message, Exception? innerException) 53internal QuicException(QuicError error, long? applicationErrorCode, long? transportErrorCode, string message, Exception? innerException)
System\Net\Quic\QuicListener.cs (6)
99/// Incoming connections waiting to be accepted via AcceptAsync. The item will either be fully connected <see cref="QuicConnection"/> or <see cref="Exception"/> if the handshake failed. 192ExceptionDispatchInfo.Throw((Exception)item); 278Exception ex = ExceptionDispatchInfo.SetCurrentStackTrace(new QuicException(QuicError.ConnectionTimeout, null, SR.Format(SR.net_quic_handshake_timeout, handshakeTimeout), oce)); 285catch (Exception ex) 302if (task.AsTask().Exception?.InnerException is Exception handshakeException) 394catch (Exception ex)
System\Net\Quic\QuicStream.cs (6)
114private Exception? _sendException; 463if (ThrowHelper.TryGetStreamExceptionForMsQuicStatus(status, out Exception? exception)) 589if (ThrowHelper.TryGetStreamExceptionForMsQuicStatus(data.Status, out Exception? exception)) 622Exception? exception = Volatile.Read(ref _sendException); 667Exception exception = (shutdownByApp, closedRemotely) switch 736catch (Exception ex)
System.Net.Requests (58)
src\runtime\src\libraries\Common\src\System\Net\ExceptionCheck.cs (1)
8internal static bool IsFatal(Exception exception) => exception is OutOfMemoryException;
src\runtime\src\libraries\Common\src\System\NotImplemented.cs (2)
14internal static Exception ByDesign => new NotImplementedException(); 19internal static Exception ByDesignWithMessage(string message)
System\Net\CommandStream.cs (10)
45internal virtual void Abort(Exception e) 133protected static Exception GenerateException(string message, WebExceptionStatus status, Exception? innerException) 142protected static Exception GenerateException(FtpStatusCode code, string? statusDescription, Exception? innerException) 170catch (Exception e) 315Exception exception; 429catch (Exception e) 458catch (Exception e) 542catch (Exception e)
System\Net\FileWebRequest.cs (2)
154catch (Exception e) { throw new WebException(e.Message, e); } 212catch (Exception e)
System\Net\FileWebResponse.cs (1)
43catch (Exception e)
System\Net\FtpControlStream.cs (5)
119catch (Exception e) 141catch (Exception e) 156catch (Exception e) 414catch (Exception e) 1139catch (Exception e)
System\Net\FtpDataStream.cs (3)
90catch (Exception exception) 263catch (Exception exception) 295if (result is Exception e)
System\Net\FtpWebRequest.cs (24)
208private Exception? _exception; 582catch (Exception exception) 666catch (Exception exception) 698catch (Exception exception) 751catch (Exception exception) 790catch (Exception exception) 830catch (Exception exception) 890catch (Exception e) 927catch (Exception exception) 933private static Exception TranslateConnectException(Exception e) 960catch (Exception e) 979catch (Exception e) 1003catch (Exception exception) 1057private bool AttemptedRecovery(Exception e) 1089private void SetException(Exception exception) 1155Exception? exception = obj as Exception; 1183catch (Exception exception) 1205Exception? exception = obj as Exception; 1247catch (Exception e) 1293catch (Exception exception) 1451catch (Exception exception)
System\Net\HttpWebRequest.cs (4)
1058catch (Exception ex) 1121catch (Exception ex) 1184catch (Exception ex) 1457catch (Exception ex)
System\Net\TimerThread.cs (2)
422catch (Exception exception) 586catch (Exception exception)
System\Net\WebException.cs (4)
31public WebException(string? message, Exception? innerException) : 42Exception? innerException, 80internal static Exception CreateCompatibleException(Exception exception)
System.Net.Security (50)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (2)
48internal static Exception CreateOpenSslCryptographicException() 95Exception e = CreateOpenSslCryptographicException();
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (7)
682Exception? handshakeException = null; 729if (errorCode == Ssl.SslErrorCode.SSL_ERROR_SSL && context.CertificateValidationException is Exception ex) 739Exception? innerError = GetSslError(retVal, errorCode); 1084catch (Exception ex) 1303private static Exception? GetSslError(int result, Ssl.SslErrorCode retVal) 1305Exception? innerError; 1377public SslException(string? inputMessage, Exception? ex)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (2)
451public Exception? CertificateValidationException; 504catch (Exception exc)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
153Exception e = CreateOpenSslCryptographicException();
src\runtime\src\libraries\Common\src\System\Net\ExceptionCheck.cs (1)
8internal static bool IsFatal(Exception exception) => exception is OutOfMemoryException;
src\runtime\src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (1)
28catch (Exception ex)
src\runtime\src\libraries\Common\src\System\Net\Security\SSPIHandleCache.cs (1)
32catch (Exception e)
src\runtime\src\libraries\Common\src\System\NotImplemented.cs (2)
14internal static Exception ByDesign => new NotImplementedException(); 19internal static Exception ByDesignWithMessage(string message)
System\Net\CertificateValidationPal.cs (1)
72catch (Exception exception)
System\Net\NegotiateAuthenticationPal.Unix.cs (7)
43catch (Exception ex) when (ex is Interop.NetSecurityNative.GssApiException or TypeInitializationException) 67catch (Exception ex) when (ex is Interop.NetSecurityNative.GssApiException or TypeInitializationException) 139catch (Exception ex) 504catch (Exception ex) when (ex is not Interop.NetSecurityNative.GssApiException) 659catch (Exception ex) 731catch (Exception ex) 777catch (Exception e) when (e is EntryPointNotFoundException || e is DllNotFoundException || e is TypeInitializationException)
System\Net\Security\AuthenticatedStream.cs (1)
79catch (Exception exc)
System\Net\Security\NegotiateStream.cs (7)
446catch (Exception e) when (!(e is IOException || e is OperationCanceledException)) 560catch (Exception e) when (!(e is IOException || e is OperationCanceledException)) 709private void SetFailed(Exception e) 746catch (Exception e) 774Exception exception = statusCode switch 839Exception exception = statusCode switch 927private async Task SendAuthResetSignalAndThrowAsync<TIOAdapter>(byte[] message, Exception exception, CancellationToken cancellationToken)
System\Net\Security\NetSecurityTelemetry.cs (1)
331public static void StopActivity(Activity? activity, Exception? exception, SslStream stream)
System\Net\Security\SslStream.IO.cs (6)
45private void SetException(Exception e) 122Exception? exception = null; 140catch (Exception ex) 655internal static Exception CreateCertificateValidationException(SslAuthenticationOptions options, SslPolicyErrors sslPolicyErrors, X509ChainStatusFlags chainStatus) 988catch (Exception e) 1036catch (Exception e)
System\Net\Security\SslStream.Protocol.cs (1)
1519internal Exception? GetException()
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
376catch (Exception ex)
System\Net\Security\SslStreamPal.Unix.cs (4)
15public static Exception GetException(SecurityStatusPal status) 74catch (Exception ex) 108catch (Exception ex) 229catch (Exception exc) when (exc is not ArgumentException)
System\Net\SecurityStatusPal.cs (2)
9public readonly Exception? Exception; 11public SecurityStatusPal(SecurityStatusPalErrorCode errorCode, Exception? exception = null)
System\Security\Authentication\AuthenticationException.cs (2)
22public AuthenticationException(string? message, Exception? innerException) : base(message, innerException) { } 46public InvalidCredentialException(string? message, Exception? innerException) : base(message, innerException) { }
System.Net.Sockets (43)
src\runtime\src\libraries\Common\src\System\Net\ExceptionCheck.cs (1)
8internal static bool IsFatal(Exception exception) => exception is OutOfMemoryException;
System\Net\Sockets\NetworkStream.cs (13)
242catch (Exception exception) when (!(exception is OutOfMemoryException)) 267catch (Exception exception) when (!(exception is OutOfMemoryException)) 314catch (Exception exception) when (!(exception is OutOfMemoryException)) 340catch (Exception exception) when (!(exception is OutOfMemoryException)) 454catch (Exception exception) when (!(exception is OutOfMemoryException)) 479catch (Exception exception) when (!(exception is OutOfMemoryException)) 521catch (Exception exception) when (!(exception is OutOfMemoryException)) 542catch (Exception exception) when (!(exception is OutOfMemoryException)) 580catch (Exception exception) when (!(exception is OutOfMemoryException)) 603catch (Exception exception) when (!(exception is OutOfMemoryException)) 640catch (Exception exception) when (!(exception is OutOfMemoryException)) 662catch (Exception exception) when (!(exception is OutOfMemoryException)) 719private static IOException WrapException(string resourceFormatString, Exception innerException)
System\Net\Sockets\SafeSocketHandle.cs (2)
125catch (Exception exception) when (!ExceptionCheck.IsFatal(exception)) 156catch (Exception exception)
System\Net\Sockets\Socket.cs (8)
966catch (Exception ex) when (CanProceedWithMultiConnect && !ExceptionCheck.IsFatal(ex)) 1069catch (Exception ex) 2873catch (Exception ex) 2959catch (Exception ex) 2976catch (Exception ex) 3253catch (Exception) 3373catch (Exception ex) 3412catch (Exception exception) when (!ExceptionCheck.IsFatal(exception)) { }
System\Net\Sockets\Socket.Tasks.cs (7)
171Exception? lastException = null; 190catch (Exception ex) when (CanProceedWithMultiConnect && ex is not OperationCanceledException) 738var ex = ExceptionDispatchInfo.SetCurrentStackTrace(new NotSupportedException(SR.net_notconnected)); 901private static Exception GetException(SocketError error, bool wrapExceptionsInIOExceptions = false) 903Exception e = ExceptionDispatchInfo.SetCurrentStackTrace(new SocketException((int)error)); 1368private Exception CreateException(SocketError error, bool forAsyncThrow = true) 1370Exception e = new SocketException((int)error);
System\Net\Sockets\SocketAsyncEngine.Unix.cs (1)
235catch (Exception e)
System\Net\Sockets\SocketAsyncEventArgs.cs (6)
56private Exception? _connectByNameError; 293public Exception? ConnectByNameError 439internal void SetResults(Exception exception, int bytesTransferred, SocketFlags flags) 743Exception? caughtException = null; 842catch (Exception exc) 951public void SetResults(Socket? socket, SocketError socketError, int bytesTransferred, SocketFlags flags, Exception? exception)
System\Net\Sockets\SocketAsyncEventArgs.Unix.cs (1)
263catch (Exception exc)
System\Net\Sockets\SocketPal.Unix.cs (1)
2138catch (Exception exc)
System\Net\Sockets\UDPClient.cs (3)
709Exception? lastex = null; 763catch (Exception ex) 774catch (Exception ex)
System.Net.WebClient (47)
src\runtime\src\libraries\Common\src\System\Threading\Tasks\RendezvousAwaitable.cs (1)
94public void SetException(Exception exception)
System\Net\WebClient.cs (46)
308catch (Exception e) when (!(e is OutOfMemoryException)) 338catch (Exception e) when (!(e is OutOfMemoryException)) 373catch (Exception e) when (!(e is OutOfMemoryException)) 411catch (Exception e) when (!(e is OutOfMemoryException)) 463catch (Exception e) when (!(e is OutOfMemoryException)) 576catch (Exception e) 643catch (Exception e) when (!(e is OutOfMemoryException)) 708catch (Exception exception) when (!(exception is OutOfMemoryException)) { } 858catch (Exception e) when (!(e is OutOfMemoryException)) 869AsyncOperation asyncOp, Action<byte[]?, Exception?, AsyncOperation> completionDelegate) 874Exception? exception = null; 928catch (Exception e) when (!(e is OutOfMemoryException)) 996catch (Exception e) when (!(e is OutOfMemoryException)) 1007AsyncOperation asyncOp, Action<byte[]?, Exception?, AsyncOperation> completionDelegate) 1013Exception? exception = null; 1071catch (Exception e) when (!(e is OutOfMemoryException)) 1100catch (Exception e) when (e is NotImplementedException || e is NotSupportedException) // some types do this 1204Exception? exception = null; 1210catch (Exception e) when (!(e is OutOfMemoryException)) 1218catch (Exception e) when (!(e is OutOfMemoryException)) 1245Exception? exception = null; 1251catch (Exception e) when (!(e is OutOfMemoryException)) 1259catch (Exception e) when (!(e is OutOfMemoryException)) 1266private void DownloadStringAsyncCallback(byte[]? returnBytes, Exception? exception, object state) 1277catch (Exception e) when (!(e is OutOfMemoryException)) 1300catch (Exception e) when (!(e is OutOfMemoryException)) 1306private void DownloadDataAsyncCallback(byte[]? returnBytes, Exception? exception, object state) 1326catch (Exception e) when (!(e is OutOfMemoryException)) 1332private void DownloadFileAsyncCallback(byte[]? returnBytes, Exception? exception, object state) 1355catch (Exception e) when (!(e is OutOfMemoryException)) 1394catch (Exception e) when (!(e is OutOfMemoryException)) 1404catch (Exception e) when (!(e is OutOfMemoryException)) 1443catch (Exception e) when (!(e is OutOfMemoryException)) 1479catch (Exception e) when (!(e is OutOfMemoryException)) 1519catch (Exception e) when (!(e is OutOfMemoryException)) 1526private static Exception GetExceptionToPropagate(Exception e) => 1914internal OpenReadCompletedEventArgs(Stream? result, Exception? exception, bool cancelled, object? userToken) : base(exception, cancelled, userToken) 1933internal OpenWriteCompletedEventArgs(Stream? result, Exception? exception, bool cancelled, object? userToken) : base(exception, cancelled, userToken) 1952internal DownloadStringCompletedEventArgs(string? result, Exception? exception, bool cancelled, object? userToken) : base(exception, cancelled, userToken) 1972internal DownloadDataCompletedEventArgs(byte[]? result, Exception? exception, bool cancelled, object? userToken) : base(exception, cancelled, userToken) 1991internal UploadStringCompletedEventArgs(string? result, Exception? exception, bool cancelled, object? userToken) : base(exception, cancelled, userToken) 2010internal UploadDataCompletedEventArgs(byte[]? result, Exception? exception, bool cancelled, object? userToken) : base(exception, cancelled, userToken) 2029internal UploadFileCompletedEventArgs(byte[]? result, Exception? exception, bool cancelled, object? userToken) : base(exception, cancelled, userToken) 2048internal UploadValuesCompletedEventArgs(byte[]? result, Exception? exception, bool cancelled, object? userToken) : base(exception, cancelled, userToken) 2104public Exception? Error { get { return null; } }
System.Net.WebSockets (34)
src\runtime\src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (4)
191catch (Exception) 208catch (Exception) 305catch (Exception e) // Could not load the ZLib dll 362catch (Exception e) // Could not load the ZLib dll
System\Net\WebSockets\Compression\WebSocketDeflater.cs (1)
216catch (Exception ex)
System\Net\WebSockets\Compression\WebSocketInflater.cs (1)
262catch (Exception ex)
System\Net\WebSockets\ManagedWebSocket.cs (14)
321catch (Exception exc) 363catch (Exception exc) 380catch (Exception exc) 397catch (Exception exc) 537catch (Exception exc) 574catch (Exception exc) 614catch (Exception exc) 1004catch (Exception exc) 1015Exception inner = exc; 1288WebSocketCloseStatus closeStatus, WebSocketError error, string? errorMessage = null, Exception? innerException = null) 1528catch (Exception exc) 1740private static OperationCanceledException CreateOperationCanceledException(Exception innerException, CancellationToken cancellationToken = default(CancellationToken)) 1754Exception? keepAliveException = null; 1911Exception e = task.Exception!.InnerException!;
System\Net\WebSockets\ManagedWebSocket.KeepAlive.cs (5)
81Exception exc = ExceptionDispatchInfo.SetCurrentStackTrace( 105catch (Exception e) 141internal Exception? Exception { get; private set; } 197internal void OnKeepAliveFaulted(Exception exc) 205internal void OnKeepAliveFaultedCore(Exception exc)
System\Net\WebSockets\NetEventSource.WebSockets.cs (2)
83public static void TraceErrorMsg(object? obj, Exception exception, [CallerMemberName] string? memberName = null) 87public static void TraceException(object? obj, Exception exception, [CallerMemberName] string? memberName = null)
System\Net\WebSockets\WebSocketException.cs (6)
32public WebSocketException(WebSocketError error, Exception? innerException) 37public WebSocketException(WebSocketError error, string? message, Exception? innerException) 57public WebSocketException(int nativeError, Exception? innerException) 76public WebSocketException(WebSocketError error, int nativeError, Exception? innerException) 81public WebSocketException(WebSocketError error, int nativeError, string? message, Exception? innerException) 93public WebSocketException(string? message, Exception? innerException)
System\Net\WebSockets\WebSocketStateHelper.cs (1)
21internal static void ThrowIfInvalidState(WebSocketState currentState, bool isDisposed, Exception? innerException, ManagedWebSocketStates validStates)
System.Net.WebSockets.Client (3)
System\Net\WebSockets\BrowserWebSockets\BrowserWebSocket.cs (3)
309catch (Exception) 358catch (Exception) 578catch (Exception ex)
System.Private.CoreLib (565)
Internal\Reflection\Core\AssemblyBinder.cs (1)
33public abstract bool Bind(RuntimeAssemblyName refName, bool cacheMissedLookups, out AssemblyBindResult result, out Exception exception);
Internal\Reflection\Core\Execution\ExecutionEnvironment.cs (3)
87public abstract Exception CreateMissingMetadataException(Type pertainant); 88public abstract Exception CreateNonInvokabilityException(MemberInfo pertainant); 93internal MethodBaseInvoker GetMethodInvoker(RuntimeTypeInfo declaringType, QMethodDefinition methodHandle, RuntimeTypeInfo[] genericMethodTypeArguments, MemberInfo exceptionPertainant, out Exception exception)
Internal\Runtime\MethodTable.Runtime.cs (1)
20internal Exception GetClasslibException(ExceptionIDs id)
Internal\Runtime\TypeLoaderExceptionHelper.cs (10)
22public static Exception CreateBadImageFormatException(ExceptionStringID id) 27public static Exception CreateTypeLoadException(ExceptionStringID id, string typeName, string moduleName) 32public static Exception CreateTypeLoadException(ExceptionStringID id, string typeName, string moduleName, string messageArg) 37public static Exception CreateMissingFieldException(ExceptionStringID id, string fieldName) 42public static Exception CreateMissingMethodException(ExceptionStringID id, string methodName) 47public static Exception CreateFileNotFoundException(ExceptionStringID id, string fileName) 52public static Exception CreateInvalidProgramException(ExceptionStringID id) 57public static Exception CreateInvalidProgramException(ExceptionStringID id, string methodName) 62public static Exception CreateMarshalDirectiveException(ExceptionStringID id) 67public static Exception CreateAmbiguousMatchException(ExceptionStringID id)
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\__Finalizer.cs (1)
68catch (Exception ex) when (ExceptionHandling.IsHandledByGlobalHandler(ex))
src\runtime\src\coreclr\nativeaot\Runtime.Base\src\System\Runtime\ExceptionHandling.cs (7)
296internal static Exception GetClasslibException(ExceptionIDs id, IntPtr address) 305Exception? e = null; 308e = ((delegate*<ExceptionIDs, Exception>)pGetRuntimeExceptionFunction)(id); 349internal static Exception GetClasslibExceptionFromEEType(ExceptionIDs id, MethodTable* pEEType) 360Exception? e = null; 363e = ((delegate*<ExceptionIDs, Exception>)pGetRuntimeExceptionFunction)(id); 602Exception? exceptionToThrow = null;
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (14)
121public void SetException(Exception ex) 127Unsafe.As<byte, Exception>(ref Unsafe.Add(ref data, (DataOffset - PointerSize) + index * PointerSize)) = ex; 809catch (Exception ex) 901catch (Exception ex) 1016catch (Exception ex) 1078private static unsafe Continuation? UnwindToPossibleHandler(Continuation? continuation, Exception ex, ref uint unwindedFrames) 1088System.Exception.AppendExceptionStackFrame(ex, ip, 0); 1137catch (Exception ex) 1239private static Task<T?> TaskFromException<T>(Exception ex) 1250private static Task TaskFromException(Exception ex) 1262private static ValueTask ValueTaskFromException(Exception ex) 1269private static ValueTask<T?> ValueTaskFromException<T>(Exception ex) 1586public static void UnwindRuntimeAsyncMethodUnhandledException(ref AsyncDispatcherInfo info, AsyncInstrumentation.Flags flags, Exception ex, Continuation curContinuation, uint unwindedFrames) 1716public static void AsyncMethodUnhandledException(Task? task, Exception ex, Continuation curContinuation)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeAsyncTaskContinuation.cs (1)
83catch (Exception ex)
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcFsStat.TryReadStatusFile.cs (1)
170catch (Exception ex) when (ex is IOException || ex.InnerException is IOException)
src\runtime\src\libraries\Common\src\Interop\Linux\procfs\Interop.ProcMountInfo.cs (1)
65catch (Exception e)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
99Exception e = Interop.GetExceptionForIoErrno(Sys.GetLastErrorInfo(), path, isDirError); 114internal static Exception GetExceptionForIoErrno(ErrorInfo errorInfo, string? path = null, bool isDirError = false) 143Exception inner = GetIOException(errorInfo); 183internal static Exception GetIOException(Interop.ErrorInfo errorInfo, string? path = null)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (1)
33catch (Exception e)
src\runtime\src\libraries\Common\src\System\NotImplemented.cs (2)
14internal static Exception ByDesign => new NotImplementedException(); 19internal static Exception ByDesignWithMessage(string message)
src\runtime\src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (4)
90catch (Exception e) 125catch (Exception e) 203catch (Exception e) 271catch (Exception e)
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.ThreadPoolValueTaskSource.cs (2)
85Exception? exception = null; 115catch (Exception e)
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.Unix.cs (6)
111Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException) 129if (createOpenException?.Invoke(error, flags, path) is Exception ex) 236Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException = null) 242Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException = null) 249Func<Interop.ErrorInfo, Interop.Sys.OpenFlags, string, Exception?>? createOpenException = null) 280catch (Exception)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AccessViolationException.cs (1)
29public AccessViolationException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (32)
26private readonly Exception[] _innerExceptions; // Complete set of exceptions. 27private ReadOnlyCollection<Exception>? _rocView; // separate from _innerExceptions to enable trimming if InnerExceptions isn't used 56public AggregateException(string? message, Exception innerException) 73public AggregateException(IEnumerable<Exception> innerExceptions) : 87public AggregateException(params Exception[] innerExceptions) : 102public AggregateException(string? message, IEnumerable<Exception> innerExceptions) 103: this(message, new List<Exception>(innerExceptions ?? throw new ArgumentNullException(nameof(innerExceptions))).ToArray(), cloneExceptions: false) 117public AggregateException(string? message, params Exception[] innerExceptions) : 122private AggregateException(string? message, Exception[] innerExceptions, bool cloneExceptions) : 125_innerExceptions = cloneExceptions ? new Exception[innerExceptions.Length] : innerExceptions; 170_innerExceptions = new Exception[innerExceptionInfos.Count]; 193_innerExceptions = info.GetValue("InnerExceptions", typeof(Exception[])) as Exception[] ?? // Do not rename (binary serialization); 212info.AddValue("InnerExceptions", _innerExceptions, typeof(Exception[])); // Do not rename (binary serialization) 216/// Returns the <see cref="Exception"/> that is the root cause of this exception. 222public override Exception GetBaseException() 226Exception? back = this; 237/// Gets a read-only collection of the <see cref="Exception"/> instances that caused the 240public ReadOnlyCollection<Exception> InnerExceptions => _rocView ??= new ReadOnlyCollection<Exception>(_innerExceptions); 244/// Invokes a handler on each <see cref="Exception"/> contained by this <see 248/// argument the <see cref="Exception"/> to be processed and returns a Boolean to indicate 252/// <see cref="Exception"/> was handled. After all invocations, if any exceptions went 262public void Handle(Func<Exception, bool> predicate) 266List<Exception>? unhandledExceptions = null; 273unhandledExceptions ??= new List<Exception>(); 287/// Flattens the inner instances of <see cref="AggregateException"/> by expanding its contained <see cref="Exception"/> instances 301List<Exception> flattenedExceptions = new List<Exception>(); 311ReadOnlyCollection<Exception> currentInnerExceptions = exceptionsToFlatten[nDequeueIndex++].InnerExceptions; 315Exception currentInnerException = currentInnerExceptions[i]; 397internal Exception[] InternalInnerExceptions => _innerExceptions;
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppContext.cs (3)
93RuntimeExceptionHelpers.SerializeCrashInfo(System.Runtime.RhFailFastReason.UnhandledException, (e as Exception)?.Message, e as Exception); 111private static void OnFirstChanceException(Exception e, object? sender)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppDomainUnloadedException.cs (1)
26public AppDomainUnloadedException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ApplicationException.cs (2)
14/// You should derive custom exceptions from the <see cref="Exception" /> class rather than the <see cref="ApplicationException" /> class. 41public ApplicationException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArgumentException.cs (2)
37public ArgumentException(string? message, Exception? innerException) 43public ArgumentException(string? message, string? paramName, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArgumentNullException.cs (1)
33public ArgumentNullException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArgumentOutOfRangeException.cs (1)
42public ArgumentOutOfRangeException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArithmeticException.cs (1)
36public ArithmeticException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Array.cs (4)
1264catch (Exception e) 1358catch (Exception e) 2710catch (Exception e) 2923catch (Exception e)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArrayTypeMismatchException.cs (1)
36public ArrayTypeMismatchException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\BadImageFormatException.cs (2)
34public BadImageFormatException(string? message, Exception? inner) 46public BadImageFormatException(string? message, string? fileName, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\CannotUnloadAppDomainException.cs (1)
26public CannotUnloadAppDomainException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ArraySortHelper.cs (9)
32catch (Exception e) 45catch (Exception e) 67catch (Exception e) 318catch (Exception e) 340catch (Exception e) 627catch (Exception e) 870catch (Exception e) 1162catch (Exception e) 1365catch (Exception e)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\KeyNotFoundException.cs (1)
26public KeyNotFoundException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ComponentModel\Win32Exception.cs (4)
56public Win32Exception(string? message, Exception? innerException) : base(message, innerException) 82/// Returns a string that contains the <see cref="NativeErrorCode"/>, or <see cref="Exception.HResult"/>, or both. 84/// <returns>A string that represents the <see cref="NativeErrorCode"/>, or <see cref="Exception.HResult"/>, or both.</returns> 113Exception? innerException = InnerException;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Context.cs (1)
27public ContextMarshalException(string? message, Exception? inner) : base(message, inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DataMisalignedException.cs (1)
29public DataMisalignedException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\ContractException.cs (1)
29public ContractException(ContractFailureKind kind, string? failure, string? userMessage, string? condition, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\ContractFailedEventArgs.cs (4)
11private readonly Exception? _originalException; 15internal Exception? thrownDuringHandler; 17public ContractFailedEventArgs(ContractFailureKind failureKind, string? message, string? condition, Exception? originalException) 29public Exception? OriginalException => _originalException;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\Contracts.cs (5)
330public static void Requires<TException>(bool condition) where TException : Exception 346public static void Requires<TException>(bool condition, string? userMessage) where TException : Exception 400public static void EnsuresOnThrow<TException>(bool condition) where TException : Exception 418public static void EnsuresOnThrow<TException>(bool condition, string? userMessage) where TException : Exception 651private static void ReportFailure(ContractFailureKind failureKind, string? userMessage, string? conditionText, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Debugger.cs (1)
27public static void BreakForUserUnhandledException(Exception exception)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (4)
81public StackTrace(Exception e) 91public StackTrace(Exception e, bool fNeedFileInfo) 102public StackTrace(Exception e, int skipFrames) 115public StackTrace(Exception e, int skipFrames, bool fNeedFileInfo)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (12)
247private Exception? m_constructionException; // If there was an exception construction, this is it 512public Exception? ConstructionException => m_constructionException; 1429catch (Exception ex) 1730catch (Exception e) 2084catch (Exception ex) 2201Exception? lastThrownException = null; 2212catch (Exception e) 2420private void ThrowEventSourceException(string? eventName, Exception? innerEx = null) 2823catch (Exception e) 3049Exception? exception = null; // exception that might get raised during validation b/c we couldn't/didn't recover from a previous error 3325catch (Exception e) 4003catch (Exception)
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) { } 40internal EventSourceException(Exception? innerException) :
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\IncrementingPollingCounter.cs (1)
58catch (Exception ex)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\PollingCounter.cs (1)
54catch (Exception ex)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\RuntimeEventSource.cs (1)
98_exceptionCounter ??= new IncrementingPollingCounter("exception-count", this, () => Exception.GetExceptionCount()) { DisplayName = "Exception Count", DisplayRateTimeScale = new TimeSpan(0, 0, 1) };
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (2)
675catch (Exception ex) 689catch (Exception ex)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\UnreachableException.cs (1)
36public UnreachableException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DivideByZeroException.cs (1)
29public DivideByZeroException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DllNotFoundException.cs (1)
29public DllNotFoundException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DuplicateWaitObjectException.cs (1)
37public DuplicateWaitObjectException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\EntryPointNotFoundException.cs (1)
29public EntryPointNotFoundException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.GetFolderPathCore.Unix.cs (2)
70catch (Exception exc) 241catch (Exception exc)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Exception.cs (8)
36public Exception(string? message, Exception? innerException) 51_innerException = (Exception?)(info.GetValue("InnerException", typeof(Exception))); // Do not rename (binary serialization) 69public virtual Exception GetBaseException() 71Exception? inner = InnerException; 72Exception back = this; 83public Exception? InnerException => _innerException; 113info.AddValue("InnerException", _innerException, typeof(Exception)); // Do not rename (binary serialization)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ExecutionEngineException.cs (1)
29public ExecutionEngineException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\FieldAccessException.cs (1)
29public FieldAccessException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\FormatException.cs (1)
29public FormatException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (1)
462catch (Exception e)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Nls.cs (2)
79catch (Exception) 106catch (Exception)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (3)
363catch (Exception) 378catch (Exception) 399catch (Exception)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CultureNotFoundException.cs (3)
32public CultureNotFoundException(string? message, Exception? innerException) 43public CultureNotFoundException(string? message, string? invalidCultureName, Exception? innerException) 49public CultureNotFoundException(string? message, int invalidCultureId, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (1)
5302private static Exception GetDateTimeParseException(scoped ref DateTimeResult result)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IndexOutOfRangeException.cs (1)
28public IndexOutOfRangeException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\InsufficientExecutionStackException.cs (1)
25public InsufficientExecutionStackException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\InsufficientMemoryException.cs (1)
32public InsufficientMemoryException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\InvalidCastException.cs (1)
29public InvalidCastException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\InvalidOperationException.cs (1)
29public InvalidOperationException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\InvalidProgramException.cs (1)
29public InvalidProgramException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\InvalidTimeZoneException.cs (1)
23public InvalidTimeZoneException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BinaryWriter.cs (1)
105catch (Exception exc)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (3)
458private int ReadFromBuffer(byte[] buffer, int offset, int count, out Exception? error) 465catch (Exception ex) 595Exception? error;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\DirectoryNotFoundException.cs (2)
32public DirectoryNotFoundException(string? message, Exception? innerException) 43public DirectoryNotFoundException(string? message, string? directoryPath, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\EndOfStreamException.cs (1)
26public EndOfStreamException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
1371catch (Exception e)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileLoadException.cs (2)
26public FileLoadException(string? message, Exception? inner) 38public FileLoadException(string? message, string? fileName, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (2)
28public FileNotFoundException(string? message, Exception? innerException) 41public FileNotFoundException(string? message, string? fileName, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\FileSystem.Unix.cs (4)
54private static Exception? CreateOpenExceptionForCopyFile(Interop.ErrorInfo error, Interop.Sys.OpenFlags flags, string path) 480Exception? firstException = null; 506catch (Exception ex) 512catch (Exception exc)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\InvalidDataException.cs (7)
16/// <remarks>This constructor initializes the <see cref="Exception.Message" /> property of the new instance to a system-supplied message that describes the error, such as "An invalid argument was specified." This message is localized based on the current system culture.</remarks> 24/// <remarks>This constructor initializes the <see cref="Exception.Message" /> property of the new instance to a system-supplied message that describes the error, such as "An invalid argument was specified." This message is localized based on the current system culture.</remarks> 33/// <remarks>This constructor initializes the <see cref="Exception.Message" /> property of the new instance using the value of the <paramref name="message" /> parameter. The content of the <paramref name="message" /> parameter is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture. 34/// An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the <see cref="Exception.InnerException" /> property. The <see cref="Exception.InnerException" /> property returns the same value that is passed into the constructor, or <see langword="null" /> if the <see cref="Exception.InnerException" /> property does not supply the inner exception value to the constructor.</remarks> 35public InvalidDataException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\IOException.cs (1)
32public IOException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (6)
171catch (Exception ex) 382catch (Exception exception) 418catch (Exception exception) 503catch (Exception ex) 676catch (Exception exception) 707catch (Exception exception)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (1)
105catch (Exception ex) when (ex is ArgumentException or IOException or UnauthorizedAccessException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PathTooLongException.cs (1)
26public PathTooLongException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\SharedMemoryManager.Unix.cs (3)
348catch (Exception) 526catch (Exception) 555catch (Exception)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (1)
128catch (Exception e) when (!disposing && FileStreamHelpers.IsIoRelatedException(e))
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\FileStreamHelpers.cs (1)
46internal static bool IsIoRelatedException(Exception e) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (1)
181catch (Exception exc)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (1)
80catch (Exception exc)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (5)
244catch (Exception ex) 434catch (Exception ex) 472catch (Exception ex) 711catch (Exception ex) 744catch (Exception ex)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IObserver.cs (1)
9void OnError(Exception error);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Lazy.cs (2)
66internal LazyHelper(LazyThreadSafetyMode mode, Exception exception) 324catch (Exception exception)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemberAccessException.cs (1)
41public MemberAccessException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MethodAccessException.cs (1)
29public MethodAccessException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MissingFieldException.cs (1)
26public MissingFieldException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MissingMemberException.cs (1)
26public MissingMemberException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MissingMethodException.cs (1)
29public MissingMethodException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MulticastNotSupportedException.cs (1)
30public MulticastNotSupportedException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\NotFiniteNumberException.cs (2)
43public NotFiniteNumberException(string? message, Exception? innerException) 49public NotFiniteNumberException(string? message, double offendingNumber, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\NotImplementedException.cs (1)
27public NotImplementedException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\NotSupportedException.cs (1)
30public NotSupportedException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\NullReferenceException.cs (1)
29public NullReferenceException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ObjectDisposedException.cs (1)
38public ObjectDisposedException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\OperationCanceledException.cs (2)
39public OperationCanceledException(string? message, Exception? innerException) 58public OperationCanceledException(string? message, Exception? innerException, CancellationToken token)
src\runtime\src\libraries\System.Private.CoreLib\src\System\OutOfMemoryException.cs (1)
28public OutOfMemoryException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\OverflowException.cs (1)
29public OverflowException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\PlatformNotSupportedException.cs (1)
29public PlatformNotSupportedException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\RankException.cs (1)
29public RankException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\AmbiguousMatchException.cs (1)
25public AmbiguousMatchException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\CustomAttributeFormatException.cs (1)
24public CustomAttributeFormatException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (2)
104if (!excType.IsSubclassOf(typeof(Exception)) && excType != typeof(Exception))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\InvalidFilterCriteriaException.cs (1)
24public InvalidFilterCriteriaException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ReflectionTypeLoadException.cs (8)
15public ReflectionTypeLoadException(Type?[]? classes, Exception?[]? exceptions) : 20public ReflectionTypeLoadException(Type?[]? classes, Exception?[]? exceptions, string? message) 33LoaderExceptions = (Exception?[]?)info.GetValue("Exceptions", typeof(Exception[])) ?? []; 42info.AddValue("Exceptions", LoaderExceptions, typeof(Exception[])); 47public Exception?[] LoaderExceptions { get; } 57Exception?[] exceptions = LoaderExceptions; 64foreach (Exception? e in exceptions)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TargetException.cs (1)
24public TargetException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TargetInvocationException.cs (2)
13public TargetInvocationException(Exception? inner) 19public TargetInvocationException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\TargetParameterCountException.cs (1)
25public TargetParameterCountException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\MissingManifestResourceException.cs (1)
27public MissingManifestResourceException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Resources\MissingSatelliteAssemblyException.cs (1)
38public MissingSatelliteAssemblyException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\AmbiguousImplementationException.cs (1)
25public AmbiguousImplementationException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilder.cs (2)
115/// <param name="exception">The <see cref="Exception"/> to use to fault the task.</param> 119public void SetException(Exception exception) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (6)
66catch (Exception e) 122catch (Exception e) 141catch (Exception e) 504/// <param name="exception">The <see cref="Exception"/> to use to fault the task.</param> 507public void SetException(Exception exception) => SetException(exception, ref m_task); 509internal static void SetException(Exception exception, ref Task<TResult>? taskField)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncValueTaskMethodBuilder.cs (1)
53public void SetException(Exception exception) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncValueTaskMethodBuilderT.cs (1)
60public void SetException(Exception exception) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncVoidMethodBuilder.cs (2)
111public void SetException(Exception exception) 157catch (Exception exc)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ContractHelper.cs (3)
33public static string? RaiseContractFailedEvent(ContractFailureKind failureKind, string? userMessage, string? conditionText, Exception? innerException) 55catch (Exception e) 88public static void TriggerFailure(ContractFailureKind kind, string? displayMessage, string? userMessage, string? conditionText, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilder.cs (1)
55public void SetException(Exception exception) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\PoolingAsyncValueTaskMethodBuilderT.cs (4)
65public void SetException(Exception exception) => 68internal static void SetException(Exception exception, [NotNull] ref StateMachineBox? boxFieldRef) 120catch (Exception e) 253public void SetException(Exception error) =>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\SwitchExpressionException.cs (2)
21public SwitchExpressionException(Exception? innerException) : 40public SwitchExpressionException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (4)
64/// <exception cref="Exception">The task completed in a Faulted state.</exception> 331/// <exception cref="Exception">The task completed in a Faulted state.</exception> 428/// <exception cref="Exception">The task completed in a Faulted state.</exception> 511/// <exception cref="Exception">The task completed in a Faulted state.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionDispatchInfo.cs (17)
18private readonly Exception _exception; 19private readonly Exception.DispatchState _dispatchState; 21private ExceptionDispatchInfo(Exception exception) 30public static ExceptionDispatchInfo Capture(Exception source) 38public Exception SourceException => _exception; 60public static void Throw(Exception source) => Capture(source).Throw(); 62/// <summary>Stores the current stack trace into the specified <see cref="Exception"/> instance.</summary> 63/// <param name="source">The unthrown <see cref="Exception"/> instance.</param> 68public static Exception SetCurrentStackTrace(Exception source) 78/// Stores the provided stack trace into the specified <see cref="Exception"/> instance. 80/// <param name="source">The unthrown <see cref="Exception"/> instance.</param> 82/// from the <see cref="Exception.StackTrace"/> property from the remote exception instance.</param> 87/// This method populates the <see cref="Exception.StackTrace"/> property from an arbitrary string value. 88/// The typical use case is the transmission of <see cref="Exception"/> objects across processes with high fidelity, 95public static Exception SetRemoteStackTrace(Exception source, string stackTrace)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionHandling.cs (3)
13private static Func<Exception, bool>? s_handler; 15internal static bool IsHandledByGlobalHandler(Exception ex) 36public static void SetUnhandledExceptionHandler(Func<Exception, bool> handler)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\ExceptionServices\FirstChanceExceptionEventArgs.cs (2)
9public FirstChanceExceptionEventArgs(Exception exception) 15public Exception Exception { get; }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\COMException.cs (2)
32public COMException(string? message, Exception? inner) 62Exception? innerException = InnerException;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
330catch (Exception ex)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ErrorWrapper.cs (1)
24public ErrorWrapper(Exception e)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ExternalException.cs (2)
29public ExternalException(string? message, Exception? inner) 61Exception? innerException = InnerException;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\InvalidComObjectException.cs (1)
31public InvalidComObjectException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\InvalidOleVariantTypeException.cs (1)
30public InvalidOleVariantTypeException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (14)
638/// Converts an HRESULT value to a corresponding CLR <see cref="Exception"/>. 642/// An <see cref="Exception"/> that represents the supplied HRESULT, or 645public static Exception? GetExceptionForHR(int errorCode) => GetExceptionForHR(errorCode, IntPtr.Zero); 648/// Converts an HRESULT value and optional error information into a CLR <see cref="Exception"/>. 653/// An <see cref="Exception"/> that represents the supplied HRESULT and error information, or 656public static Exception? GetExceptionForHR(int errorCode, IntPtr errorInfo) 667/// Converts an HRESULT value that is associated with a COM interface call into a CLR <see cref="Exception"/>, using extended COM error information if the provided COM object supports it. 673/// An <see cref="Exception"/> that represents the supplied HRESULT and COM context, or 676public static Exception? GetExceptionForHR(int errorCode, in Guid iid, IntPtr pUnk) 686private static unsafe Exception? GetExceptionForHRInternal(int errorCode, in Guid iid, IntPtr pUnk) 735private static Exception? GetExceptionForHRInternal(int errorCode, IntPtr errorInfo) 932/// <exception cref="Exception">An exception corresponding to <paramref name="errorCode"/> when it is a failure (negative HRESULT).</exception> 946/// <exception cref="Exception">An exception corresponding to <paramref name="errorCode"/> when it is a failure (negative HRESULT).</exception> 961/// <exception cref="Exception">An exception corresponding to <paramref name="errorCode"/> when it is a failure (negative HRESULT).</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.NoCom.cs (1)
16public static int GetHRForException(Exception? e)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MarshalDirectiveException.cs (1)
29public MarshalDirectiveException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ObjectiveC\ObjectiveCMarshal.PlatformNotSupported.cs (2)
35Exception exception, 171public static void SetMessageSendPendingException(Exception? exception)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ReferenceTrackerHost.cs (5)
43catch (Exception e) 70catch (Exception e) 97catch (Exception e) 113catch (Exception e) 129catch (Exception e)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeArrayRankMismatchException.cs (1)
30public SafeArrayRankMismatchException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SafeArrayTypeMismatchException.cs (1)
30public SafeArrayTypeMismatchException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\SEHException.cs (1)
28public SEHException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationException.cs (1)
29public SerializationException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Versioning\FrameworkName.cs (1)
171catch (Exception e)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\CryptographicException.cs (1)
31public CryptographicException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\SecurityException.cs (1)
34public SecurityException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\VerificationException.cs (1)
26public VerificationException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\StackOverflowException.cs (1)
28public StackOverflowException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (2)
145catch (Exception assemblyNameException) 177catch (Exception assemblyLoadException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\SystemException.cs (1)
26public SystemException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\DecoderExceptionFallback.cs (1)
91public DecoderFallbackException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderExceptionFallback.cs (1)
92public EncoderFallbackException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\AbandonedMutexException.cs (2)
29public AbandonedMutexException(string? message, Exception? inner) 49public AbandonedMutexException(string? message, Exception? inner, int location, WaitHandle? handle)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\CancellationTokenSource.cs (3)
745List<Exception>? exceptionList = null; 808catch (Exception ex) when (!throwOnFirstException) 811(exceptionList ??= new List<Exception>()).Add(ex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (3)
198catch (Exception ex) 283catch (Exception ex) 450catch (Exception ex)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\LockRecursionException.cs (1)
23public LockRecursionException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\PortableThreadPool.GateThread.cs (1)
271catch (Exception e)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\RegisteredWaitHandle.Portable.cs (1)
128catch (Exception) // Rollback state on exception
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SemaphoreFullException.cs (1)
22public SemaphoreFullException(string? message, Exception? innerException) : base(message ?? SR.Threading_SemaphoreFullException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\SynchronizationLockException.cs (1)
29public SynchronizationLockException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ConcurrentExclusiveSchedulerPair.cs (5)
215List<Exception>? exceptions = localThis.m_completionState.m_exceptions; 237cs.m_exceptions ??= new List<Exception>(faultedException.InnerExceptionCount); 300catch (Exception e) 327catch (Exception e) 479internal List<Exception>? m_exceptions;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs (2)
73public void SetException(Exception error) 363catch (Exception ex)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (21)
1243catch (Exception e) 1837catch (Exception e) 1887var eoAsException = exceptionObject as Exception; 1888var eoAsEnumerableException = exceptionObject as IEnumerable<Exception>; 1973Exception? canceledException = null; 2033Exception? exception = GetExceptions(includeTaskCanceledExceptions); 2044internal static void ThrowAsync(Exception exception, SynchronizationContext? targetContext) 2059catch (Exception postException) 2496catch (Exception exn) 2559private void HandleException(Exception unhandledException) 3099catch (Exception e) 3333catch (Exception e) 3521(exceptionObject is Exception) || (exceptionObject is IEnumerable<Exception>) || 5123List<Exception>? exceptions = null; 5309internal static void AddExceptionsForCompletedTask(ref List<Exception>? exceptions, Task t) 5319exceptions ??= new List<Exception>(ex.InnerExceptionCount); 5599public static Task FromException(Exception exception) 5613public static Task<TResult> FromException<TResult>(Exception exception) 7325public Exception? Exception => m_task.Exception;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task_T.cs (1)
1427public Exception? Exception => m_task.Exception;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCanceledException.cs (2)
51public TaskCanceledException(string? message, Exception? innerException) : base(message ?? SR.TaskCanceledException_ctor_DefaultMessage, innerException) 63public TaskCanceledException(string? message, Exception? innerException, CancellationToken token) : base(message ?? SR.TaskCanceledException_ctor_DefaultMessage, innerException, token)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource.cs (8)
72/// The <see cref="SetResult"/>, <see cref="SetException(Exception)"/>, <see cref="SetException(IEnumerable{Exception})"/>, 87public void SetException(Exception exception) 105public void SetException(IEnumerable<Exception> exceptions) 125public bool TrySetException(Exception exception) 155public bool TrySetException(IEnumerable<Exception> exceptions) 162var defensiveCopy = new List<Exception>(); 163foreach (Exception e in exceptions)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource_T.cs (8)
72/// The <see cref="SetResult"/>, <see cref="SetException(Exception)"/>, <see cref="SetException(IEnumerable{Exception})"/>, 87public void SetException(Exception exception) 105public void SetException(IEnumerable<Exception> exceptions) 125public bool TrySetException(Exception exception) 155public bool TrySetException(IEnumerable<Exception> exceptions) 162var defensiveCopy = new List<Exception>(); 163foreach (Exception e in exceptions)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (5)
240catch (Exception e) 499catch (Exception exception) 705catch (Exception exception) // we explicitly do not request handling of dangerous exceptions like AVs 745catch (Exception exception) 797catch (Exception exception)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskExceptionHolder.cs (8)
94exceptionObject is Exception || exceptionObject is IEnumerable<Exception> || 151if (exceptionObject is Exception exception) 165if (exceptionObject is IEnumerable<Exception> exColl) 170foreach (Exception exc in exColl) 252internal AggregateException CreateExceptionObject(bool calledFromFinalizer, Exception? includeThisException) 268Exception[] combinedExceptions = new Exception[exceptions.Count + 1];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory_T.cs (5)
500Exception? ex = null; 516catch (Exception e) { ex = e; } 676catch (Exception e) { promise.TrySetException(e); } // catch and log any scheduler exceptions 688catch (Exception e) { promise.TrySetException(e); } // catch and log any scheduler exceptions 1315catch (Exception exc)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskSchedulerException.cs (2)
48public TaskSchedulerException(Exception? innerException) 60public TaskSchedulerException(string? message, Exception? innerException) : base(message ?? SR.TaskSchedulerException_ctor_DefaultMessage, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\ValueTask.cs (6)
137public static ValueTask FromException(Exception exception) => 143public static ValueTask<TResult> FromException<TResult>(Exception exception) => 207catch (Exception exc) 261catch (Exception exc) 615catch (Exception exc) 668catch (Exception exc)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
102catch (Exception ex) when (ExceptionHandling.IsHandledByGlobalHandler(ex))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadExceptionEventArgs.cs (3)
8private readonly Exception m_exception; 10public ThreadExceptionEventArgs(Exception t) 15public Exception Exception
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadInterruptedException.cs (1)
28public ThreadInterruptedException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadPoolWorkQueue.cs (1)
1070catch (Exception ex) when (ExceptionHandling.IsHandledByGlobalHandler(ex))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadStartException.cs (1)
19internal ThreadStartException(Exception? reason)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadStateException.cs (1)
29public ThreadStateException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\WaitHandleCannotBeOpenedException.cs (1)
24public WaitHandleCannotBeOpenedException(string? message, Exception? innerException) : base(message ?? SR.Threading_WaitHandleCannotBeOpenedException, innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (5)
386internal static Exception CreateEndOfFileException() => 402internal static void ThrowInvalidOperationException(ExceptionResource resource, Exception e) 486internal static void ThrowAggregateException(List<Exception> exceptions) 657Exception? ex = Marshal.GetExceptionForHR(hr); 711private static Exception GetArraySegmentCtorValidationFailedException(Array? array, int offset, int count)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeoutException.cs (1)
29public TimeoutException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.cs (5)
497Exception? e; 539private static TimeZoneInfoResult TryFindSystemTimeZoneById(string id, out TimeZoneInfo? timeZone, out Exception? e) 1158private static TimeZoneInfoResult TryGetTimeZone(string id, bool dstDisabled, out TimeZoneInfo? value, out Exception? e, CachedData cachedData, bool alwaysFallbackToLocalMachine = false) 1213private static TimeZoneInfoResult TryGetTimeZoneUsingId(string id, bool dstDisabled, out TimeZoneInfo? value, out Exception? e, CachedData cachedData, bool alwaysFallbackToLocalMachine) 1278private static TimeZoneInfoResult TryGetTimeZoneFromLocalMachine(string id, bool dstDisabled, out TimeZoneInfo? value, out Exception? e, CachedData cachedData)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.cs (2)
334private static TimeZoneInfoResult TryGetTimeZoneFromLocalMachine(string id, out TimeZoneInfo? value, out Exception? e) 368private static TimeZoneInfoResult TryGetTimeZone(string id, out TimeZoneInfo? timeZone, out Exception? e, CachedData cachedData)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (2)
73private static TimeZoneInfoResult TryGetTimeZoneFromLocalMachineCore(string id, out TimeZoneInfo? value, out Exception? e) 130catch (Exception ex) when (ex is IOException || ex is OutOfMemoryException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneNotFoundException.cs (1)
23public TimeZoneNotFoundException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TypeAccessException.cs (1)
28public TypeAccessException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TypeInitializationException.cs (2)
28public TypeInitializationException(string? fullTypeName, Exception? innerException) 40internal TypeInitializationException(string? fullTypeName, string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TypeLoadException.cs (1)
26public TypeLoadException(string? message, Exception? inner)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TypeUnloadedException.cs (1)
26public TypeUnloadedException(string? message, Exception? innerException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\UnauthorizedAccessException.cs (1)
29public UnauthorizedAccessException(string? message, Exception? inner)
System\Activator.NativeAot.cs (1)
75catch (Exception e)
System\AppContext.NativeAot.cs (1)
29=> OnFirstChanceException((Exception)e, sender: null);
System\CrashInfo.cs (5)
78public void WriteException(Exception exception) 148private bool WriteExceptionWithFallback(ReadOnlySpan<byte> key, Exception exception, int maxMessageSize, int maxNumberStackFrames, int maxMethodNameSize) 168private bool WriteExceptionHelper(ReadOnlySpan<byte> key, Exception exception, int maxMessageSize, int maxNumberStackFrames, int maxMethodNameSize) 173ulong address = Unsafe.As<Exception, nuint>(ref exception); 216foreach (Exception ex in aggregate.InnerExceptions)
System\Diagnostics\StackFrame.NativeAot.cs (4)
65if (_ipAddress == IntPtr.Zero || _ipAddress == Exception.EdiSeparator) 78if (_noMethodBaseAvailable || _ipAddress == IntPtr.Zero || _ipAddress == Exception.EdiSeparator) 111if (_ipAddress == Exception.EdiSeparator) 210if (_ipAddress != Exception.EdiSeparator)
System\Diagnostics\StackTrace.NativeAot.cs (3)
33private void InitializeForException(Exception exception, int skipFrames, bool needFileInfo) 51if (ipAddresses[frameIndex + skipFrames] != Exception.EdiSeparator) 64if (ipAddress != Exception.EdiSeparator)
System\Environment.NativeAot.cs (2)
41public static void FailFast(string? message, Exception? exception) => 45internal static void FailFast(string? message, Exception? exception, string errorSource) =>
System\Exception.NativeAot.cs (3)
37private Exception? _innerException; 102Exception? ex = exceptionObj as Exception;
System\InvokeUtils.cs (5)
85Exception exception = ConvertOrWidenPrimitivesEnumsAndPointersIfPossible(srcObject, dstEEType, semantics, out dstObject); 102private static Exception ConvertOrWidenPrimitivesEnumsAndPointersIfPossible(object srcObject, MethodTable* dstEEType, CheckArgumentSemantics semantics, out object? dstObject) 114Exception exception = ConvertPointerIfPossible(srcObject, dstEEType, semantics, out object dstPtr); 375private static Exception ConvertPointerIfPossible(object srcObject, MethodTable* dstEEType, CheckArgumentSemantics semantics, out object dstPtr) 396private static Exception CreateChangeTypeException(MethodTable* srcEEType, MethodTable* dstEEType, CheckArgumentSemantics semantics)
System\Reflection\DynamicInvokeInfo.cs (4)
233catch (Exception e) when (wrapInTargetInvocationException) 429catch (Exception e) when (wrapInTargetInvocationException) 507catch (Exception e) when (wrapInTargetInvocationException) 812Exception exception = new NullReferenceException(SR.NullReference_InvokeNullRefReturned);
System\Reflection\Runtime\Assemblies\RuntimeAssemblyInfo.cs (4)
96List<Exception>? exceptions = null; 105Exception exception = TryGetRuntimeAssembly(redirectedAssemblyName, out redirectedAssembly); 120exceptions ??= new List<Exception>(); 130exceptions.InsertRange(0, new Exception[numTypes]); // align the Exceptions with the null Types.
System\Reflection\Runtime\CustomAttributes\NativeFormat\NativeFormatCustomAttributeData.cs (4)
123Exception? exception = null; 132Exception e = fixedArgumentHandle.TryParseConstantValue(_reader, out object? value); 165Exception? exception = null; 176Exception e = namedArgument.Value.TryParseConstantValue(_reader, out value);
System\Reflection\Runtime\General\Dispensers.cs (4)
35Exception assemblyLoadException = TryGetRuntimeAssembly(assemblyRefName, out RuntimeAssemblyInfo result); 52internal static Exception TryGetRuntimeAssembly(RuntimeAssemblyName assemblyRefName, out RuntimeAssemblyInfo result) 63return (Exception)runtimeAssemblyOrException; 74if (!binder.Bind(assemblyRefName, cacheMissedLookups: true, out AssemblyBindResult bindResult, out Exception exception))
System\Reflection\Runtime\General\MetadataReaderExtensions.NativeFormat.cs (8)
145private static Exception ParseEnumConstantValue(this ConstantEnumValueHandle handle, MetadataReader reader, out object value) 149Exception? exception = null; 248Exception exception = handle.TryParseConstantValue(reader, out value); 287public static Exception TryParseConstantValue(this Handle handle, MetadataReader reader, out object? value) 313Exception? exception = null; 327Exception? exception; 336private static Array TryParseConstantArray(this Handle handle, MetadataReader reader, out Exception? exception) 418private static Array TryParseConstantEnumArray(this ConstantEnumArrayHandle handle, MetadataReader reader, out Exception? exception)
System\Reflection\Runtime\General\QSignatureTypeHandle.cs (2)
28Exception? exception = null; 35internal RuntimeTypeInfo? TryResolve(TypeContext typeContext, ref Exception? exception)
System\Reflection\Runtime\General\TypeResolver.cs (2)
15Exception? exception = null; 22internal static RuntimeTypeInfo TryResolve(this QTypeDefRefOrSpec typeDefOrRefOrSpec, TypeContext typeContext, ref Exception? exception)
System\Reflection\Runtime\General\TypeResolver.NativeFormat.cs (4)
23Exception? exception = null; 30internal static RuntimeTypeInfo? TryResolve(this Handle typeDefRefOrSpec, MetadataReader reader, TypeContext typeContext, ref Exception? exception) 60private static RuntimeTypeInfo? TryResolveTypeSignature(this TypeSpecificationHandle typeSpecHandle, MetadataReader reader, TypeContext typeContext, ref Exception? exception) 171private static RuntimeTypeInfo? TryResolveTypeReference(this TypeReferenceHandle typeReferenceHandle, MetadataReader reader, ref Exception? exception)
System\Reflection\Runtime\MethodInfos\CustomMethodInvoker.cs (1)
53catch (Exception e) when (wrapInTargetInvocationException)
System\Reflection\Runtime\MethodInfos\IRuntimeMethodCommon.cs (1)
48MethodBaseInvoker GetUncachedMethodInvoker(RuntimeTypeInfo[] methodArguments, MemberInfo exceptionPertainant, out Exception exception);
System\Reflection\Runtime\MethodInfos\NativeFormat\NativeFormatMethodCommon.cs (1)
28public MethodBaseInvoker GetUncachedMethodInvoker(RuntimeTypeInfo[] methodArguments, MemberInfo exceptionPertainant, out Exception exception)
System\Reflection\Runtime\MethodInfos\RuntimeConstructorInfo.cs (1)
70catch (Exception)
System\Reflection\Runtime\MethodInfos\RuntimeNamedMethodInfo.cs (1)
299MethodBaseInvoker invoker = _common.GetUncachedMethodInvoker(methodArguments, exceptionPertainant, out Exception exception);
System\Reflection\Runtime\MethodInfos\RuntimePlainConstructorInfo.cs (1)
169invoker = _common.GetUncachedMethodInvoker(Array.Empty<RuntimeTypeInfo>(), this, out Exception exception);
System\Runtime\CompilerServices\ClassConstructorRunner.cs (1)
95catch (Exception e)
System\Runtime\InteropServices\PInvokeMarshal.cs (1)
30public static int GetHRForException(Exception e)
System\RuntimeExceptionHelpers.cs (6)
44public static Exception? GetRuntimeException(ExceptionIDs id) 59Exception outOfMemoryException = PreallocatedOutOfMemoryException.Instance; 146public static void ReportUnhandledException(Exception exception) 155internal static void RuntimeFailFast(RhFailFastReason reason, Exception? exception, IntPtr pExAddress, IntPtr pExContext) 199internal static void SerializeCrashInfo(RhFailFastReason reason, string? message, Exception? exception) 228internal static unsafe void FailFast(string? message = null, Exception? exception = null, string? errorSource = null,
System\Threading\Thread.NativeAot.cs (4)
38private Exception? _startException; 397Exception? startException = _startException; 417catch (Exception e) 445catch (Exception ex) when (ExceptionHandling.IsHandledByGlobalHandler(ex))
System.Private.DataContractSerialization (33)
src\runtime\src\libraries\Common\src\System\NotImplemented.cs (2)
14internal static Exception ByDesign => new NotImplementedException(); 19internal static Exception ByDesignWithMessage(string message)
System\Runtime\Serialization\DataContract.cs (4)
436catch (Exception ex) when (!ExceptionUtility.IsFatal(ex)) 915catch (Exception ex) when (!ExceptionUtility.IsFatal(ex)) 933catch (Exception ex) when (!ExceptionUtility.IsFatal(ex)) 945catch (Exception ex) when (!ExceptionUtility.IsFatal(ex))
System\Runtime\Serialization\DataContractSet.cs (1)
420catch (Exception ex) when (!ExceptionUtility.IsFatal(ex))
System\Runtime\Serialization\ExceptionUtility.cs (2)
11public static bool IsFatal(Exception exception) 36foreach (Exception innerException in innerExceptions)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (1)
176catch (Exception exception) when (exception is ArgumentException or FormatException or OverflowException)
System\Runtime\Serialization\Json\XmlJsonReader.cs (4)
351catch (Exception e) 691catch (Exception exception) when (exception is ArgumentException or FormatException or OverflowException) 709catch (Exception exception) when (exception is ArgumentException or FormatException or OverflowException) 948catch (Exception exception) when (exception is ArgumentException or FormatException or OverflowException)
System\Runtime\Serialization\SchemaImporter.cs (1)
63catch (Exception ex) when (!ExceptionUtility.IsFatal(ex))
System\Runtime\Serialization\XmlObjectSerializer.cs (3)
441internal static Exception CreateSerializationExceptionWithReaderDetails(string errorMessage, XmlReaderDelegator reader) 452internal static SerializationException CreateSerializationException(string errorMessage, Exception? innerException) 456internal static string GetTypeInfoError(string errorMessage, Type? type, Exception innerException)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
1078internal static Exception CreateUnexpectedStateException(XmlNodeType expectedState, XmlReaderDelegator xmlReader)
System\Runtime\Serialization\XmlReaderDelegator.cs (4)
521catch (Exception ex) when (ex is FormatException || ex is ArgumentException) 537catch (Exception ex) when (ex is FormatException || ex is ArgumentException) 556catch (Exception ex) when (ex is FormatException || ex is ArgumentException) 574catch (Exception ex) when (ex is FormatException || ex is ArgumentException)
System\Runtime\Serialization\XsdDataContractExporter.cs (6)
123catch (Exception ex) when (!ExceptionUtility.IsFatal(ex)) 152catch (Exception ex) when (!ExceptionUtility.IsFatal(ex)) 175catch (Exception ex) when (!ExceptionUtility.IsFatal(ex)) 331catch (Exception ex) when (!ExceptionUtility.IsFatal(ex)) 366catch (Exception ex) when (!ExceptionUtility.IsFatal(ex)) 396catch (Exception ex) when (!ExceptionUtility.IsFatal(ex))
System\Xml\XmlExceptionHelper.cs (4)
304public static XmlException CreateConversionException(string type, Exception exception) 309public static XmlException CreateConversionException(string value, string type, Exception exception) 314public static XmlException CreateEncodingException(byte[] buffer, int offset, int count, Exception exception) 319public static XmlException CreateEncodingException(string value, Exception exception)
System.Private.Reflection.Execution (5)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.Runtime.cs (2)
122public override Exception CreateMissingMetadataException(Type pertainant) 127public override Exception CreateNonInvokabilityException(MemberInfo pertainant)
Internal\Reflection\Execution\MethodInvokers\VirtualMethodInvoker.cs (1)
61catch (Exception ex) when (wrapInTargetInvocationException)
src\runtime\src\libraries\Common\src\System\NotImplemented.cs (2)
14internal static Exception ByDesign => new NotImplementedException(); 19internal static Exception ByDesignWithMessage(string message)
System.Private.TypeLoader (7)
Internal\Reflection\Execution\AssemblyBinderImplementation.cs (3)
46public sealed override bool Bind(RuntimeAssemblyName refName, bool cacheMissedLookups, out AssemblyBindResult result, out Exception exception) 52Exception preferredException = null; 105private static bool AssemblyNameMatches(RuntimeAssemblyName refName, RuntimeAssemblyName defName, ref Exception preferredException)
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.ConstructedGenericsRegistration.cs (1)
117catch (Exception e)
Internal\Runtime\TypeLoader\TypeLoaderTypeSystemContext.cs (1)
131return (DefType)ResolveRuntimeTypeHandle(typeof(Exception).TypeHandle);
src\runtime\src\libraries\Common\src\System\NotImplemented.cs (2)
14internal static Exception ByDesign => new NotImplementedException(); 19internal static Exception ByDesignWithMessage(string message)
System.Private.Uri (1)
System\UriFormatException.cs (1)
24public UriFormatException(string? textString, Exception? e) : base(textString, e)
System.Private.Windows.Core (228)
_generated\123\Windows.Win32.IAdviseSink.g.cs (5)
78 catch (Exception ex) 108 catch (Exception ex) 138 catch (Exception ex) 164 catch (Exception ex) 189 catch (Exception ex)
_generated\124\Windows.Win32.IBindCtx.g.cs (10)
69 catch (Exception ex) 102 catch (Exception ex) 134 catch (Exception ex) 175 catch (Exception ex) 219 catch (Exception ex) 251 catch (Exception ex) 283 catch (Exception ex) 320 catch (Exception ex) 353 catch (Exception ex) 385 catch (Exception ex)
_generated\127\Windows.Win32.IDataObject.g.cs (9)
82 catch (Exception ex) 131 catch (Exception ex) 177 catch (Exception ex) 222 catch (Exception ex) 271 catch (Exception ex) 308 catch (Exception ex) 361 catch (Exception ex) 405 catch (Exception ex) 440 catch (Exception ex)
_generated\128\Windows.Win32.IDataObjectAsyncCapability.g.cs (5)
69 catch (Exception ex) 116 catch (Exception ex) 150 catch (Exception ex) 194 catch (Exception ex) 228 catch (Exception ex)
_generated\130\Windows.Win32.IDispatchEx.g.cs (8)
138 catch (Exception ex) 173 catch (Exception ex) 198 catch (Exception ex) 223 catch (Exception ex) 258 catch (Exception ex) 283 catch (Exception ex) 318 catch (Exception ex) 343 catch (Exception ex)
_generated\133\Windows.Win32.IDragSourceHelper.g.cs (2)
79 catch (Exception ex) 125 catch (Exception ex)
_generated\134\Windows.Win32.IDragSourceHelper2.g.cs (3)
79 catch (Exception ex) 112 catch (Exception ex) 137 catch (Exception ex)
_generated\135\Windows.Win32.IDropSource.g.cs (2)
69 catch (Exception ex) 102 catch (Exception ex)
_generated\136\Windows.Win32.IDropSourceNotify.g.cs (2)
69 catch (Exception ex) 100 catch (Exception ex)
_generated\137\Windows.Win32.IDropTarget.g.cs (4)
79 catch (Exception ex) 128 catch (Exception ex) 166 catch (Exception ex) 211 catch (Exception ex)
_generated\138\Windows.Win32.IDropTargetHelper.g.cs (5)
79 catch (Exception ex) 125 catch (Exception ex) 165 catch (Exception ex) 213 catch (Exception ex) 255 catch (Exception ex)
_generated\139\Windows.Win32.IEnumFORMATETC.g.cs (4)
79 catch (Exception ex) 115 catch (Exception ex) 146 catch (Exception ex) 174 catch (Exception ex)
_generated\140\Windows.Win32.IEnumMoniker.g.cs (4)
69 catch (Exception ex) 105 catch (Exception ex) 136 catch (Exception ex) 164 catch (Exception ex)
_generated\141\Windows.Win32.IEnumSTATDATA.g.cs (4)
79 catch (Exception ex) 115 catch (Exception ex) 146 catch (Exception ex) 174 catch (Exception ex)
_generated\142\Windows.Win32.IEnumSTATSTG.g.cs (4)
79 catch (Exception ex) 115 catch (Exception ex) 148 catch (Exception ex) 181 catch (Exception ex)
_generated\143\Windows.Win32.IEnumString.g.cs (4)
79 catch (Exception ex) 115 catch (Exception ex) 146 catch (Exception ex) 174 catch (Exception ex)
_generated\144\Windows.Win32.IEnumUnknown.g.cs (4)
69 catch (Exception ex) 105 catch (Exception ex) 136 catch (Exception ex) 164 catch (Exception ex)
_generated\145\Windows.Win32.IGlobalInterfaceTable.g.cs (3)
82 catch (Exception ex) 119 catch (Exception ex) 164 catch (Exception ex)
_generated\148\Windows.Win32.IMoniker.g.cs (20)
79 catch (Exception ex) 104 catch (Exception ex) 129 catch (Exception ex) 154 catch (Exception ex) 189 catch (Exception ex) 227 catch (Exception ex) 279 catch (Exception ex) 318 catch (Exception ex) 360 catch (Exception ex) 398 catch (Exception ex) 432 catch (Exception ex) 475 catch (Exception ex) 508 catch (Exception ex) 556 catch (Exception ex) 596 catch (Exception ex) 633 catch (Exception ex) 673 catch (Exception ex) 720 catch (Exception ex) 768 catch (Exception ex) 818 catch (Exception ex)
_generated\152\Windows.Win32.IPersist.g.cs (1)
79 catch (Exception ex)
_generated\153\Windows.Win32.IPersistStream.g.cs (5)
79 catch (Exception ex) 104 catch (Exception ex) 135 catch (Exception ex) 171 catch (Exception ex) 218 catch (Exception ex)
_generated\154\Windows.Win32.IPicture.g.cs (14)
79 catch (Exception ex) 124 catch (Exception ex) 169 catch (Exception ex) 213 catch (Exception ex) 257 catch (Exception ex) 301 catch (Exception ex) 344 catch (Exception ex) 386 catch (Exception ex) 434 catch (Exception ex) 477 catch (Exception ex) 511 catch (Exception ex) 542 catch (Exception ex) 582 catch (Exception ex) 625 catch (Exception ex)
_generated\156\Windows.Win32.IRecordInfo.g.cs (16)
68 catch (Exception ex) 103 catch (Exception ex) 135 catch (Exception ex) 178 catch (Exception ex) 212 catch (Exception ex) 254 catch (Exception ex) 288 catch (Exception ex) 333 catch (Exception ex) 386 catch (Exception ex) 437 catch (Exception ex) 490 catch (Exception ex) 537 catch (Exception ex) 573 catch (Exception ex) 605 catch (Exception ex) 647 catch (Exception ex) 680 catch (Exception ex)
_generated\157\Windows.Win32.IRunningObjectTable.g.cs (7)
79 catch (Exception ex) 123 catch (Exception ex) 156 catch (Exception ex) 188 catch (Exception ex) 234 catch (Exception ex) 279 catch (Exception ex) 315 catch (Exception ex)
_generated\158\Windows.Win32.ISequentialStream.g.cs (2)
69 catch (Exception ex) 108 catch (Exception ex)
_generated\159\Windows.Win32.IServiceProvider.g.cs (1)
84 catch (Exception ex)
_generated\160\Windows.Win32.IStorage.g.cs (15)
79 catch (Exception ex) 131 catch (Exception ex) 179 catch (Exception ex) 234 catch (Exception ex) 286 catch (Exception ex) 347 catch (Exception ex) 387 catch (Exception ex) 425 catch (Exception ex) 465 catch (Exception ex) 515 catch (Exception ex) 562 catch (Exception ex) 622 catch (Exception ex) 669 catch (Exception ex) 703 catch (Exception ex) 745 catch (Exception ex)
_generated\161\Windows.Win32.IStream.g.cs (11)
69 catch (Exception ex) 94 catch (Exception ex) 119 catch (Exception ex) 158 catch (Exception ex) 192 catch (Exception ex) 229 catch (Exception ex) 266 catch (Exception ex) 296 catch (Exception ex) 332 catch (Exception ex) 378 catch (Exception ex) 419 catch (Exception ex)
_generated\162\Windows.Win32.ITypeComp.g.cs (2)
81 catch (Exception ex) 126 catch (Exception ex)
_generated\163\Windows.Win32.ITypeInfo.g.cs (19)
78 catch (Exception ex) 110 catch (Exception ex) 152 catch (Exception ex) 195 catch (Exception ex) 238 catch (Exception ex) 289 catch (Exception ex) 332 catch (Exception ex) 379 catch (Exception ex) 436 catch (Exception ex) 494 catch (Exception ex) 545 catch (Exception ex) 586 catch (Exception ex) 629 catch (Exception ex) 679 catch (Exception ex) 713 catch (Exception ex) 760 catch (Exception ex) 801 catch (Exception ex) 838 catch (Exception ex) 875 catch (Exception ex)
_generated\164\Windows.Win32.ITypeLib.g.cs (10)
65 catch (Exception ex) 96 catch (Exception ex) 139 catch (Exception ex) 184 catch (Exception ex) 229 catch (Exception ex) 261 catch (Exception ex) 307 catch (Exception ex) 359 catch (Exception ex) 411 catch (Exception ex) 456 catch (Exception ex)
System\ExceptionExtensions.cs (2)
18internal static bool IsCriticalException(this Exception ex) 30internal static SerializationException ConvertToSerializationException(this Exception ex)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (1)
801catch (Exception ex) when (!ex.IsCriticalException())
System\Private\Windows\JsonData.cs (1)
121catch (Exception ex)
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (2)
33catch (Exception ex) when (ex is ArgumentException or InvalidCastException or ArithmeticException or IOException or TargetInvocationException) 48catch (Exception ex) when (ex is KeyNotFoundException or InvalidCastException)
System\Private\Windows\Ole\BinaryFormatUtilities.cs (1)
49catch (Exception ex) when (!ex.IsCriticalException())
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (1)
146catch (Exception) when (!pmedium->hGlobal.IsNull)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (2)
385catch (Exception e) when (!e.IsCriticalException()) 451catch (Exception ex) when (!request.TypedRequest || ex is not NotSupportedException)
System\Private\Windows\Ole\Composition.RuntimeToNativeAdapter.cs (4)
50catch (Exception e) 105catch (Exception e) 123catch (Exception e) 146catch (Exception e)
System\Private\Windows\Ole\TypeBinder.cs (1)
134catch (Exception ex) when (!ex.IsCriticalException())
System\TypeExtensions.cs (1)
277catch (Exception e) when (!e.IsCriticalException())
Windows\Win32\Foundation\HRESULT.cs (1)
52public static implicit operator HRESULT(Exception ex)
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (1)
17internal static Exception GetException(this Status status)
Windows\Win32\System\Com\ComHelpers.cs (2)
111catch (Exception ex) 227catch (Exception ex)
Windows\Win32\System\Com\WinFormsComWrappers.cs (3)
67catch (Exception ex) 83catch (Exception ex) 110catch (Exception ex)
System.Private.Xml (294)
System\Xml\Core\IDtdParserAdapter.cs (1)
47void Throw(Exception e);
System\Xml\Core\IValidationEventHandling.cs (1)
15void SendEvent(Exception exception, XmlSeverityType severity);
System\Xml\Core\XmlReader.cs (4)
1426internal Exception CreateReadContentAsException(string methodName) 1431internal Exception CreateReadElementContentAsException(string methodName) 1441internal static Exception CreateReadContentAsException(string methodName, XmlNodeType nodeType, IXmlLineInfo? lineInfo) 1446internal static Exception CreateReadElementContentAsException(string methodName, XmlNodeType nodeType, IXmlLineInfo? lineInfo)
System\Xml\Core\XmlTextReaderImpl.cs (9)
2628internal void DtdParserProxy_Throw(Exception e) 2704private void Throw(string res, string? arg, Exception innerException) 2710private void Throw(string res, string?[] args, Exception innerException) 2716private void Throw(Exception e) 2730private void ReThrow(Exception e, int lineNo, int linePos) 2732Throw(new XmlException(e.Message, (Exception?)null, lineNo, linePos, _ps.baseUriStr)); 2748private void ThrowWithoutLineInfo(string res, string?[] args, Exception? innerException) 7922catch (Exception) 7939catch (Exception e)
System\Xml\Core\XmlTextReaderImplAsync.cs (2)
5115catch (Exception) 5131catch (Exception e)
System\Xml\Core\XmlTextReaderImplHelpers.cs (1)
289void IDtdParserAdapter.Throw(Exception e)
System\Xml\Core\XmlValidatingReaderImpl.cs (1)
54void IValidationEventHandling.SendEvent(Exception /*XmlSchemaException*/ exception, XmlSeverityType severity)
System\Xml\Dom\XmlLoader.cs (1)
998internal static Exception UnexpectedNodeType(XmlNodeType nodetype)
System\Xml\Schema\BaseProcessor.cs (1)
228protected void SendValidationEvent(string code, string?[]? args, Exception innerException, XmlSchemaObject source)
System\Xml\Schema\DataTypeImplementation.cs (74)
532Exception? exception = TryParseValue(s, nameTable, nsmgr, out typedValue); 553Exception? exception = TryParseValue(s, nameTable, nsmgr, out typedValue); 568internal override Exception? TryParseValue(object value, XmlNameTable? nameTable, IXmlNamespaceResolver? namespaceResolver, out object? typedValue) 572Exception? exception; 1014internal override Exception? TryParseValue(object value, XmlNameTable? nameTable, IXmlNamespaceResolver? namespaceResolver, out object? typedValue) 1018Exception? exception; 1090internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 1092Exception? exception; 1238internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 1240Exception? exception; 1277internal override Exception? TryParseValue(object value, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 1281Exception? exception; 1375internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 1456internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 1458Exception? exception; 1527internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 1529Exception? exception; 1609internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 1611Exception? exception; 1695internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 1697Exception? exception; 1787internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 1789Exception? exception; 1875internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 1877Exception? exception; 1906internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 1908Exception? exception; 1944internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 1946Exception? exception; 2030internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 2032Exception? exception; 2412internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 2414Exception? exception; 2510internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 2512Exception? exception; 2614internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 2616Exception? exception; 2699internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 2701Exception? exception; 2899internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 2901Exception? exception; 3032internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 3034Exception? exception; 3112internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 3114Exception? exception; 3228internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 3230Exception? exception; 3282internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 3284Exception? exception; 3337internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 3339Exception? exception; 3391internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 3393Exception? exception; 3477internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 3479Exception? exception; 3531internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 3533Exception? exception; 3585internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 3587Exception? exception; 3638internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 3640Exception? exception; 3695catch (Exception e) 3717catch (Exception e) 3751catch (Exception e) 3791catch (Exception e) 3797internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 3799Exception? exception; 3820Exception? exception; 3834catch (Exception e) 3842internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 3844Exception? exception; 3887catch (Exception e) 3893internal override Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue) 3895Exception? exception;
System\Xml\Schema\FacetChecker.cs (41)
369catch (Exception e) 666Exception? ex = datatype.TryParseValue(facet.Value!, nameTable, nsmgr, out typedValue); 777internal virtual Exception? CheckLexicalFacets(ref string parseString, XmlSchemaDatatype datatype) 782internal virtual Exception? CheckValueFacets(object value, XmlSchemaDatatype datatype) 786internal virtual Exception? CheckValueFacets(decimal value, XmlSchemaDatatype datatype) 790internal virtual Exception? CheckValueFacets(long value, XmlSchemaDatatype datatype) 794internal virtual Exception? CheckValueFacets(int value, XmlSchemaDatatype datatype) 798internal virtual Exception? CheckValueFacets(short value, XmlSchemaDatatype datatype) 802internal virtual Exception? CheckValueFacets(DateTime value, XmlSchemaDatatype datatype) 806internal virtual Exception? CheckValueFacets(double value, XmlSchemaDatatype datatype) 810internal virtual Exception? CheckValueFacets(float value, XmlSchemaDatatype datatype) 814internal virtual Exception? CheckValueFacets(string value, XmlSchemaDatatype datatype) 818internal virtual Exception? CheckValueFacets(byte[] value, XmlSchemaDatatype datatype) 822internal virtual Exception? CheckValueFacets(TimeSpan value, XmlSchemaDatatype datatype) 826internal virtual Exception? CheckValueFacets(XmlQualifiedName value, XmlSchemaDatatype datatype) 868internal static Exception? CheckPatternFacets(RestrictionFacets? restriction, string value) 997internal override Exception? CheckValueFacets(object value, XmlSchemaDatatype datatype) 1003internal override Exception? CheckValueFacets(decimal value, XmlSchemaDatatype datatype) 1061internal override Exception? CheckValueFacets(long value, XmlSchemaDatatype datatype) 1067internal override Exception? CheckValueFacets(int value, XmlSchemaDatatype datatype) 1072internal override Exception? CheckValueFacets(short value, XmlSchemaDatatype datatype) 1093internal static Exception? CheckTotalAndFractionDigits(decimal value, int totalDigits, int fractionDigits, bool checkTotal, bool checkFraction) 1122internal override Exception? CheckValueFacets(object value, XmlSchemaDatatype datatype) 1128internal override Exception? CheckValueFacets(double value, XmlSchemaDatatype datatype) 1174internal override Exception? CheckValueFacets(float value, XmlSchemaDatatype datatype) 1198internal override Exception? CheckValueFacets(object value, XmlSchemaDatatype datatype) 1204internal override Exception? CheckValueFacets(TimeSpan value, XmlSchemaDatatype datatype) 1269internal override Exception? CheckValueFacets(object value, XmlSchemaDatatype datatype) 1275internal override Exception? CheckValueFacets(DateTime value, XmlSchemaDatatype datatype) 1347internal override Exception? CheckValueFacets(object value, XmlSchemaDatatype datatype) 1353internal override Exception? CheckValueFacets(string value, XmlSchemaDatatype datatype) 1358internal static Exception? CheckValueFacets(string value, XmlSchemaDatatype datatype, bool verifyUri) 1364Exception? exception; 1433private static Exception? CheckBuiltInFacets(string s, XmlTypeCode typeCode, bool verifyUri) 1435Exception? exception = null; 1488internal override Exception? CheckValueFacets(object value, XmlSchemaDatatype datatype) 1494internal override Exception? CheckValueFacets(XmlQualifiedName value, XmlSchemaDatatype datatype) 1560internal override Exception? CheckValueFacets(object value, XmlSchemaDatatype datatype) 1566internal override Exception? CheckValueFacets(byte[] value, XmlSchemaDatatype datatype) 1625internal override Exception? CheckValueFacets(object value, XmlSchemaDatatype datatype) 1701internal override Exception? CheckValueFacets(object value, XmlSchemaDatatype datatype)
System\Xml\Schema\Inference\XmlSchemaInferenceException.cs (3)
36public XmlSchemaInferenceException(string message) : base(message, ((Exception?)null), 0, 0) 40public XmlSchemaInferenceException(string message, Exception? innerException) : base(message, innerException, 0, 0) 44public XmlSchemaInferenceException(string message, Exception? innerException, int lineNumber, int linePosition) :
System\Xml\Schema\Preprocessor.cs (5)
287Exception? innerException = null; 294catch (Exception e) 341catch (Exception eInner) 397catch (Exception eInner) 543Exception? exception = tokenDt.TryParseValue(schema.Version, null, null, out version);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (4)
239catch (Exception) 318catch (Exception) 1723catch (Exception ex) 1764catch (Exception ex)
System\Xml\Schema\XdrValidator.cs (1)
358catch (Exception e)
System\Xml\Schema\XmlSchemaDataType.cs (2)
64internal abstract Exception? TryParseValue(string s, XmlNameTable? nameTable, IXmlNamespaceResolver? nsmgr, out object? typedValue); 66internal abstract Exception? TryParseValue(object value, XmlNameTable? nameTable, IXmlNamespaceResolver? namespaceResolver, out object? typedValue);
System\Xml\Schema\XmlSchemaException.cs (4)
80public XmlSchemaException(string? message) : this(message, ((Exception?)null), 0, 0) 87public XmlSchemaException(string? message, Exception? innerException) : this(message, innerException, 0, 0) 91public XmlSchemaException(string? message, Exception? innerException, int lineNumber, int linePosition) : 128internal XmlSchemaException(string? res, string?[]? args, Exception? innerException, string? sourceUri, int lineNumber, int linePosition, XmlSchemaObject? source) :
System\Xml\Schema\XmlSchemaValidationException.cs (4)
37public XmlSchemaValidationException(string? message) : base(message, ((Exception?)null), 0, 0) 41public XmlSchemaValidationException(string? message, Exception? innerException) : base(message, innerException, 0, 0) 45public XmlSchemaValidationException(string? message, Exception? innerException, int lineNumber, int linePosition) : 60internal XmlSchemaValidationException(string? res, string?[]? args, Exception? innerException, string? sourceUri, int lineNumber, int linePosition) :
System\Xml\Schema\XmlSchemaValidator.cs (9)
1273Exception? exception = s_dtStringArray.TryParseValue(xsiSchemaLocation, _nameTable, _nsResolver, out typedValue); 1428Exception? exception = currentElementDecl.Datatype.TryParseValue(currentElementDecl.DefaultValueRaw, _nameTable, _nsResolver, out typedVal); 1472Exception? exception = dtype.TryParseValue(parsedValue, _nameTable, _nsResolver, out typedValue); 1652Exception? exception = s_dtQName.TryParseValue(xsiType, _nameTable, _nsResolver, out typedVal); 1864catch (Exception e) 1941Exception? exception; 1980Exception? exception = dtype.TryParseValue(stringValue, _nameTable, _nsResolver, out typedValue); 2824private void SendValidationEvent(string? code, string?[]? args, Exception? innerException, XmlSeverityType severity) 2832private void SendValidationEvent(string? code, string?[]? args, Exception? innerException)
System\Xml\Schema\XmlValueConverter.cs (1)
475protected Exception CreateInvalidClrMappingException(Type sourceType, Type destinationType)
System\Xml\Schema\XsdBuilder.cs (4)
2460catch (Exception) 2472catch (Exception) 2484catch (Exception) 2511catch (Exception)
System\Xml\Schema\XsdDuration.cs (7)
148Exception? exception = TryParse(s, durationType, out result); 249Exception? exception = TryToTimeSpan(durationType, out result); 258internal Exception? TryToTimeSpan(out TimeSpan result) 263internal Exception? TryToTimeSpan(DurationType durationType, out TimeSpan result) 265Exception? exception; 447internal static Exception? TryParse(string s, out XsdDuration result) 452internal static Exception? TryParse(string s, DurationType durationType, out XsdDuration result)
System\Xml\Schema\XsdValidator.cs (1)
606catch (Exception e)
System\Xml\Serialization\Compilation.cs (2)
161catch (Exception e) 254catch (Exception e)
System\Xml\Serialization\Globals.cs (1)
14internal static Exception NotSupported(string msg)
System\Xml\Serialization\SoapReflectionImporter.cs (2)
137private static InvalidOperationException ReflectionException(string context, Exception e) 624catch (Exception e)
System\Xml\Serialization\Types.cs (3)
98private Exception? _exception; 351internal Exception? Exception 824Exception? exception = null;
System\Xml\Serialization\XmlReflectionImporter.cs (6)
374private static InvalidOperationException CreateReflectionException(string context, Exception e) 379private static InvalidOperationException CreateTypeReflectionException(string context, Exception e) 384private static InvalidOperationException CreateMemberReflectionException(FieldModel model, Exception e) 476catch (Exception e) 897catch (Exception e) 1311catch (Exception e)
System\Xml\Serialization\XmlSchemas.cs (1)
689internal static Exception CreateValidationException(XmlSchemaException exception, string message)
System\Xml\Serialization\XmlSerializationReader.cs (12)
1085catch (Exception e) 1315protected Exception CreateUnknownTypeException(XmlQualifiedName type) 1320protected Exception CreateReadOnlyCollectionException(string name) 1325protected Exception CreateAbstractTypeException(string name, string? ns) 1330protected Exception CreateInaccessibleConstructorException(string typeName) 1335protected Exception CreateCtorHasSecurityException(string typeName) 1340protected Exception CreateUnknownNodeException() 1345protected Exception CreateUnknownConstantException(string? value, Type enumType) 1350protected Exception CreateInvalidCastException(Type type, object? value) 1355protected Exception CreateInvalidCastException(Type type, object? value, string? id) 1365protected Exception CreateBadDerivationException(string? xsdDerived, string? nsDerived, string? xsdBase, string? nsBase, string? clrDerived, string? clrBase) 1370protected Exception CreateMissingIXmlSerializableType(string? name, string? ns, string? clrType)
System\Xml\Serialization\XmlSerializationWriter.cs (9)
859protected Exception CreateUnknownTypeException(object o) 865protected Exception CreateUnknownTypeException(Type type) 873protected Exception CreateMismatchChoiceException(string value, string elementName, string enumValue) 879protected Exception CreateUnknownAnyElementException(string name, string ns) 884protected Exception CreateInvalidChoiceIdentifierValueException(string type, string identifier) 889protected Exception CreateChoiceIdentifierValueException(string value, string identifier, string name, string ns) 895protected Exception CreateInvalidEnumValueException(object value, string typeName) 900protected Exception CreateInvalidAnyTypeException(object o) 905protected Exception CreateInvalidAnyTypeException(Type type)
System\Xml\Serialization\XmlSerializer.cs (2)
412catch (Exception? e) 514catch (Exception? e)
System\Xml\ValidateNames.cs (1)
390internal static Exception GetInvalidNameException(string s, int offsetStartChar, int offsetBadChar)
System\Xml\XmlConvert.cs (42)
329internal static Exception? TryVerifyName(string name) 385internal static Exception? TryVerifyNCName(string name) 419internal static Exception? TryVerifyTOKEN(string token) 465internal static Exception? TryVerifyNMTOKEN(string name) 481internal static Exception? TryVerifyNormalizedString(string str) 760internal static Exception? TryToBoolean(string s, out bool result) 790internal static Exception? TryToChar(string s, out char result) 805internal static Exception? TryToDecimal(string s, out decimal result) 820internal static Exception? TryToInteger(string s, out decimal result) 836internal static Exception? TryToSByte(string s, out sbyte result) 851internal static Exception? TryToInt16(string s, out short result) 866internal static Exception? TryToInt32(string s, out int result) 881internal static Exception? TryToInt64(string s, out long result) 896internal static Exception? TryToByte(string s, out byte result) 912internal static Exception? TryToUInt16(string s, out ushort result) 928internal static Exception? TryToUInt32(string s, out uint result) 944internal static Exception? TryToUInt64(string s, out ulong result) 976internal static Exception? TryToSingle(string s, out float result) 1023internal static Exception? TryToDouble(string s, out double result) 1118catch (Exception) 1129internal static Exception? TryToTimeSpan(string s, out TimeSpan result) 1132Exception? exception; 1266internal static Exception? TryToGuid(string s, out Guid result) 1268Exception? exception = null; 1327internal static Exception? TryToUri(string s, out Uri? result) 1529internal static Exception CreateException(string res, ExceptionType exceptionType, int lineNo, int linePos) 1541internal static Exception CreateException(string res, string arg, ExceptionType exceptionType) 1546internal static Exception CreateException(string res, string arg, ExceptionType exceptionType, int lineNo, int linePos) 1558internal static Exception CreateException(string res, string[] args, ExceptionType exceptionType) 1563internal static Exception CreateException(string res, string[] args, ExceptionType exceptionType, int lineNo, int linePos) 1575internal static Exception CreateInvalidSurrogatePairException(char low, char hi) 1580internal static Exception CreateInvalidSurrogatePairException(char low, char hi, ExceptionType exceptionType) 1585internal static Exception CreateInvalidSurrogatePairException(char low, char hi, ExceptionType exceptionType, int lineNo, int linePos) 1594internal static Exception CreateInvalidHighSurrogateCharException(char hi) 1599internal static Exception CreateInvalidHighSurrogateCharException(char hi, ExceptionType exceptionType) 1604internal static Exception CreateInvalidHighSurrogateCharException(char hi, ExceptionType exceptionType, int lineNo, int linePos) 1609internal static Exception CreateInvalidCharException(char[] data, int length, int invCharPos, ExceptionType exceptionType) 1614internal static Exception CreateInvalidCharException(string data, int invCharPos) 1619internal static Exception CreateInvalidCharException(string data, int invCharPos, ExceptionType exceptionType) 1624internal static Exception CreateInvalidCharException(char invChar, char nextChar) 1629internal static Exception CreateInvalidCharException(char invChar, char nextChar, ExceptionType exceptionType) 1634internal static Exception CreateInvalidNameCharException(string name, int index, ExceptionType exceptionType)
System\Xml\XmlException.cs (8)
90public XmlException(string? message) : this(message, ((Exception?)null), 0, 0) 96public XmlException(string? message, Exception? innerException) : this(message, innerException, 0, 0) 101public XmlException(string? message, Exception? innerException, int lineNumber, int linePosition) : 106internal XmlException(string? message, Exception? innerException, int lineNumber, int linePosition, string? sourceUri) : 133internal XmlException(string res, string? arg, Exception? innerException, IXmlLineInfo? lineInfo) : 162internal XmlException(string res, string?[]? args, Exception? innerException, int lineNumber, int linePosition) : 166internal XmlException(string res, string?[]? args, Exception? innerException, int lineNumber, int linePosition, string? sourceUri) : 292internal static bool IsCatchableException(Exception e)
System\Xml\XPath\Internal\FunctionQuery.cs (1)
90catch (Exception ex)
System\Xml\XPath\XPathException.cs (5)
65public XPathException() : this(string.Empty, (Exception?)null) { } 67public XPathException(string? message) : this(message, (Exception?)null) { } 69public XPathException(string? message, Exception? innerException) : 89internal static XPathException Create(string res, string arg, Exception innerException) 99private XPathException(string res, string?[]? args, Exception? inner) :
System\Xml\Xsl\IlGen\XmlILTrace.cs (1)
138catch (Exception e)
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (1)
292catch (Exception e)
System\Xml\Xsl\Runtime\XmlQueryContext.cs (1)
150catch (Exception e)
System\Xml\Xsl\XslException.cs (2)
16public XslTransformException(Exception? inner, string res, params string?[]? args) 110internal XslLoadException(Exception? inner, ISourceLineInfo? lineInfo)
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
173catch (Exception e)
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
267catch (Exception e)
System\Xml\Xsl\XsltOld\Compiler.cs (1)
196catch (Exception e)
System\Xml\Xsl\XsltOld\ContainerAction.cs (2)
211catch (Exception e) 258catch (Exception e)
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (1)
842catch (Exception e)
System\Xml\Xslt\XsltException.cs (7)
72public XsltException() : this(string.Empty, (Exception?)null) { } 74public XsltException(string message) : this(message, (Exception?)null) { } 76public XsltException(string message, Exception? innerException) : 86internal static XsltException Create(string res, string?[] args, Exception inner) 91internal XsltException(string res, string?[] args, string? sourceUri, int lineNumber, int linePosition, Exception? inner) 174public XsltCompileException(string message, Exception innerException) : base(message, innerException) { } 176public XsltCompileException(Exception inner, string sourceUri, int lineNumber, int linePosition) :
System.Reflection.Metadata (15)
System\Reflection\Internal\Utilities\ExceptionUtilities.cs (1)
8internal static Exception UnexpectedValue(object value)
System\Reflection\Metadata\ImageFormatLimitationException.cs (1)
20public ImageFormatLimitationException(string? message, Exception? innerException)
System\Reflection\PortableExecutable\PEReader.cs (7)
729catch (Exception e) 734Exception? errorToReport = null; 768private bool TryOpenCodeViewPortablePdb(DebugDirectoryEntry codeViewEntry, string peImageDirectory, Func<string, Stream?> pdbFileStreamProvider, out MetadataReaderProvider? provider, out string? pdbPath, ref Exception? errorToReport) 779catch (Exception e) when (e is BadImageFormatException || e is IOException) 803private static bool TryOpenPortablePdbFile(string path, BlobContentId id, Func<string, Stream?> pdbFileStreamProvider, out MetadataReaderProvider? provider, ref Exception? errorToReport) 843catch (Exception e) when (e is BadImageFormatException || e is IOException) 857partial void TryOpenEmbeddedPortablePdb(DebugDirectoryEntry embeddedPdbEntry, ref bool openedEmbeddedPdb, ref MetadataReaderProvider? provider, ref Exception? errorToReport);
System\Reflection\PortableExecutable\PEReader.EmbeddedPortablePdb.cs (4)
85catch (Exception e) 104catch (Exception e) 136partial void TryOpenEmbeddedPortablePdb(DebugDirectoryEntry embeddedPdbEntry, ref bool openedEmbeddedPdb, ref MetadataReaderProvider? provider, ref Exception? errorToReport) 152catch (Exception e) when (e is BadImageFormatException || e is IOException)
System\Reflection\Throw.cs (2)
33internal static Exception InvalidArgument_UnexpectedHandleKind(HandleKind kind) 39internal static Exception InvalidArgument_Handle(string parameterName)
System.Reflection.MetadataLoadContext (33)
System\CoreRtBridge.cs (1)
34internal static Exception CreateMissingMetadataException() => new Exception();
System\Reflection\MetadataLoadContext.CoreAssembly.cs (2)
16Exception? e; 34private RoAssembly? TryGetDefaultCoreAssembly(out Exception? e)
System\Reflection\MetadataLoadContext.Resolving.cs (2)
29RoAssembly? assembly = TryResolveAssembly(refName, out Exception? e); 33internal RoAssembly? TryResolveAssembly(RoAssemblyName refName, out Exception? e)
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (2)
119internal RoDefinitionType? GetTypeCore(string ns, string name, bool ignoreCase, out Exception? e) => GetTypeCore(ns.ToUtf8(), name.ToUtf8(), ignoreCase, out e); 120internal RoDefinitionType? GetTypeCore(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, bool ignoreCase, out Exception? e)
System\Reflection\TypeLoading\Assemblies\RoAssembly.GetForwardedTypes.cs (5)
17List<Exception>? exceptions = null; 23Exception? exception = null; 31type = redirectedAssembly.GetTypeCore(ns, name, ignoreCase: false, out Exception? e); 47exceptions ??= new List<Exception>(); 58exceptions.InsertRange(0, new Exception[numTypes]); // align the Exceptions with the null Types.
System\Reflection\TypeLoading\Assemblies\RoExceptionAssembly.cs (2)
12internal RoExceptionAssembly(Exception exception) 18internal Exception Exception { get; }
System\Reflection\TypeLoading\General\CoreTypes.cs (5)
12private readonly Exception?[] _exceptions; 18Exception?[] exceptions = new Exception[numCoreTypes]; 22RoType? type = coreAssembly.GetTypeCore(ns, name, ignoreCase: false, out Exception? e); 37public Exception? GetException(CoreType coreType) => _exceptions[(int)coreType];
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (6)
66RoDefinitionType? type = module.GetEcmaAssembly().GetTypeCore(ns, name, ignoreCase: false, out Exception? e); 79RoDefinitionType? type = assembly.GetTypeCore(ns, name, ignoreCase: false, out Exception? e); 94RoDefinitionType? type = module.GetTypeCore(ns, name, ignoreCase: false, out Exception? e); 107RoDefinitionType? type = targetModule.GetTypeCore(ns, name, ignoreCase: false, out Exception? e); 150RoAssembly? assembly = handle.TryResolveAssembly(module, out Exception? e); 156public static RoAssembly? TryResolveAssembly(this AssemblyReferenceHandle handle, EcmaModule module, out Exception? e)
System\Reflection\TypeLoading\General\Helpers.cs (2)
286RoType? type = defaultAssembly.GetTypeCore(ns, simpleName, ignoreCase: ignoreCase, out Exception? e); 308Type? type = roAssembly.GetTypeCore(ns, simpleName, ignoreCase: ignoreCase2, out Exception? e);
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.GetTypeCore.cs (1)
22protected sealed override RoDefinitionType? GetTypeCoreNoCache(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, out Exception? e)
System\Reflection\TypeLoading\Modules\RoModule.cs (2)
118internal RoDefinitionType? GetTypeCore(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, bool ignoreCase, out Exception? e) 139protected abstract RoDefinitionType? GetTypeCoreNoCache(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, out Exception? e);
System\Reflection\TypeLoading\Modules\RoResourceModule.cs (1)
54protected sealed override RoDefinitionType? GetTypeCoreNoCache(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, out Exception? e)
System\Reflection\TypeLoading\Types\RoExceptionType.cs (2)
15internal Exception? Exception { get; } 17internal RoExceptionType(ReadOnlySpan<byte> ns, ReadOnlySpan<byte> name, Exception? exception)
System.Resources.Extensions (3)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.cs (2)
50catch (Exception ex) when (ex is ArgumentException or InvalidCastException or ArithmeticException or IOException) 71catch (Exception ex) when (ex is ArgumentException or InvalidCastException or ArithmeticException or IOException)
System\Resources\Extensions\BinaryFormat\SerializationExtensions.cs (1)
15public static SerializationException ConvertToSerializationException(this Exception ex)
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
186[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Exception))]
System.Runtime.Caching (1)
System\Runtime\Caching\Dbg.cs (1)
18internal static void Trace(string tagName, string message, Exception e = null)
System.Runtime.InteropServices (10)
System\Runtime\InteropServices\Marshalling\ExceptionAsDefaultMarshaller.cs (2)
10[CustomMarshaller(typeof(Exception), MarshalMode.UnmanagedToManagedOut, typeof(ExceptionAsDefaultMarshaller<>))] 19public static T ConvertToUnmanaged(Exception e)
System\Runtime\InteropServices\Marshalling\ExceptionAsHResultMarshaller.cs (4)
12/// Marshals an exception object to the value of its <see cref="Exception.HResult"/> converted to <typeparamref name="T"/>. 20[CustomMarshaller(typeof(Exception), MarshalMode.UnmanagedToManagedOut, typeof(ExceptionAsHResultMarshaller<>))] 25/// Marshals an exception object to the value of its <see cref="Exception.HResult"/> converted to <typeparamref name="T"/>. 29public static T ConvertToUnmanaged(Exception e)
System\Runtime\InteropServices\Marshalling\ExceptionAsNaNMarshaller.cs (2)
12[CustomMarshaller(typeof(Exception), MarshalMode.UnmanagedToManagedOut, typeof(ExceptionAsNaNMarshaller<>))] 21public static T ConvertToUnmanaged(Exception e)
System\Runtime\InteropServices\Marshalling\ExceptionAsVoidMarshaller.cs (2)
13[CustomMarshaller(typeof(Exception), MarshalMode.UnmanagedToManagedOut, typeof(ExceptionAsVoidMarshaller))] 21public static void ConvertToUnmanaged(Exception e)
System.Runtime.InteropServices.JavaScript (23)
System\Runtime\InteropServices\JavaScript\Interop\JavaScriptExports.CoreCLR.cs (6)
32catch (Exception ex) 61catch (Exception ex) 91catch (Exception ex) 110if (exception_gc_handle.Target is Exception exception) 119catch (Exception ex) 143catch (Exception ex)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.cs (2)
72arg.ToManaged(out Exception? ex); 266catch (Exception ex)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Exception.cs (4)
18public void ToManaged(out Exception? value) 29value = (Exception)((GCHandle)slot.GCHandle).Target; 56public void ToJS(Exception? value) 64Exception cpy = value;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Object.cs (5)
61ToManaged(out Exception? val); 71ToManaged(out Exception? val); 271else if (typeof(Exception).IsAssignableFrom(type)) 273Exception? val = value as Exception;
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Task.cs (6)
70arg_2.ToManaged(out Exception? fail); 131arg_2.ToManaged(out Exception? fail); 179Exception ex = task.Exception; 274Exception ex = task.Exception; 351Exception ex = task.Exception; 444private static unsafe void RejectPromise(JSObject holder, Exception ex)
System.Runtime.Serialization.Formatters (2)
System\Runtime\Serialization\FormatterServices.cs (1)
309catch (Exception) { }
System\Runtime\Serialization\ObjectManager.cs (1)
788catch (Exception e)
System.Runtime.Serialization.Primitives (1)
System\Runtime\Serialization\InvalidDataContractException.cs (1)
24public InvalidDataContractException(string? message, Exception? innerException)
System.Runtime.Serialization.Schema (12)
System\Runtime\Serialization\Schema\DiagnosticUtility.cs (10)
13public static bool IsFatal(Exception exception) 38foreach (Exception innerException in innerExceptions) 75public static Exception ThrowHelperArgumentNull(string message) 80public static Exception ThrowHelperError(Exception e) 85public static Exception ThrowHelperArgument(string message) 90internal static Exception ThrowHelperFatal(string message, Exception innerException) 94internal static Exception ThrowHelperCallback(Exception e)
System\Runtime\Serialization\Schema\XsdDataContractImporter.cs (2)
354catch (Exception ex) 389catch (Exception ex)
System.Security.AccessControl (6)
src\runtime\src\libraries\Common\src\System\NotImplemented.cs (2)
14internal static Exception ByDesign => new NotImplementedException(); 19internal static Exception ByDesignWithMessage(string message)
System\Security\AccessControl\NativeObjectSecurity.cs (3)
42protected internal delegate System.Exception? ExceptionFromErrorCode(int errorCode, string? name, SafeHandle? handle, object? context); 115System.Exception? exception = null; 267System.Exception? exception = null;
System\Security\AccessControl\PrivilegeNotHeldException.cs (1)
28public PrivilegeNotHeldException(string? privilege, Exception? inner)
System.Security.Cryptography (28)
src\runtime\src\libraries\Common\src\Interop\Windows\BCrypt\Interop.CreateCryptographicException.cs (1)
11internal static Exception CreateCryptographicException(NTSTATUS ntStatus)
src\runtime\src\libraries\Common\src\System\IO\MemoryMappedFiles\MemoryMappedFileMemoryManager.cs (1)
54catch (Exception)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\AuthenticationTagMismatchException.cs (1)
42public AuthenticationTagMismatchException(string? message, Exception? inner)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.NamedCurve.cs (1)
183Exception e = errorCode.ToCryptographicException();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLDsaCng.Windows.cs (1)
90static Exception DebugFailAndGetException(string? parameterSet)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemCng.Windows.cs (1)
82static Exception DebugFailAndGetException(string? parameterSet)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (1)
368catch (Exception e) when (!(e is CryptographicException))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (1)
288Exception e = GetExceptionForLastError();
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs (1)
692private static void ThrowWithHResult(string message, int hResult, Exception innerException)
System\Security\Cryptography\CryptographicUnexpectedOperationException.cs (1)
24public CryptographicUnexpectedOperationException(string? message, Exception? inner)
System\Security\Cryptography\DSASignatureFormat.cs (1)
44internal static Exception CreateUnknownValueException(DSASignatureFormat signatureFormat) =>
System\Security\Cryptography\LiteHash.Windows.cs (2)
88static Exception FailThrow(string algorithm) 208static Exception FailThrow(string algorithm)
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (1)
27Exception e = ErrorCode.HRESULT_INVALID_HANDLE.ToCryptographicException();
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.Import.cs (1)
152Exception e = Marshal.GetHRForLastWin32Error().ToCryptographicException();
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.PrivateKey.cs (1)
276Exception e = Marshal.GetLastPInvokeError().ToCryptographicException();
System\Security\Cryptography\X509Certificates\ChainPal.Windows.cs (1)
40public bool? Verify(X509VerificationFlags flags, out Exception? exception)
System\Security\Cryptography\X509Certificates\FindPal.Windows.cs (2)
402Exception e = Marshal.GetHRForLastWin32Error().ToCryptographicException(); 461Exception? verificationException;
System\Security\Cryptography\X509Certificates\IChainPal.cs (1)
13bool? Verify(X509VerificationFlags flags, out Exception? exception);
System\Security\Cryptography\X509Certificates\StorePal.Windows.Import.cs (3)
54Exception e = Marshal.GetLastPInvokeError().ToCryptographicException(); 136Exception e = Marshal.GetHRForLastWin32Error().ToCryptographicException(); 199Exception e = Marshal.GetLastPInvokeError().ToCryptographicException();
System\Security\Cryptography\X509Certificates\WindowsInterop.crypt32.cs (1)
134Exception e = Marshal.GetLastPInvokeError().ToCryptographicException();
System\Security\Cryptography\X509Certificates\X509CertificateLoader.Windows.cs (1)
272Exception e = Marshal.GetHRForLastWin32Error().ToCryptographicException();
System\Security\Cryptography\X509Certificates\X509Chain.cs (1)
145Exception? verificationException;
System\Security\Cryptography\X509Certificates\X509Pal.Windows.PublicKey.cs (1)
145Exception e = Marshal.GetHRForLastWin32Error().ToCryptographicException();
System\Security\Cryptography\XmlKeyHelper.cs (1)
23catch (Exception e)
System.Security.Cryptography.Cose (7)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
326catch (Exception ex) when (ex is CborContentException or InvalidOperationException)
System\Security\Cryptography\Cose\CoseHeaderValue.cs (4)
135catch (Exception ex) when (ex is CborContentException or InvalidOperationException or OverflowException) 162catch (Exception ex) when (ex is CborContentException or InvalidOperationException) 189catch (Exception ex) when (ex is CborContentException or InvalidOperationException) 221catch (Exception ex) when (ex is CborContentException or InvalidOperationException)
System\Security\Cryptography\Cose\CoseMessage.cs (2)
165catch (Exception ex) when (ex is CborContentException or InvalidOperationException) 250catch (Exception ex) when (ex is CborContentException or InvalidOperationException)
System.Security.Cryptography.Pkcs (31)
Internal\Cryptography\DecryptorPal.cs (1)
39out Exception? exception);
Internal\Cryptography\Pal\AnyOS\ManagedPal.Decrypt.cs (3)
38out Exception? exception) 97out Exception? exception) 146out Exception? exception)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Exceptions.cs (4)
11public override Exception CreateRecipientsNotFoundException() 16public override Exception CreateRecipientInfosAfterEncryptException() 21public override Exception CreateDecryptAfterEncryptException() 26public override Exception CreateDecryptTwiceException()
Internal\Cryptography\Pal\AnyOS\ManagedPal.KeyTrans.cs (3)
36internal byte[]? DecryptCek(X509Certificate2? cert, RSA? privateKey, out Exception? exception) 70out Exception? exception) 185out Exception? exception)
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decrypt.cs (3)
25out Exception? exception) 195private Exception? TryDecryptAgree(KeyAgreeRecipientInfo keyAgreeRecipientInfo, SafeProvOrNCryptKeyHandle hKey, CryptKeySpec keySpec, X509Certificate2Collection originatorCerts, X509Certificate2Collection extraStore) 200return pal.WithCmsgCmsRecipientInfo<Exception?>(
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (1)
61Exception e = Marshal.GetLastPInvokeError().ToCryptographicException();
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (6)
63public sealed override Exception CreateRecipientsNotFoundException() 68public sealed override Exception CreateRecipientInfosAfterEncryptException() 73public sealed override Exception CreateDecryptAfterEncryptException() 78public sealed override Exception CreateDecryptTwiceException() 114out Exception? exception); 195out Exception? exception)
Internal\Cryptography\Pal\Windows\PkcsPalWindows.Encrypt.cs (1)
123Exception e = Marshal.GetLastPInvokeError().ToCryptographicException();
Internal\Cryptography\PkcsHelpers.cs (1)
340[NotNullWhen(false)] out Exception? exception)
Internal\Cryptography\PkcsPal.cs (4)
51public abstract Exception CreateRecipientsNotFoundException(); 57public abstract Exception CreateRecipientInfosAfterEncryptException(); 63public abstract Exception CreateDecryptAfterEncryptException(); 69public abstract Exception CreateDecryptTwiceException();
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CryptEncodeDecodeWrappers.cs (1)
39Exception e = Marshal.GetLastPInvokeError().ToCryptographicException();
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (2)
218out Exception? exception); 238Exception? exception = PkcsPal.Instance.CreateRecipientsNotFoundException();
System\Security\Cryptography\Pkcs\SignedCms.cs (1)
264catch (Exception) when (contentType != Oids.Pkcs7Data)
System.Security.Cryptography.Xml (4)
System\Security\Cryptography\Xml\CryptoHelpers.cs (1)
88catch (Exception)
System\Security\Cryptography\Xml\CryptoSignedXmlRecursionException.cs (1)
22public CryptoSignedXmlRecursionException(string message, Exception inner) : base(message, inner) { }
System\Security\Cryptography\Xml\DSAKeyValue.cs (1)
200catch (Exception ex)
System\Security\Cryptography\Xml\RSAKeyValue.cs (1)
131catch (Exception ex)
System.Security.Permissions (3)
System\Security\HostProtectionException.cs (1)
36public HostProtectionException(string message, Exception e) : base(message, e)
System\Security\Policy\PolicyException.cs (1)
20public PolicyException(string message, Exception exception) : base(message, exception) { }
System\Security\XmlSyntaxException.cs (1)
16public XmlSyntaxException(string message, Exception inner) { }
System.Security.Principal.Windows (2)
System\Security\Principal\IdentityNotMappedException.cs (1)
25public IdentityNotMappedException(string? message, Exception? inner)
System\Security\Principal\WindowsIdentity.cs (1)
840private static Exception GetExceptionFromNtStatus(int status)
System.ServiceModel.Federation (16)
System\IdentityModel\Security\WrapperSecurityCommunicationObject.cs (3)
147private Exception CreateNotOpenException() 152private Exception CreateClosedException() 157internal Exception CreateFaultedException()
System\Runtime\Fx.cs (3)
11public static bool IsFatal(Exception exception) 33ReadOnlyCollection<Exception> innerExceptions = aggException.InnerExceptions; 34foreach (Exception innerException in innerExceptions)
System\Runtime\OperationWithTimeoutAsyncResult.cs (9)
31Exception completionException = null; 36catch (Exception e) 60private Exception _exception; 111protected Action<AsyncResult, Exception> OnCompleting { get; set; } 145catch (Exception exception) 187catch (Exception e) 199protected void Complete(bool completedSynchronously, Exception exception) 229Exception completionException = null; 234catch (Exception e)
System\ServiceModel\Security\SecurityUtils.cs (1)
18Exception faultException = new FaultException(fault, message.Headers.Action);
System.ServiceModel.Federation.Tests (2)
WSTrustChannelFactoryTest.cs (1)
19catch(Exception ex)
WSTrustChannelTest.cs (1)
19catch(Exception ex)
System.ServiceModel.Http (45)
System\ServiceModel\Channels\HttpChannelFactory.cs (2)
433internal Exception CreateToMustEqualViaException(Uri to, Uri via) 1280catch (Exception addHeaderException)
System\ServiceModel\Channels\HttpChannelHelpers.cs (5)
105var inner = requestException.InnerException; 117public static Exception ConvertHttpRequestException(HttpRequestException exception, HttpRequestMessage request, HttpAbortReason abortReason) 163internal static Exception CreateUnexpectedResponseException(HttpResponseMessage response) 192internal static Exception TraceResponseException(Exception exception)
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (4)
61var exception = ProcessHttpAddressing(message); 67private Exception ProcessHttpAddressing(Message message) 69Exception result = null; 268Exception inner = new QuotaExceededException(message);
System\ServiceModel\Channels\HttpsChannelFactory.cs (2)
226catch (Exception ex) 257catch (Exception ex)
System\ServiceModel\Channels\WebSocketHelper.cs (13)
112internal static void ThrowCorrectException(Exception ex) 119internal static void ThrowCorrectException(Exception ex, TimeSpan timeout, string operation) 124internal static Exception ConvertAndTraceException(Exception ex) 134internal static Exception ConvertAndTraceException(Exception ex, TimeSpan timeout, string operation) 147Exception exception = FxTrace.Exception.AsError<OperationCanceledException>(aggregationException); 157Exception communicationException = ConvertAggregateExceptionToCommunicationException(aggregationException); 175internal static Exception ConvertAggregateExceptionToCommunicationException(AggregateException ex) 177Exception exception = FxTrace.Exception.AsError<Exception>(ex); 201internal static Exception CreateExceptionOnTaskFailure(Task task, TimeSpan timeout, string operation) 214internal static TimeoutException GetTimeoutException(Exception innerException, TimeSpan timeout, string operation)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (19)
25private Exception _pendingWritingMessageException; 121catch (Exception ex) 289catch (Exception ex) 325private static void ThrowOnPendingException(ref Exception pendingException) 327Exception exceptionToThrow = pendingException; 347catch (Exception e) 364catch (Exception e) 386catch (Exception) 402catch (Exception) 433catch (Exception ex) 448private Exception _pendingException; 609catch (Exception ex) 662internal void FinishUsingMessageStream(Exception ex) 757catch (Exception ex) 1034catch (Exception ex) 1114catch (Exception ex) 1188catch (Exception ex) 1233Exception pendingException = null; 1253catch (Exception ex)
System.ServiceModel.NetFramingBase (37)
System\ServiceModel\Channels\BufferedConnection.cs (3)
15private Exception _pendingWriteException; 79catch (Exception e) 227Exception exceptionTothrow = _pendingWriteException;
System\ServiceModel\Channels\Connection.cs (1)
344private Exception ConvertIOException(IOException ioException)
System\ServiceModel\Channels\ConnectionPool.cs (3)
344var toe = ae.InnerExceptions.FirstOrDefault(e => e is TimeoutException); 524catch (Exception e) 641catch (Exception) { }
System\ServiceModel\Channels\FramingDecoders.cs (19)
134Exception quotaExceeded = OnSizeQuotaExceeded(_encodedSize); 195protected abstract Exception OnSizeQuotaExceeded(int size); 220protected override Exception OnSizeQuotaExceeded(int size) 222Exception result = new InvalidDataException(SR.Format(SR.FramingViaTooLong, size)); 263protected override Exception OnSizeQuotaExceeded(int size) 268public static Exception GetFaultException(string faultString, string via, string contentType) 292Exception inner = new QuotaExceededException(SR.FramingMaxMessageSizeExceeded); 305Exception inner = new QuotaExceededException(SR.Format(SR.FramingContentTypeTooLongFault, contentType)); 310Exception inner = new QuotaExceededException(SR.Format(SR.FramingViaTooLongFault, via)); 335protected override Exception OnSizeQuotaExceeded(int size) 337Exception result = new InvalidDataException(SR.Format(SR.FramingContentTypeTooLong, size)); 396Exception exception = CreateException(new InvalidDataException(SR.Format( 416Exception inner = CreateInvalidRecordTypeException(FramingRecordType.PreambleAck, foundType); 430private Exception CreateInvalidRecordTypeException(FramingRecordType expectedType, FramingRecordType foundType) 439Exception exception = CreateException(new InvalidDataException(SR.Format( 445public Exception CreatePrematureEOFException() 450protected Exception CreateException(InvalidDataException innerException, string framingFault) 452Exception result = CreateException(innerException); 457protected Exception CreateException(InvalidDataException innerException)
System\ServiceModel\Channels\FramingFormat.cs (2)
155public static bool TryGetFaultString(Exception exception, out string framingFault) 170public static void AddFaultString(Exception exception, string framingFault)
System\ServiceModel\Channels\IdlingCommunicationPool.cs (3)
92private Exception _pendingException; 207catch (Exception e) 305Exception exceptionToThrow = _pendingException;
System\ServiceModel\Channels\SessionConnectionReader.cs (2)
25private Exception _pendingException; 132Exception exception = _pendingException;
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (3)
440Exception e = CreateIdentityCheckException(identity, authorizationContext, SR.IdentityCheckFailedForOutgoingMessage, serviceReference); 446private static Exception CreateIdentityCheckException(EndpointIdentity identity, AuthorizationContext authorizationContext, string errorString, EndpointAddress serviceReference) 448Exception result;
System\ServiceModel\Security\SecurityUtilsEx.cs (1)
167catch (Exception e)
System.ServiceModel.NetNamedPipe (14)
System\IO\PipeException.cs (1)
26public PipeException(string message, Exception inner)
System\ServiceModel\AddressAccessDeniedException.cs (1)
13public AddressAccessDeniedException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\Channels\PipeConnection.cs (6)
86private Exception ConvertPipeException(PipeException pipeException, TransferOperation transferOperation) 91private Exception ConvertPipeException(string exceptionMessage, PipeException pipeException, TransferOperation transferOperation) 415private Exception CreatePipeClosedException(TransferOperation transferOperation) 459Exception exception = ConvertPipeException(new PipeException(SR.PipeSignalExpected), TransferOperation.Read); 483catch(Exception) 487Exception timeoutException = new TimeoutException(SR.Format(SR.PipeWriteTimedOut, timeout));
System\ServiceModel\Channels\PipeConnectionInitiator.cs (6)
31private Exception CreateConnectFailedException(Uri remoteUri, PipeException innerException) 190catch (Exception ex) 198Exception innerException = new PipeException(SR.Format(SR.PipeConnectAddressFailed, 233catch(Exception ex) 319private static Exception CreatePipeNameCannotBeAccessedException(IOException ioe, Uri pipeUri) 321Exception innerException = new PipeException(SR.Format(SR.PipeNameCanNotBeAccessed,
System.ServiceModel.NetTcp (14)
System\ServiceModel\Channels\SocketConnection.cs (14)
226Exception exceptionToThrow = ConvertObjectDisposedException(objectDisposedException, TransferOperation.Read); 308Exception exceptionToThrow = ConvertObjectDisposedException(objectDisposedException, TransferOperation.Write); 417Exception exceptionToThrow = ConvertObjectDisposedException(objectDisposedException, TransferOperation.Undefined); 447catch (Exception exception) 472catch (Exception exception) 653private Exception ConvertObjectDisposedException(ObjectDisposedException originalException, TransferOperation transferOperation) 669private Exception ConvertSendException(SocketException socketException, TimeSpan remainingTime, TimeSpan timeout) 675private Exception ConvertReceiveException(SocketException socketException, TimeSpan remainingTime, TimeSpan timeout) 681private static Exception ConvertTransferException(SocketException socketException, TimeSpan timeout, Exception originalException, 736private static Exception ConvertTimeoutErrorException(Exception originalException, 825public static Exception ConvertConnectException(SocketException socketException, Uri remoteUri, TimeSpan timeSpent, Exception innerException)
System.ServiceModel.Primitives (538)
ExceptionHelper.cs (3)
12public static Exception AsError(Exception exception) 27public static Exception CreateMaxReceivedMessageSizeExceededException(long maxMessageSize)
Internals\NotImplementedHelpers.cs (2)
21internal static Exception ByDesign 29internal static Exception ByDesignWithMessage(String message)
Internals\System\Runtime\AsyncResult.cs (7)
18private Exception _exception; 73protected Action<AsyncResult, Exception> OnCompleting { get; set; } 107catch (Exception exception) 149catch (Exception e) 161protected void Complete(bool completedSynchronously, Exception exception) 191Exception completionException = null; 196catch (Exception e)
Internals\System\Runtime\BufferedOutputStream.cs (1)
252protected virtual Exception CreateQuotaExceededException(int maxSizeQuota)
Internals\System\Runtime\CallbackException.cs (1)
14public CallbackException(string message, Exception innerException) : base(message, innerException)
Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
126protected static string StackTraceString(Exception exception)
Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (6)
38internal static string ExceptionToTraceString(Exception exception, int maxTraceStringLength) 61private static void WriteExceptionToTraceString(XmlWriter xml, Exception exception, int remainingLength, int remainingAllowedRecursionDepth) 140private static string GetExceptionData(Exception exception) 179private static string GetInnerException(Exception exception, int remainingLength, int remainingAllowedRecursionDepth) 282public TracePayload GetSerializedPayload(object source, TraceRecord traceRecord, Exception exception) 287public TracePayload GetSerializedPayload(object source, TraceRecord traceRecord, Exception exception, bool getServiceReference)
Internals\System\Runtime\ExceptionTrace.cs (24)
30public void TraceEtwException(Exception exception, EventLevel eventLevel) 60public void TraceEtwException(Exception exception, TraceEventType eventLevel) 90public void AsInformation(Exception exception) 95public void AsWarning(Exception exception) 100public Exception AsError(Exception exception) 106return AsError<Exception>(aggregateException); 119public Exception AsError(Exception exception, string eventSource) 125return AsError<Exception>(aggregateException, eventSource); 138public Exception AsError(TargetInvocationException targetInvocationException, string eventSource) 150Exception innerException = targetInvocationException.InnerException; 158return TraceException<Exception>(targetInvocationException, eventSource); 161public Exception AsError<TPreferredException>(AggregateException aggregateException) 182public Exception AsError<TPreferredException>(AggregateException aggregateException, string eventSource) 195ReadOnlyCollection<Exception> innerExceptions = aggregateException.Flatten().InnerExceptions; 202Exception favoredException = null; 203foreach (Exception nextInnerException in innerExceptions) 208Exception innerException = (targetInvocationException != null && targetInvocationException.InnerException != null) 266public void TraceHandledException(Exception exception, TraceEventType traceEventType) 293public void TraceUnhandledException(Exception exception) 299where TException : Exception 305where TException : Exception 317private void BreakOnException(Exception exception)
Internals\System\Runtime\FatalException.cs (1)
15public FatalException(string message, Exception innerException) : base(message, innerException)
Internals\System\Runtime\Fx.cs (13)
120public static Exception AssertAndThrow(string description) 136public static Exception AssertAndThrowFatal(string description) 157public static Exception AssertAndFailFast(string description) 183public static bool IsFatal(Exception exception) 207ReadOnlyCollection<Exception> innerExceptions = ((AggregateException)exception).InnerExceptions; 208foreach (Exception innerException in innerExceptions) 389private static void TraceExceptionNoThrow(Exception exception) 409private static bool HandleAtThreadBase(Exception exception) 425catch (Exception secondException) 456public abstract bool HandleException(Exception exception); 484catch (Exception exception) 946catch (Exception exception) 979catch (Exception exception)
Internals\System\Runtime\InputQueue.cs (8)
379public void EnqueueAndDispatch(Exception exception, Action dequeuedCallback, bool canDispatchOnThisThread) 397public bool EnqueueWithoutDispatch(Exception exception, Action dequeuedCallback) 411public void Shutdown(Func<Exception> pendingExceptionGenerator) 440Exception exception = (pendingExceptionGenerator != null) ? pendingExceptionGenerator() : null; 859public Item(Exception exception, Action dequeuedCallback) 864private Item(T value, Exception exception, Action dequeuedCallback) 873public Exception Exception { get; } 1081private Exception _exception;
Internals\System\Runtime\MruCache.cs (1)
142catch (Exception e)
Internals\System\Runtime\Remoting\SoapHexBinary.cs (1)
71catch (Exception)
Internals\System\Runtime\ScheduleActionItemAsyncResult.cs (2)
28Exception completionException = null; 33catch (Exception ex)
Internals\System\Runtime\TaskHelpers.cs (4)
177catch (Exception e) 183catch (Exception e) 325public static void Wait(this Task task, TimeSpan timeout, Action<Exception, TimeSpan, string> exceptionConverter, string operationType) 333catch (Exception ex)
Internals\System\Xml\XmlMtomReader.cs (1)
549catch (Exception e)
Internals\TraceCore.cs (10)
72internal static void HandledException(EtwDiagnosticTrace trace, string param0, System.Exception exception) 95internal static void HandledExceptionError(EtwDiagnosticTrace trace, string param0, System.Exception exception) 118internal static void HandledExceptionVerbose(EtwDiagnosticTrace trace, string param0, System.Exception exception) 141internal static void HandledExceptionWarning(EtwDiagnosticTrace trace, string param0, System.Exception exception) 176internal static void ThrowingException(EtwDiagnosticTrace trace, string param0, string param1, System.Exception exception) 199internal static void UnhandledException(EtwDiagnosticTrace trace, string param0, System.Exception exception) 412internal static void EtwUnhandledException(EtwDiagnosticTrace trace, string param0, System.Exception exception) 436internal static void ThrowingEtwException(EtwDiagnosticTrace trace, string param0, string param1, System.Exception exception) 460internal static void ThrowingEtwExceptionVerbose(EtwDiagnosticTrace trace, string param0, string param1, System.Exception exception) 484internal static void ThrowingExceptionVerbose(EtwDiagnosticTrace trace, string param0, string param1, System.Exception exception)
Internals\WcfEventSource.cs (1)
1358public void ThrowingEtwExceptionVerbose(string data1, string data2, Exception exception)
SMDiagnostics\DiagnosticUtility.cs (1)
52internal static void TraceHandledException(Exception exception, TraceEventType traceEventType)
SMDiagnostics\System\ServiceModel\Diagnostics\ExceptionUtility.cs (27)
37public Exception ThrowHelperFatal(string message, Exception innerException) 42public Exception ThrowHelperInternal(bool fatal) 47public Exception ThrowHelperInvalidOperation(string message) 52public Exception ThrowHelperCallback(string message, Exception innerException) 57public Exception ThrowHelperCallback(Exception innerException) 62public Exception ThrowHelperCritical(Exception exception) 67internal Exception ThrowHelperXml(XmlReader reader, string message) 72internal Exception ThrowHelperXml(XmlReader reader, string message, Exception inner) 100internal Exception ThrowHelperError(Exception exception, Message message) 113public Exception ThrowHelperWarning(Exception exception) 118public Exception ThrowHelperError(Exception exception) 123internal Exception ThrowHelperError(Exception exception, Guid activityId, object source) 128internal Exception ThrowHelper(Exception exception, TraceEventType eventType) 133internal Exception ThrowHelper(Exception exception, EventLevel eventLevel) 144internal Exception ThrowHelper(Exception exception, TraceEventType eventType, TraceRecord extendedData)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
414private static Exception s_initializationException; 504catch (Exception ex)
System\IdentityModel\SecurityMessageSerializationException.cs (1)
16public SecurityMessageSerializationException(string message, Exception innerException)
System\IdentityModel\Selectors\X509CertificateValidator.cs (3)
115Exception exception; 139internal bool TryValidate(X509Certificate2 certificate, out Exception exception) 264Exception exception;
System\IdentityModel\Tokens\KeyInfoSerializer.cs (4)
198catch (Exception e) 251catch (Exception e) 295catch (Exception e) 330private bool ShouldWrapException(Exception e)
System\IdentityModel\Tokens\SecurityTokenException.cs (1)
14public SecurityTokenException(string message, Exception innerException) : base(message, innerException) { }
System\IdentityModel\Tokens\SecurityTokenValidationException.cs (1)
14public SecurityTokenValidationException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\ActionNotSupportedException.cs (1)
16public ActionNotSupportedException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\Channels\BinaryMessageEncoder.cs (6)
464Exception inner = new QuotaExceededException(message); 1608Exception ex = null; 1613catch (Exception e) 1626catch (Exception e) 1645catch (Exception e) 1666catch (Exception e)
System\ServiceModel\Channels\BufferedReadStream.cs (3)
180private int ReadFromBuffer(byte[] array, int offset, int count, out Exception error) 187catch (Exception ex) 328Exception error;
System\ServiceModel\Channels\BufferedWriteStream.cs (3)
261private void WriteToBuffer(byte[] array, ref int offset, ref int count, out Exception error) 268catch (Exception ex) 436Exception error;
System\ServiceModel\Channels\BufferManagerOutputStream.cs (1)
42protected override Exception CreateQuotaExceededException(int maxSizeQuota)
System\ServiceModel\Channels\ChannelManagerBase.cs (1)
47internal Exception CreateChannelTypeNotSupportedException(Type type)
System\ServiceModel\Channels\ChannelReliableSession.cs (8)
154public void OnLocalFault(Exception e, WsrmFault fault, RequestContext context) 161public void OnLocalFault(Exception e, Message faultMessage, RequestContext context) 193public void OnRemoteFault(Exception e) 259Exception e; 284public void OnUnknownException(Exception e) 303Exception e; 429Exception e = fault.CreateException(); 511Exception e = fault.CreateException();
System\ServiceModel\Channels\ChannelRequirements.cs (5)
225public static Exception CantCreateListenerException(IEnumerable<Type> supportedChannels, IEnumerable<Type> requiredChannels, string bindingName) 230Exception exception = ChannelRequirements.BindingContractMismatchException(supportedChannels, requiredChannels, bindingName, 243public static Exception CantCreateChannelException(IEnumerable<Type> supportedChannels, IEnumerable<Type> requiredChannels, string bindingName) 248Exception exception = ChannelRequirements.BindingContractMismatchException(supportedChannels, requiredChannels, bindingName, 260public static Exception BindingContractMismatchException(IEnumerable<Type> supportedChannels, IEnumerable<Type> requiredChannels,
System\ServiceModel\Channels\ClientReliableChannelBinder.cs (1)
182catch (Exception e)
System\ServiceModel\Channels\ClientReliableDuplexSessionChannel.cs (10)
22private Exception _maxRetryCountException = null; 268Exception remoteFaultException = null; 681private void OnBinderException(IReliableChannelBinder sender, Exception exception) 698private void OnBinderFaulted(IReliableChannelBinder sender, Exception exception) 802private void OnComponentFaulted(Exception faultException, WsrmFault fault) 807private void OnComponentException(Exception exception) 857catch (Exception e) 949Exception e = new CommunicationException(SRP.EarlySecurityClose); 967catch (Exception e) 1243catch (Exception e)
System\ServiceModel\Channels\CloseCollectionAsyncResult.cs (5)
15private Exception _exception; 40catch (Exception e) 61Exception closeException = null; 66catch (Exception e) 111private void Decrement(bool completedSynchronously, Exception exception)
System\ServiceModel\Channels\CommunicationObject.cs (20)
332private Exception CreateNotOpenException() 337private Exception CreateImmutableException() 342private Exception CreateBaseClassMethodNotCalledException(string method) 347internal Exception CreateClosedException() 359internal Exception CreateFaultedException() 365internal Exception CreateAbortedException() 429internal void Fault(Exception exception) 435internal void AddPendingException(Exception exception) 448internal Exception GetPendingException() 467internal Exception GetTerminalException() 469Exception exception = GetPendingException(); 604catch (Exception exception) 638catch (Exception exception) 669catch (Exception exception) 703catch (Exception exception) 727catch (Exception exception) 1077private Queue<Exception> _exceptions = new Queue<Exception>(); 1086public void AddException(Exception exception) 1099public Exception GetException()
System\ServiceModel\Channels\FaultConverter.cs (10)
17protected abstract bool OnTryCreateException(Message message, MessageFault fault, out Exception exception); 18protected abstract bool OnTryCreateFaultMessage(Exception exception, out Message message); 20public bool TryCreateException(Message message, MessageFault fault, out Exception exception) 38Exception error = new InvalidOperationException(text); 47Exception error = new InvalidOperationException(text, exception); 55public bool TryCreateFaultMessage(Exception exception, out Message message) 64Exception error = new InvalidOperationException(text); 73Exception error = new InvalidOperationException(text); 90protected override bool OnTryCreateException(Message message, MessageFault fault, out Exception exception) 198protected override bool OnTryCreateFaultMessage(Exception exception, out Message message)
System\ServiceModel\Channels\InputChannel.cs (1)
25private static Exception CreateReceiveTimedOutException(IInputChannel channel, TimeSpan timeout)
System\ServiceModel\Channels\InputQueueChannel.cs (2)
45public void EnqueueAndDispatch(Exception exception, Action dequeuedCallback, bool canDispatchOnThisThread) 59public bool EnqueueWithoutDispatch(Exception exception, Action dequeuedCallback)
System\ServiceModel\Channels\IReliableChannelBinder.cs (3)
9internal delegate void BinderExceptionHandler(IReliableChannelBinder sender, Exception exception); 36void HandleException(Exception e); 37bool IsHandleable(Exception e);
System\ServiceModel\Channels\MaxMessageSizeStream.cs (4)
84public static Exception CreateMaxReceivedMessageSizeExceededException(long maxMessageSize) 87Exception inner = new QuotaExceededException(message); 97internal static Exception CreateMaxSentMessageSizeExceededException(long maxMessageSize) 100Exception inner = new QuotaExceededException(message);
System\ServiceModel\Channels\Message.cs (16)
282internal Exception CreateMessageDisposedException() 1146Exception ex = null; 1151catch (Exception e) 1168catch (Exception e) 1351Exception versionMismatchException = new ArgumentException(SRP.Format(SRP.EncoderEnvelopeVersionMismatch, envelopeVersion, desiredVersion.Envelope), "reader"); 1426Exception ex = null; 1431catch (Exception e) 1445catch (Exception e) 1465catch (Exception e) 1579Exception versionMismatchException = new ArgumentException(SRP.Format(SRP.EncoderEnvelopeVersionMismatch, envelopeVersion, desiredVersion.Envelope), "reader"); 1754Exception ex = null; 1759catch (Exception e) 1773catch (Exception e) 1793catch (Exception e) 1815catch (Exception e) 2005Exception inner = new QuotaExceededException(message);
System\ServiceModel\Channels\MessageBuffer.cs (1)
48internal Exception CreateBufferDisposedException()
System\ServiceModel\Channels\MessageHeaders.cs (1)
645private Exception CreateDuplicateHeaderException(HeaderKind kind)
System\ServiceModel\Channels\OpenCollectionAsyncResult.cs (3)
15private Exception _exception; 64catch (Exception e) 95private void Decrement(bool completedSynchronously, Exception exception)
System\ServiceModel\Channels\ReliableChannelBinder.cs (24)
264catch (Exception e) 303catch (Exception e) 319protected void Fault(Exception e) 349private Exception GetClosedException(MaskingMode maskingMode) 367private Exception GetClosedOrFaultedException(MaskingMode maskingMode) 385private Exception GetFaultedException(MaskingMode maskingMode) 400public void HandleException(Exception e) 405protected bool HandleException(Exception e, MaskingMode maskingMode) 427protected bool HandleException(Exception e, MaskingMode maskingMode, bool autoAborted) 440public bool IsHandleable(Exception e) 468catch (Exception e) 508Exception e = null; 567catch (Exception e) 591private void RaiseOnException(Exception e) 647catch (Exception e) 691Exception e = GetClosedOrFaultedException(maskingMode); 781catch (Exception e) 1516Exception e; 1742var exception = _synchronizer._binder.GetClosedException(_maskingMode); 1756var exception = _synchronizer._binder.GetFaultedException(_maskingMode); 1946catch (Exception e) 1979catch (Exception e) 2039catch (Exception e) 2113catch (Exception e)
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (7)
325private Exception GetException() 542catch (Exception e) 652catch (Exception e) 875private bool HandleException(Exception exception, bool lastIteration) 938catch (Exception e) 1816public static Exception CreateCSFaultException(MessageVersion version, 1873Exception exception;
System\ServiceModel\Channels\ReliableOutputConnection.cs (6)
13internal delegate void ComponentFaultedHandler(Exception faultException, WsrmFault fault); 14internal delegate void ComponentExceptionHandler(Exception exception); 167catch (Exception e) 282private void RaiseFault(Exception faultException, WsrmFault fault) 290private void RaiseOnException(Exception exception) 327catch (Exception e)
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (11)
16private Exception _maxRetryCountException = null; 50protected Exception MaxRetryCountException 209private void OnBinderException(IReliableChannelBinder sender, Exception exception) 226private void OnBinderFaulted(IReliableChannelBinder sender, Exception exception) 301private void OnComponentFaulted(Exception faultException, WsrmFault fault) 306private void OnComponentException(Exception exception) 667catch (Exception e) 744catch (Exception e) 781catch (Exception e) 832Exception e = new CommunicationException(SRP.EarlySecurityClose); 842catch (Exception e)
System\ServiceModel\Channels\ReliableRequestSessionChannel.cs (7)
19private Exception maxRetryCountException = null; 142private Exception GetInvalidAddException() 218private void OnBinderException(IReliableChannelBinder sender, Exception exception) 235private void OnBinderFaulted(IReliableChannelBinder sender, Exception exception) 307catch (Exception e) 334private void OnComponentFaulted(Exception faultException, WsrmFault fault) 339private void OnComponentException(Exception exception)
System\ServiceModel\Channels\RequestContextBase.cs (2)
15private Exception _requestMessageException; 55protected void SetRequestMessage(Exception requestMessageException)
System\ServiceModel\Channels\SecurityChannelFactory.cs (3)
267protected bool TryGetSecurityFaultException(Message faultMessage, out Exception faultException) 437Exception faultException = null; 583Exception faultException = null;
System\ServiceModel\Channels\SecurityChannelFaultConverter.cs (2)
17protected override bool OnTryCreateException(Message message, MessageFault fault, out Exception exception) 37protected override bool OnTryCreateFaultMessage(Exception exception, out Message message)
System\ServiceModel\Channels\ServiceChannel.cs (19)
580Exception error = new InvalidOperationException(text); 588Exception error = new InvalidOperationException(text); 598Exception error = new InvalidOperationException(text); 936Exception error = new ProtocolException(SRP.Format(SRP.SFxReplyActionMismatch3, 1016Exception exception; 1100Exception error = new CommunicationObjectAbortedException(text); 1120Exception error = new InvalidOperationException(text); 1139Exception error = new InvalidOperationException(text); 1742Exception exception = null; 1748catch (Exception e) 1771Exception exception = null; 1777catch (Exception e) 1806Exception exception = null; 1813catch (Exception e) 1837Exception exception = null; 1852catch (Exception e) 1890Exception exception = null; 1909catch (Exception e) 1926private void CallComplete(bool completedSynchronously, Exception exception)
System\ServiceModel\Channels\ServiceChannelProxy.cs (6)
188catch (Exception e) 203catch (Exception e) 228catch (Exception e) 243catch (Exception e) 270public bool TrySetException(Exception exception) 294TrySetExceptionMethod = GenericType.GetRuntimeMethod("TrySetException", new Type[] { typeof(Exception) });
System\ServiceModel\Channels\TransmissionStrategy.cs (2)
320catch (Exception e) 743private Exception _exception;
System\ServiceModel\Channels\WsrmMessageInfo.cs (7)
16private Exception _faultException; 37public Exception FaultException 83public Exception ParsingException { get; private set; } 103public static Exception CreateInternalFaultException(Message faultReply, string message, Exception inner) 108private static Exception CreateWsrmRequiredException(MessageVersion messageVersion) 581public InternalFaultException(Message faultReply, string message, Exception inner)
System\ServiceModel\ChannelTerminatedException.cs (1)
14public ChannelTerminatedException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\ClientBase.cs (7)
191catch (Exception ex) 800internal InvokeAsyncCompletedEventArgs(object[] results, Exception error, bool cancelled, object userState) 826Exception error = null; 837catch (Exception e) 860Exception error = null; 866catch (Exception e) 879private static void CompleteAsyncCall(AsyncOperationContext context, object[] results, Exception error)
System\ServiceModel\CommunicationException.cs (1)
14public CommunicationException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\CommunicationObjectAbortedException.cs (1)
14public CommunicationObjectAbortedException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\CommunicationObjectFaultedException.cs (1)
14public CommunicationObjectFaultedException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\Description\DispatcherBuilder.cs (1)
308Exception error = new InvalidOperationException(text);
System\ServiceModel\Description\ServiceReflector.cs (1)
511catch (Exception e)
System\ServiceModel\Diagnostics\ActivityIdHeader.cs (2)
53catch (Exception e) 91catch (Exception e)
System\ServiceModel\Diagnostics\TraceUtility.cs (11)
41catch (Exception e) 57catch (Exception e) 348internal static Exception ThrowHelperWarning(Exception exception, Message message) 444catch (Exception e) 455internal static Exception ThrowHelperError(Exception exception, Message message) 461internal static Exception ThrowHelperError(Exception exception, Guid activityId, object source) 480internal static void TraceUserCodeException(Exception e, MethodInfo method) 596internal static void TraceEvent(TraceEventType severity, int traceCode, string traceDescription, TraceRecord extendedData, object source, Exception exception)
System\ServiceModel\Dispatcher\BufferedReceiveBinder.cs (2)
194catch (Exception exception) 236catch (Exception exception)
System\ServiceModel\Dispatcher\ChannelDispatcher.cs (6)
285internal bool HandleError(Exception error) 291internal bool HandleError(Exception error, ref ErrorHandlerFaultInfo faultInfo) 327catch (Exception e) 595internal void ProvideFault(Exception e, FaultConverter faultConverter, ref ErrorHandlerFaultInfo faultInfo) 624Exception error = new InvalidOperationException(SRP.SFxChannelDispatcherNoMessageVersion); 668Exception error = new InvalidOperationException(SRP.SFxCollectionDoesNotSupportSet0);
System\ServiceModel\Dispatcher\ChannelHandler.cs (23)
297catch (Exception e) 490private void ProvideFault(Exception e, ref ErrorHandlerFaultInfo faultInfo) 503internal bool HandleError(Exception e) 509private bool HandleError(Exception e, ref ErrorHandlerFaultInfo faultInfo) 530private bool HandleError(Exception e, RequestContext request, ServiceChannel channel) 546private bool HandleErrorContinuation(Exception e, RequestContext request, ServiceChannel channel, ref ErrorHandlerFaultInfo faultInfo, bool replied) 554catch (Exception e1) 578catch (Exception e2) 590catch (Exception e3) 613catch (Exception e4) 769Exception exception = null; 774catch (Exception e) 886private void ProvideFaultAndReplyFailure(RequestContext request, Exception exception, ref ErrorHandlerFaultInfo faultInfo, out bool replied, out bool replySentAsync) 895catch (Exception e) 955catch (Exception e) 990catch (Exception e) 1039catch (Exception e) 1053catch (Exception e) 1067catch (Exception e) 1092catch (Exception e) 1174catch (Exception e) 1209catch (Exception e) 1300public Exception Exception;
System\ServiceModel\Dispatcher\ConcurrencyBehavior.cs (1)
196catch (Exception e)
System\ServiceModel\Dispatcher\DispatchRuntime.cs (1)
383catch (Exception ex)
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (14)
706Exception completionException = null; 712catch (Exception exception) 807private Exception _sendException; 936Exception sendException = null; 942catch (Exception e) 1175Exception exceptionFromBeginReceive = null; 1180catch (Exception e) 1226Exception receiveException = null; 1231catch (Exception e) 1271Exception backgroundCloseException = null; 1280catch (Exception e) 1315Exception backgroundCloseException = null; 1320catch (Exception e) 1588public void CaptureBackgroundException(Exception exception)
System\ServiceModel\Dispatcher\EndpointDispatcher.cs (2)
76Exception error = new InvalidOperationException(SRP.SFxEndpointDispatcherMultipleChannelDispatcher0); 93Exception error = new InvalidOperationException(SRP.SFxEndpointDispatcherDifferentChannelDispatcher0);
System\ServiceModel\Dispatcher\ErrorBehavior.cs (13)
29Exception error = rpc.Error; 85private void ProvideFaultOfLastResort(Exception error, ref ErrorHandlerFaultInfo faultInfo) 119internal void ProvideFault(Exception e, FaultConverter faultConverter, ref ErrorHandlerFaultInfo faultInfo) 135private void ProvideWellKnownFault(Exception e, FaultConverter faultConverter, ref ErrorHandlerFaultInfo faultInfo) 175private bool HandleErrorCommon(Exception error, ref ErrorHandlerFaultInfo faultInfo) 204catch (Exception e) 215internal bool HandleError(Exception error) 221internal bool HandleError(Exception error, ref ErrorHandlerFaultInfo faultInfo) 226internal static bool ShouldRethrowExceptionAsIs(Exception e) 231internal static bool ShouldRethrowClientSideExceptionAsIs(Exception e) 238internal static void ThrowAndCatch(Exception e, Message message) 265catch (Exception e2) 274internal static void ThrowAndCatch(Exception e)
System\ServiceModel\Dispatcher\ErrorHandlingReceiver.cs (6)
28catch (Exception e) 38private void HandleError(Exception e) 46private void HandleErrorOrAbort(Exception e) 85catch (Exception e) 121catch (Exception e) 168catch (Exception e)
System\ServiceModel\Dispatcher\IErrorHandler.cs (2)
12void ProvideFault(Exception error, MessageVersion version, ref Message fault); 13bool HandleError(Exception error);
System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (10)
86catch (Exception e) 115catch (Exception e) 153catch (Exception e) 201catch (Exception e) 253Exception exception = null; 263catch (Exception e) 301Exception exception = null; 314private void CallEnd(IAsyncResult result, out Exception exception) 321catch (Exception e) 332private void CallComplete(bool completedSynchronously, Exception exception)
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (21)
115catch (Exception e) 129void BeforeSendReply(ref MessageRpc rpc, ref Exception exception, ref bool thereIsAnUnhandledException) 137internal void BeforeSendReplyCore(ref MessageRpc rpc, ref Exception exception, ref bool thereIsAnUnhandledException) 160catch (Exception e) 204catch (Exception e) 244catch (Exception e) 288catch (Exception e) 369Exception exception = null; 380catch (Exception e) 414catch (Exception e) 577catch (Exception e) 646catch (Exception e) 677catch (Exception e) 710catch (Exception e) 790catch (Exception e) 834catch (Exception e) 852catch (Exception e) 866catch (Exception e) 883catch (Exception e) 902catch (Exception e) 918catch (Exception e)
System\ServiceModel\Dispatcher\InstanceBehavior.cs (1)
34catch (Exception e)
System\ServiceModel\Dispatcher\InvalidBodyAccessException.cs (1)
13protected InvalidBodyAccessException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\Dispatcher\InvokerUtil.cs (1)
92Exception actualException = tie.InnerException;
System\ServiceModel\Dispatcher\ListenerHandler.cs (4)
158catch (Exception e) 187catch (Exception e) 256catch (Exception e) 352private bool HandleError(Exception e)
System\ServiceModel\Dispatcher\MessageRpc.cs (13)
34internal Exception Error; 161catch (Exception e) 207catch (Exception e) 226catch (Exception e) 245catch (Exception e) 264catch (Exception e) 283private bool ProcessError(Exception e) 311catch (Exception e2) 348catch (Exception e) 375catch (Exception e) 433catch (Exception e) 462catch (Exception e) 575Exception error = new InvalidOperationException(text);
System\ServiceModel\Dispatcher\NetDispatcherFaultException.cs (2)
10public NetDispatcherFaultException(string reason, FaultCode code, Exception innerException) 14public NetDispatcherFaultException(FaultReason reason, FaultCode code, Exception innerException)
System\ServiceModel\Dispatcher\OperationFormatter.cs (1)
603internal static NetDispatcherFaultException CreateDeserializationFailedFault(string reason, Exception innerException)
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (2)
164catch (Exception e) 202catch (Exception e)
System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
387catch (Exception ex)
System\ServiceModel\EndpointNotFoundException.cs (1)
14public EndpointNotFoundException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\ExceptionDetail.cs (1)
17public ExceptionDetail(Exception exception)
System\ServiceModel\FaultException.cs (2)
66internal FaultException(string reason, FaultCode code, string action, Exception innerException) 82internal FaultException(FaultReason reason, FaultCode code, string action, Exception innerException)
System\ServiceModel\InstanceContext.cs (1)
183Exception error = new InvalidOperationException(SRP.SFxInstanceNotInitialized);
System\ServiceModel\InvalidMessageContractException.cs (1)
14public InvalidMessageContractException(String message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\MessageHeaderException.cs (3)
16public MessageHeaderException(string message, Exception innerException) : this(message, null, null, innerException) { } 19public MessageHeaderException(string message, string headerName, string ns, Exception innerException) : this(message, headerName, ns, false, innerException) { } 20public MessageHeaderException(string message, string headerName, string ns, bool isDuplicate, Exception innerException) : base(message, innerException)
System\ServiceModel\OperationContext.cs (1)
333catch (Exception e)
System\ServiceModel\ProtocolException.cs (1)
16public ProtocolException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\QuotaExceededException.cs (1)
14public QuotaExceededException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\Security\IdentityVerifier.cs (3)
81Exception e = CreateIdentityCheckException(identity, authorizationContext, errorString, serviceReference); 87private Exception CreateIdentityCheckException(EndpointIdentity identity, AuthorizationContext authorizationContext, string errorString, EndpointAddress serviceReference) 89Exception result;
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (5)
250Exception e = new InvalidOperationException(SRP.Format(SRP.CommunicationObjectCannotBeUsed, GetType().ToString(), state.ToString())); 507catch (Exception e) 627private static bool ShouldWrapException(Exception e) 639private static Exception WrapExceptionIfRequired(Exception e, EndpointAddress targetAddress, EndpointAddress issuerAddress)
System\ServiceModel\Security\MessageSecurityException.cs (1)
14public MessageSecurityException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\Security\SecurityAccessDeniedException.cs (1)
13public SecurityAccessDeniedException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\Security\SecurityAppliedMessage.cs (1)
43private Exception CreateBadStateException(string operation)
System\ServiceModel\Security\SecurityNegotiationException.cs (1)
14public SecurityNegotiationException(String message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\Security\SecurityProtocol.cs (5)
162catch (Exception e) 188catch (Exception e) 214catch (Exception e) 240catch (Exception e) 641protected virtual void OnVerifyIncomingMessageFailure(Message message, Exception exception)
System\ServiceModel\Security\SecuritySessionClientSettings.cs (8)
521private void OnInnerFaulted(IReliableChannelBinder sender, Exception exception) 826private bool ShouldWrapException(Exception e) 878catch (Exception e) 902Exception faultException = null; 1486Exception faultException = null; 1674catch (Exception e) 1792Exception pendingException = null; 1804catch (Exception e)
System\ServiceModel\Security\SecuritySessionSecurityTokenProvider.cs (2)
483private void OnOperationFailure(SecuritySessionOperation operation, EndpointAddress target, SecurityToken currentToken, Exception e, IChannel channel) 536catch (Exception e)
System\ServiceModel\Security\SecurityUtils.cs (5)
900internal static Exception CreateCertificateLoadException(StoreName storeName, StoreLocation storeLocation, 977Exception faultException = new FaultException(fault, message.Headers.Action); 1012internal static Exception CreateSecurityFaultException(MessageFault fault) 1108Exception completionException = null; 1116catch (Exception e)
System\ServiceModel\Security\SecurityVerifiedMessage.cs (1)
110private Exception CreateBadStateException(string operation)
System\ServiceModel\Security\SessionKeyExpiredException.cs (1)
14public SessionKeyExpiredException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\Security\TimeBoundedCache.cs (1)
398Exception inner = new QuotaExceededException(message);
System\ServiceModel\Security\Tokens\SecurityContextTokenValidationException.cs (1)
15public SecurityContextTokenValidationException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\Security\TransportSecurityProtocol.cs (1)
83catch (Exception e)
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (4)
178private bool ShouldWrapException(Exception e) 213catch (Exception e) 252catch (Exception e) 412catch (Exception e)
System\ServiceModel\Security\WSTrust.cs (1)
863catch (Exception e)
System\ServiceModel\ServerTooBusyException.cs (1)
15public ServerTooBusyException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\ServiceActivationException.cs (1)
14public ServiceActivationException(string message, Exception innerException) : base(message, innerException) { }
System\ServiceModel\XmlBuffer.cs (1)
129private Exception CreateInvalidStateException()
System.ServiceModel.Primitives.Tests (14)
Channels\CustomBindingTest.cs (1)
33catch (Exception ex)
Security\SecurityNegotiationExceptionTest.cs (1)
20Exception innerException = new Exception(exceptionMessage);
ServiceModel\FaultExceptionTest.cs (1)
198Assert.IsAssignableFrom<Exception>(exception);
ServiceModel\ThrowingChannelBase.cs (2)
13private readonly Exception _exception; 15protected ThrowingChannelBase(ChannelManagerBase manager, Exception exception, TChannel innerChannel) : base(manager)
ServiceModel\ThrowingOnCloseBindingElement.cs (9)
13private Exception _exception; 21public ThrowingOnCloseBindingElement(Exception exception, bool channelThrows) 186public ThrowingOutputChannel(ThrowingChannelFactory<TChannel> factory, Exception exception, IOutputChannel innerChannel) 203public ThrowingRequestChannel(ThrowingChannelFactory<TChannel> factory, Exception exception, IRequestChannel innerChannel) 223ThrowingChannelFactory<TChannel> factory, Exception exception, IOutputSessionChannel innerChannel) 236ThrowingChannelFactory<TChannel> factory, Exception exception, IRequestSessionChannel innerChannel) 247public ThrowingInputChannel(ChannelManagerBase manager, Exception exception, T innerChannel) : base(manager, exception, innerChannel) 268public ThrowingDuplexChannel(ChannelManagerBase manager, Exception exception, IDuplexChannel innerChannel) : base(manager, exception, innerChannel) 286public ThrowingDuplexSessionChannel(ChannelManagerBase manager, Exception exception, IDuplexSessionChannel innerChannel) : base(manager, exception, innerChannel)
System.ServiceModel.Syndication (5)
System\ServiceModel\Syndication\SyndicationFeed.cs (1)
150internal Exception LastUpdatedTimeException { get; set; }
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (2)
340catch (Exception e) 366catch (Exception e)
System\ServiceModel\Syndication\SyndicationItem.cs (2)
103internal Exception LastUpdatedTimeException { get; set; } 128internal Exception PublishDateException { get; set; }
System.ServiceModel.UnixDomainSocket (14)
System\ServiceModel\Channels\SocketConnection.cs (14)
208Exception exceptionToThrow = ConvertObjectDisposedException(objectDisposedException, TransferOperation.Read); 287Exception exceptionToThrow = ConvertObjectDisposedException(objectDisposedException, TransferOperation.Write); 396Exception exceptionToThrow = ConvertObjectDisposedException(objectDisposedException, TransferOperation.Undefined); 426catch (Exception exception) 449catch (Exception exception) 617private Exception ConvertObjectDisposedException(ObjectDisposedException originalException, TransferOperation transferOperation) 633private Exception ConvertSendException(SocketException socketException, TimeSpan remainingTime, TimeSpan timeout) 639private Exception ConvertReceiveException(SocketException socketException, TimeSpan remainingTime, TimeSpan timeout) 645private static Exception ConvertTransferException(SocketException socketException, TimeSpan timeout, Exception originalException, 700private static Exception ConvertTimeoutErrorException(Exception originalException, 790public static Exception ConvertConnectException(SocketException socketException, Uri remoteUri, TimeSpan timeSpent, Exception innerException)
System.ServiceProcess.ServiceController (16)
System\ServiceProcess\ServiceBase.cs (8)
403catch (Exception e) 426catch (Exception e) 446catch (Exception e) 474catch (Exception e) 490catch (Exception e) 525catch (Exception e) 558catch (Exception e) 832catch (Exception e)
System\ServiceProcess\ServiceController.cs (7)
638Exception inner = new Win32Exception(); 689Exception inner = new Win32Exception(); 811Exception inner = new Win32Exception(); 826Exception inner = new Win32Exception(); 842Exception inner = new Win32Exception(); 900Exception inner = new Win32Exception(); 961Exception inner = new Win32Exception();
System\ServiceProcess\TimeoutException.cs (1)
25public TimeoutException(string? message, Exception? innerException)
System.Speech (65)
Internal\ObjectToken\ObjectToken.cs (2)
52catch (Exception) 291catch (Exception e)
Internal\SapiInterop\SapiProxy.cs (2)
225catch (Exception e) 250private Exception? _exception;
Internal\SrgsCompiler\AppDomainGrammarProxy.cs (8)
19internal SrgsRule[]? OnInit(string method, object[]? parameters, string? onInitParameters, out Exception? exceptionThrown) 52catch (Exception e) 59internal object? OnRecognition(string method, object[] parameters, out Exception? exceptionThrown) 69catch (Exception e) 76internal object? OnParse(string rule, string method, object[] parameters, out Exception? exceptionThrown) 86catch (Exception e) 93internal void OnError(string rule, string method, object?[]? parameters, out Exception? exceptionThrown) 103catch (Exception e)
Internal\SrgsParser\XmlParser.cs (1)
198internal static void ThrowSrgsExceptionWithPosition(string? filename, XmlReader xmlReader, string sError, Exception? innerException)
Internal\Synthesis\EngineSite.cs (5)
74catch (Exception e) 90catch (Exception e) 188catch (Exception e) 252internal Exception? LastException 318private Exception? _exception;
Internal\Synthesis\SSmlParser.cs (2)
91Exception? innerException = null; 1792private static void ThrowFormatException(Exception? innerException, SRID id, params object[] args)
Internal\Synthesis\TTSEvent.cs (4)
14internal TTSEvent(TtsEventId id, Prompt prompt, Exception? exception, VoiceInfo? voice) 22internal TTSEvent(TtsEventId id, Prompt prompt, Exception? exception, VoiceInfo? voice, TimeSpan audioPosition, long streamPosition, string? bookmark, uint wParam, IntPtr lParam) 56internal Exception? Exception 153private Exception? _exception;
Internal\Synthesis\VoiceSynthesis.cs (6)
727catch (Exception e) 792catch (Exception e) 939Exception lastException = _site.LastException; 965private void InjectEvent(TtsEventId evtId, Prompt prompt, Exception? exception, VoiceInfo? voiceInfo) 1004private void ChangeStateToReady(Prompt prompt, Exception? exception) 1762private Exception? _pendingException;
Recognition\EmulateRecognizeCompletedEventArgs.cs (1)
12internal EmulateRecognizeCompletedEventArgs(RecognitionResult? result, Exception? error, bool cancelled, object? userState)
Recognition\Grammar.cs (6)
166catch (Exception e) 343internal Exception? LoadException 723catch (Exception e) 930catch (Exception e) 995Exception? appDomainException; 1115private Exception? _loadException;
Recognition\LoadGrammarCompletedEventArgs.cs (1)
14internal LoadGrammarCompletedEventArgs(Grammar grammar, Exception? error, bool cancelled, object? userState)
Recognition\RecognizeCompletedEventArgs.cs (1)
14Exception? error, bool cancelled, object? userState)
Recognition\RecognizerBase.cs (17)
94catch (Exception e) 843catch (Exception e) 867internal static Exception ExceptionFromSapiCreateRecognizerError(COMException e) 872internal static Exception ExceptionFromSapiCreateRecognizerError(SAPIErrorCodes errorCode) 898Exception? exReturn = null; 909catch (Exception ex) 1542catch (Exception e) 1715Exception? exception = null; 1735catch (Exception e) 2012Exception? exception = null; // Keep track of any error we need to throw 2058catch (Exception fatalException) 2441Exception? lastException = _lastException; 2629private static Exception ExceptionFromSapiStreamError(SAPIErrorCodes errorCode) 2901private void FireRecognizeCompletedEvent(RecognitionResult? result, bool initialSilenceTimeoutReached, bool babbleTimeoutReached, bool isStreamReleased, TimeSpan audioPosition, Exception? exception, bool isRecognizeCancelled) 2919private void FireEmulateRecognizeCompletedEvent(RecognitionResult? result, Exception? exception, bool isRecognizeCancelled) 2998private Exception? _lastException; // Temporarily store last exception but always set to null once recognition completes 3036private Exception? _loadException;
Result\RecognizedPhrase.cs (8)
521Exception? exceptionThrown = null; 808private static bool TryExecuteOnParse(RuleNode ruleRef, SemanticValue value, IList<RecognizedWordUnit> words, out object? newValue, ref Exception? exceptionThrown) 831catch (Exception e) 844catch (Exception e2) 881Exception? appDomainException; 905private static bool ExecuteOnError(Grammar grammar, RuleNode ruleRef, Exception e) 926Exception? appDomainException; 970Exception? appDomainException;
Synthesis\Prompt.cs (1)
111internal Exception? Exception { get; set; }
System.Text.Json (22)
src\runtime\src\libraries\Common\src\System\Text\Json\PooledByteBufferWriter.cs (1)
91public override void Complete(Exception? exception = null) => throw new NotImplementedException();
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\Text\Json\Serialization\JsonConverterOfT.ReadCore.cs (1)
58catch (Exception ex)
System\Text\Json\Serialization\JsonConverterOfT.WriteCore.cs (1)
18catch (Exception ex)
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (1)
295catch (Exception ex)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
986catch (Exception e)
System\Text\Json\Serialization\WriteStack.cs (9)
287Exception? exception = null; 295catch (Exception e) 315Exception? exception = null; 344static void DisposeFrame(IEnumerator? collectionEnumerator, ref Exception? exception) 353catch (Exception e) 366Exception? exception = null; 394static async ValueTask<Exception?> DisposeFrame(IEnumerator? collectionEnumerator, IAsyncDisposable? asyncDisposable, Exception? exception) 409catch (Exception e)
System\Text\Json\ThrowHelper.cs (1)
585public static InvalidOperationException GetInvalidOperationException(string message, Exception? innerException)
System\Text\Json\ThrowHelper.Serialization.cs (5)
518public static void ReThrowWithPath(scoped ref ReadStack state, in Utf8JsonReader reader, Exception ex) 558public static void ReThrowWithPath(ref WriteStack state, Exception ex) 631public static void ThrowNotSupportedException(scoped ref ReadStack state, in Utf8JsonReader reader, Exception innerException) 659public static void ThrowNotSupportedException(ref WriteStack state, Exception innerException) 899public static Exception GetInvalidOperationException_NoMetadataForTypeProperties(IJsonTypeInfoResolver? resolver, Type type)
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\RegexMatchTimeoutException.cs (5)
82/// This constructor initializes the <see cref="Exception.Message"/> property of the new instance 95/// <see cref="Exception.Message"/> property. The string should be localized for the current 112/// to the <see cref="Exception.InnerException"/> property. 116/// <see cref="Exception.Message"/> property. The string should be localized for the current 120public RegexMatchTimeoutException(string message, Exception inner) : base(message ?? SR.RegexMatchTimeoutException_Occurred, inner) { }
System.Text.RegularExpressions.Generator (2)
RegexGenerator.cs (1)
96catch (Exception e)
RegexGenerator.Parser.cs (1)
155catch (Exception e)
System.Threading (8)
System\Threading\Barrier.cs (4)
40public BarrierPostPhaseException(Exception? innerException) 59public BarrierPostPhaseException(string? message, Exception? innerException) 145private Exception? _exception; 802catch (Exception ex)
System\Threading\ReaderWriterLock.cs (4)
1119/// out-of-memory scenarios. <see cref="Exception.HResult"/> property was set to a specific value to indicate the actual 1125/// <see cref="ReaderWriterLockApplicationException"/> is thrown with the same <see cref="Exception.HResult"/> as 1150/// The original code used an incorrect <see cref="Exception.HResult"/> for this exception. The 1151/// <see cref="Exception.HResult"/> value was set to ERROR_NOT_OWNER without first converting that error code into an
System.Threading.AccessControl (10)
src\runtime\src\libraries\Common\src\System\IO\Win32Marshal.cs (4)
15/// Converts, resetting it, the last Win32 error into a corresponding <see cref="Exception"/> object, optionally 18internal static Exception GetExceptionForLastWin32Error(string? path = "") 22/// Converts the specified Win32 error into a corresponding <see cref="Exception"/> object, optionally 25internal static Exception GetExceptionForWin32Error(int errorCode, string? path = "", string? errorDetails = null)
System\Security\AccessControl\EventWaitHandleSecurity.cs (2)
129private static Exception? HandleErrorCode(int errorCode, string? name, SafeHandle? handle, object? context) 131System.Exception? exception = null;
System\Security\AccessControl\MutexSecurity.cs (2)
123private static Exception? HandleErrorCode(int errorCode, string? name, SafeHandle? handle, object? context) 125System.Exception? exception = null;
System\Security\AccessControl\SemaphoreSecurity.cs (2)
117private static Exception? HandleErrorCode(int errorCode, string? name, SafeHandle? handle, object? context) 119System.Exception? exception = null;
System.Threading.Channels (28)
System\Threading\Channels\AsyncOperation.cs (1)
147public bool TrySetException(Exception exception)
System\Threading\Channels\BoundedChannel.cs (2)
47private Exception? _doneWriting; 305public override bool TryComplete(Exception? error)
System\Threading\Channels\ChannelClosedException.cs (2)
19public ChannelClosedException(Exception? innerException) : 25public ChannelClosedException(string? message, Exception? innerException) : base(message ?? SR.ChannelClosedException_DefaultMessage, innerException) { }
System\Threading\Channels\ChannelReader.cs (1)
72catch (Exception exc) when (exc is not (ChannelClosedException or OperationCanceledException))
System\Threading\Channels\ChannelUtilities.cs (7)
14internal static readonly Exception s_doneWritingSentinel = new Exception(nameof(s_doneWritingSentinel)); 30internal static void Complete(TaskCompletionSource tcs, Exception? error = null) 57internal static ValueTask<T> GetInvalidCompletionValueTask<T>(Exception error) 186internal static void SetOrFailOperations<TAsyncOp, T>(TAsyncOp? head, T result, Exception? error = null) 291internal static void FailOperations<TAsyncOp>(TAsyncOp? head, Exception error) 361internal static Exception CreateInvalidCompletionException(Exception? inner = null) =>
System\Threading\Channels\ChannelWriter.cs (4)
15/// <param name="error">An <see cref="Exception"/> indicating the failure causing no more data to be written, or null for success.</param> 20public virtual bool TryComplete(Exception? error = null) => false; 48catch (Exception e) 70public void Complete(Exception? error = null)
System\Threading\Channels\RendezvousChannel.cs (2)
41private Exception? _doneWriting; 252public override bool TryComplete(Exception? error)
System\Threading\Channels\SingleConsumerUnboundedChannel.cs (3)
32private volatile Exception? _doneWriting; 209public override bool TryComplete(Exception? error) 339Exception? doneWriting = _parent._doneWriting;
System\Threading\Channels\UnboundedChannel.cs (3)
33private Exception? _doneWriting; 188public override bool TryComplete(Exception? error) 289Exception? doneWriting = _parent._doneWriting;
System\Threading\Channels\UnboundedPriorityChannel.cs (3)
38private Exception? _doneWriting; 194public override bool TryComplete(Exception? error) 285Exception? doneWriting = _parent._doneWriting;
System.Threading.RateLimiting (29)
System\Threading\RateLimiting\ChainedPartitionedRateLimiter.cs (4)
68Exception? exception = null; 74catch (Exception ex) 99Exception? exception = null; 105catch (Exception ex)
System\Threading\RateLimiting\ChainedRateLimiterShared.cs (9)
76Exception? exception = null; 82catch (Exception ex) 105Exception? exception = null; 111catch (Exception ex) 127internal static RateLimitLease? CommonAcquireLogic(Exception? ex, RateLimitLease? lease, ref RateLimitLease[]? leases, int index, int length) 135Exception[] exceptions = new Exception[innerEx.InnerExceptions.Count + 1]; 157List<Exception>? exceptions = null; 167catch (Exception ex)
System\Threading\RateLimiting\ChainedReplenishingRateLimiter.cs (3)
62List<Exception>? exceptions = null; 72catch (Exception ex) 74exceptions ??= new List<Exception>();
System\Threading\RateLimiting\CombinedRateLimitLease.cs (3)
73List<Exception>? exceptions = null; 83catch (Exception ex) 85exceptions ??= new List<Exception>();
System\Threading\RateLimiting\DefaultPartitionedRateLimiter.cs (10)
124List<Exception>? exceptions = null; 134catch (Exception ex) 136exceptions ??= new List<Exception>(); 162List<Exception>? exceptions = null; 169catch (Exception ex) 171exceptions ??= new List<Exception>(); 225List<Exception>? aggregateExceptions = null; 260catch (Exception ex) 274catch (Exception ex) 276aggregateExceptions ??= new List<Exception>();
System.Threading.Tasks.Dataflow (142)
Base\DataflowBlock.cs (28)
182void IDataflowBlock.Fault(Exception exception) { _target.Fault(exception); } 327catch (Exception exc) 458private void CompleteAsFaulted(Exception exception, bool runAsync) 462var tuple = (Tuple<SendAsyncSource<TOutput>, Exception>)state!; 465}, Tuple.Create<SendAsyncSource<TOutput>, Exception>(this, exception), runAsync); 610catch (Exception exc) 716void IDataflowBlock.Fault(Exception exception) { throw new NotSupportedException(SR.NotSupported_MemberNotNeeded); } 996catch (Exception exc) 1090catch (Exception exception) 1137internal Exception? _receivedException; 1176catch (Exception exc) 1247catch (Exception exc) 1335internal static Exception CreateExceptionForSourceCompletion() 1342internal static Exception CreateExceptionForTimeout() 1354void IDataflowBlock.Fault(Exception exception) { ((IDataflowBlock)this).Complete(); } 1474void IDataflowBlock.Fault(Exception exception) 1540void IDataflowBlock.Fault(Exception exception) 1847catch (Exception exc) 1948List<Exception>? exceptions = null; 2020catch (Exception exc) 2134void IDataflowBlock.Fault(Exception exception) { ((IDataflowBlock)this).Complete(); } 2229Exception? error = null; 2452catch (Exception exc) 2468private void NotifyObserversOfCompletion(Exception? targetException = null) 2489Exception? error = targetException ?? Observable.GetCompletionError(); 2502catch (Exception exc) 2562void IObserver<TInput>.OnError(Exception error) 2631void IDataflowBlock.Fault(Exception exception) { } // No-op
Base\IDataflowBlock.cs (1)
29void Fault(Exception exception);
Blocks\ActionBlock.cs (4)
135catch (Exception exc) 158Exception? caughtException = null; 163catch (Exception exc) { caughtException = exc; } 232void IDataflowBlock.Fault(Exception exception)
Blocks\BatchBlock.cs (10)
102void IDataflowBlock.Fault(Exception exception) 425internal void Complete(Exception? exception, bool dropPendingMessages, bool releaseReservedMessages, bool revertProcessingState = false) 449catch (Exception e) { _owningBatch._source.AddException(e); } 527List<Exception>? exceptions = null; 650Exception? exception = Common.StartTaskSafe(_nonGreedyState.TaskForInputProcessing, _dataflowBlockOptions.TaskScheduler); 654Task.Factory.StartNew(exc => Complete(exception: (Exception)exc!, dropPendingMessages: true, releaseReservedMessages: true, revertProcessingState: true), 699catch (Exception exc) 1086List<Exception>? exceptions = null; 1098catch (Exception e) 1101exceptions ??= new List<Exception>(1);
Blocks\BatchedJoinBlock.cs (5)
157void IDataflowBlock.Fault(Exception exception) 411void IDataflowBlock.Fault(Exception exception) 611void IDataflowBlock.Fault(Exception exception) 674Action<Exception> exceptionAction, Action completionAction) 730internal readonly Action<Exception> _exceptionAction;
Blocks\BroadcastBlock.cs (13)
112void IDataflowBlock.Fault(Exception exception) 119internal void CompleteCore(Exception? exception, bool storeExceptionEvenIfAlreadyCompleting, bool revertProcessingState = false) 266Exception? exception = Common.StartTaskSafe(_boundingState.TaskForInputProcessing, _source.DataflowBlockOptions.TaskScheduler); 270Task.Factory.StartNew(exc => CompleteCore(exception: (Exception)exc!, storeExceptionEvenIfAlreadyCompleting: true, revertProcessingState: true), 293catch (Exception exception) 387List<Exception>? exceptions = null; 530private List<Exception>? _exceptions; 842Exception? exception = Common.StartTaskSafe(_taskForOutputProcessing, _dataflowBlockOptions.TaskScheduler); 886catch (Exception exception) 957List<Exception>? exceptions; 1148internal void AddException(Exception exception) 1160internal void AddExceptions(List<Exception> exceptions) 1166foreach (Exception exception in exceptions)
Blocks\BufferBlock.cs (6)
147void IDataflowBlock.Fault(Exception exception) 154private void CompleteCore(Exception? exception, bool storeExceptionEvenIfAlreadyCompleting, bool revertProcessingState = false) 267Exception? exception = Common.StartTaskSafe(_boundingState.TaskForInputProcessing, _source.DataflowBlockOptions.TaskScheduler); 271Task.Factory.StartNew(exc => CompleteCore(exception: (Exception)exc!, storeExceptionEvenIfAlreadyCompleting: true, revertProcessingState: true), 295catch (Exception exc) 390List<Exception>? exceptions = null;
Blocks\JoinBlock.cs (12)
141void IDataflowBlock.Fault(Exception exception) 362void IDataflowBlock.Fault(Exception exception) 790List<Exception>? exceptions = null; 801foreach (Exception exc in exceptions) 883internal override void CompleteCore(Exception? exception, bool dropPendingMessages, bool releaseReservedMessages) 911catch (Exception e) { _sharedResources._exceptionAction(e); } 925void IDataflowBlock.Fault(Exception exception) 1004internal abstract void CompleteCore(Exception? exception, bool dropPendingMessages, bool releaseReservedMessages); 1025Action joinFilledAction, Action<Exception> exceptionAction, 1050internal readonly Action<Exception> _exceptionAction; 1279Exception? exception = Common.StartTaskSafe(_taskForInputProcessing, _dataflowBlockOptions.TaskScheduler); 1378catch (Exception exception)
Blocks\TransformBlock.cs (4)
181catch (Exception exc) 229Exception? caughtException = null; 234catch (Exception exc) { caughtException = exc; } 333void IDataflowBlock.Fault(Exception exception)
Blocks\TransformManyBlock.cs (5)
180catch (Exception exc) when (Common.IsCooperativeCancellation(exc)) 199Exception? caughtException = null; 204catch (Exception exc) { caughtException = exc; } 268catch (Exception exc) 548void IDataflowBlock.Fault(Exception exception)
Blocks\TransformManyBlock.netstandard21.cs (1)
62catch (Exception exc)
Blocks\WriteOnceBlock.cs (13)
109private void CompleteBlockAsync(IList<Exception>? exceptions) 131Exception? exception = Common.StartTaskSafe(taskForOutputProcessing, _dataflowBlockOptions.TaskScheduler); 139Tuple<WriteOnceBlock<T>, IList<Exception>> blockAndList = (Tuple<WriteOnceBlock<T>, IList<Exception>>)state!; 156List<Exception>? exceptions = OfferToTargets(); 164private void CompleteBlock(IList<Exception>? exceptions) 206void IDataflowBlock.Fault(Exception exception) 219private void CompleteCore(Exception? exception, bool storeExceptionEvenIfAlreadyCompleting) 244List<Exception>? exceptions = null; 247exceptions = new List<Exception>(); 446private List<Exception>? OfferToTargets() 453List<Exception>? exceptions = null; 470catch (Exception exc)
Internal\Common.cs (21)
139catch (Exception exception) 150internal static bool IsCooperativeCancellation(Exception exception) 212internal static Exception InitializeStackTrace(Exception exception) 228internal static void StoreDataflowMessageValueIntoExceptionData<T>(Exception exc, T messageValue, bool targetInnerExceptions = false) 254foreach (Exception innerException in aggregate.InnerExceptions) 272private static void StoreStringIntoExceptionData(Exception exception, string key, string value) 300internal static void ThrowAsync(Exception error) 311internal static void AddException([NotNull] ref List<Exception>? list, Exception exception, bool unwrapInnerExceptions = false) 318list ??= new List<Exception>(); 362internal static Task<TResult> CreateTaskFromException<TResult>(Exception exception) 452internal static Exception? StartTaskSafe(Task task, TaskScheduler scheduler) 470private static Exception? StartTaskSafeCore(Task task, TaskScheduler scheduler) 475Exception? schedulingException = null; 481catch (Exception caughtException) 499ref List<Exception>? exceptions) 525catch (Exception exc) 538internal static readonly Action<Exception> AsyncExceptionHandler = ThrowAsync; 546internal static void PropagateCompletion(Task sourceCompletionTask, IDataflowBlock target, Action<Exception>? exceptionHandler) 559catch (Exception exc)
Internal\SourceCore.cs (7)
91private List<Exception>? _exceptions; // Protected by ValueLock, sometimes read with volatile reads 454internal void AddException(Exception exception) 466internal void AddExceptions(List<Exception> exceptions) 472foreach (Exception exception in exceptions) 764Exception? exception = Common.StartTaskSafe(_taskForOutputProcessing, _dataflowBlockOptions.TaskScheduler); 837catch (Exception exc) 931List<Exception>? exceptions;
Internal\SpscTargetCore.cs (6)
56private volatile List<Exception>? _exceptions; 219catch (Exception exc) 286internal void Complete(Exception? exception) 304private void StoreException(Exception exception) 312lock (LazyInitializer.EnsureInitialized(ref _exceptions, static () => new List<Exception>())) 333Exception[] exceptions;
Internal\TargetCore.cs (5)
84private List<Exception>? _exceptions; 140internal void Complete(Exception? exception, bool dropPendingMessages, bool storeExceptionEvenIfAlreadyCompleting = false, 384Exception? exception = Common.StartTaskSafe(taskForInputProcessing, _dataflowBlockOptions.TaskScheduler); 388Task.Factory.StartNew(exc => Complete(exception: (Exception)exc!, dropPendingMessages: true, storeExceptionEvenIfAlreadyCompleting: true, 482catch (Exception exc)
Internal\TargetRegistry.cs (1)
350void IDataflowBlock.Fault(Exception exception) { _target.Fault(exception); }
System.Threading.Tasks.Parallel (28)
System\Threading\Tasks\Parallel.cs (15)
250ConcurrentQueue<Exception>? exceptionQ = null; // will be lazily initialized if necessary 277catch (Exception e) 279LazyInitializer.EnsureInitialized<ConcurrentQueue<Exception>>(ref exceptionQ, () => { return new ConcurrentQueue<Exception>(); }); 293catch (Exception e) 295LazyInitializer.EnsureInitialized<ConcurrentQueue<Exception>>(ref exceptionQ, () => { return new ConcurrentQueue<Exception>(); }); 311foreach (Exception exc in ae.InnerExceptions) exceptionQ.Enqueue(exc); 1087catch (Exception ex) 2719catch (Exception ex) 2812Exception? first = null; 2815Debug.Assert(exObj is Exception); 2816Exception ex = (Exception)exObj; 2839Exception otherException)
System\Threading\Tasks\Parallel.ForEachAsync.cs (11)
159catch (Exception e) 185catch (Exception e) 304catch (Exception e) 319catch (Exception e) 340catch (Exception e) 459catch (Exception e) 474catch (Exception e) 495catch (Exception e) 530private List<Exception>? _exceptions; 614public void RecordException(Exception e) 619(_exceptions ??= new List<Exception>()).Add(e);
System\Threading\Tasks\TaskReplicator.cs (2)
23private ConcurrentQueue<Exception>? _exceptions; 89catch (Exception ex)
System.Transactions.Local (153)
_generated\10\System.Transactions.DtcProxyShim.DtcInterfaces.ITransaction.cs (3)
74catch (global::System.Exception __exception) 121catch (global::System.Exception __exception) 166catch (global::System.Exception __exception)
_generated\11\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionCloner.cs (4)
76catch (global::System.Exception __exception) 123catch (global::System.Exception __exception) 168catch (global::System.Exception __exception) 227catch (global::System.Exception __exception)
_generated\12\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExport.cs (2)
87catch (global::System.Exception __exception) 153catch (global::System.Exception __exception)
_generated\13\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionExportFactory.cs (2)
74catch (global::System.Exception __exception) 142catch (global::System.Exception __exception)
_generated\14\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionOptions.cs (2)
72catch (global::System.Exception __exception) 110catch (global::System.Exception __exception)
_generated\15\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionDispenser.cs (2)
88catch (global::System.Exception __exception) 155catch (global::System.Exception __exception)
_generated\16\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionEnlistmentAsync.cs (3)
69catch (global::System.Exception __exception) 107catch (global::System.Exception __exception) 145catch (global::System.Exception __exception)
_generated\17\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionImport.cs (1)
99catch (global::System.Exception __exception)
_generated\18\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionImportWhereabouts.cs (2)
74catch (global::System.Exception __exception) 127catch (global::System.Exception __exception)
_generated\19\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionPhase0EnlistmentAsync.cs (5)
73catch (global::System.Exception __exception) 111catch (global::System.Exception __exception) 149catch (global::System.Exception __exception) 187catch (global::System.Exception __exception) 246catch (global::System.Exception __exception)
_generated\20\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionPhase0Factory.cs (1)
94catch (global::System.Exception __exception)
_generated\21\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionPhase0NotifyAsync.cs (2)
72catch (global::System.Exception __exception) 110catch (global::System.Exception __exception)
_generated\22\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionReceiver.cs (4)
101catch (global::System.Exception __exception) 146catch (global::System.Exception __exception) 220catch (global::System.Exception __exception) 258catch (global::System.Exception __exception)
_generated\23\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionReceiverFactory.cs (1)
86catch (global::System.Exception __exception)
_generated\24\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionResourceAsync.cs (4)
84catch (global::System.Exception __exception) 122catch (global::System.Exception __exception) 165catch (global::System.Exception __exception) 203catch (global::System.Exception __exception)
_generated\25\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionTransmitter.cs (5)
86catch (global::System.Exception __exception) 131catch (global::System.Exception __exception) 184catch (global::System.Exception __exception) 231catch (global::System.Exception __exception) 269catch (global::System.Exception __exception)
_generated\26\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionTransmitterFactory.cs (1)
86catch (global::System.Exception __exception)
_generated\27\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionVoterBallotAsync2.cs (1)
65catch (global::System.Exception __exception)
_generated\28\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionVoterFactory2.cs (1)
99catch (global::System.Exception __exception)
_generated\29\System.Transactions.DtcProxyShim.DtcInterfaces.ITransactionVoterNotifyAsync2.cs (5)
78catch (global::System.Exception __exception) 121catch (global::System.Exception __exception) 159catch (global::System.Exception __exception) 197catch (global::System.Exception __exception) 235catch (global::System.Exception __exception)
_generated\5\System.Transactions.DtcProxyShim.DtcInterfaces.IPrepareInfo.cs (2)
74catch (global::System.Exception __exception) 121catch (global::System.Exception __exception)
_generated\6\System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerFactory2.cs (2)
110catch (global::System.Exception __exception) 195catch (global::System.Exception __exception)
_generated\7\System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManager.cs (4)
116catch (global::System.Exception __exception) 169catch (global::System.Exception __exception) 207catch (global::System.Exception __exception) 271catch (global::System.Exception __exception)
_generated\8\System.Transactions.DtcProxyShim.DtcInterfaces.IResourceManagerSink.cs (1)
65catch (global::System.Exception __exception)
_generated\9\System.Transactions.DtcProxyShim.DtcInterfaces.ITmNodeName.cs (2)
74catch (global::System.Exception __exception) 133catch (global::System.Exception __exception)
System\Transactions\DurableEnlistmentState.cs (6)
118internal override void Aborted(InternalEnlistment enlistment, Exception? e) 197internal override void Aborted(InternalEnlistment enlistment, Exception? e) 207internal override void InDoubt(InternalEnlistment enlistment, Exception? e) 244internal override void Aborted(InternalEnlistment enlistment, Exception? e) 256internal override void InDoubt(InternalEnlistment enlistment, Exception? e) 289internal override void InDoubt(InternalEnlistment enlistment, Exception? e)
System\Transactions\Enlistment.cs (3)
18void ForceRollback(Exception? e); 24void Aborted(Exception? e); 28void InDoubt(Exception? e);
System\Transactions\EnlistmentState.cs (6)
32internal virtual void ForceRollback(InternalEnlistment enlistment, Exception? e) 42internal virtual void Aborted(InternalEnlistment enlistment, Exception? e) 47internal virtual void InDoubt(InternalEnlistment enlistment, Exception? e) 141internal override void ForceRollback(InternalEnlistment enlistment, Exception? e) 169internal override void Aborted(InternalEnlistment enlistment, Exception? e) 183internal override void InDoubt(InternalEnlistment enlistment, Exception? e)
System\Transactions\InternalTransaction.cs (1)
136internal Exception? _innerException;
System\Transactions\Oletx\OletxEnlistment.cs (3)
956public void ForceRollback(Exception? e) 1084public void Aborted(Exception? e) 1133public void InDoubt(Exception? e)
System\Transactions\Oletx\OletxTransaction.cs (2)
116internal Exception? InnerException 481internal Exception? InnerException;
System\Transactions\Oletx\OletxVolatileEnlistment.cs (3)
1435void IPromotedEnlistment.ForceRollback(Exception? e) 1483void IPromotedEnlistment.Aborted(Exception? e) => throw new InvalidOperationException(); 1485void IPromotedEnlistment.InDoubt(Exception? e) => throw new InvalidOperationException();
System\Transactions\PreparingEnlistment.cs (1)
54public void ForceRollback(Exception? e)
System\Transactions\SinglePhaseEnlistment.cs (2)
32public void Aborted(Exception? e) 99public void InDoubt(Exception? e)
System\Transactions\Transaction.cs (1)
587public void Rollback(Exception? e)
System\Transactions\TransactionException.cs (24)
22internal static TransactionException Create(string? message, Exception? innerException) 33internal static TransactionException CreateTransactionStateException(Exception? innerException) 38internal static Exception CreateEnlistmentStateException(Exception? innerException, Guid distributedTxId) 52internal static Exception CreateInvalidOperationException(TraceSourceType traceSource, string? message, Exception? innerException) 83public TransactionException(string? message, Exception? innerException) : base(message, innerException) 107internal static TransactionException Create(string? message, Exception? innerException, Guid distributedTxId) 116internal static TransactionException CreateTransactionStateException(Exception? innerException, Guid distributedTxId) 121internal static Exception CreateTransactionCompletedException(Guid distributedTxId) 136internal static Exception CreateInvalidOperationException(TraceSourceType traceSource, string? message, Exception? innerException, Guid distributedTxId) 154internal static new TransactionAbortedException Create(string? message, Exception? innerException, Guid distributedTxId) 163internal static new TransactionAbortedException Create(string? message, Exception? innerException) 193public TransactionAbortedException(string? message, Exception? innerException) : base(message ?? SR.TransactionAborted, innerException) 201internal TransactionAbortedException(Exception? innerException) : base(SR.TransactionAborted, innerException) 205internal TransactionAbortedException(Exception? innerException, Guid distributedTxId) : 231internal static TransactionInDoubtException Create(TraceSourceType traceSource, string? message, Exception? innerException, Guid distributedTxId) 240internal static TransactionInDoubtException Create(TraceSourceType traceSource, string? message, Exception? innerException) 271public TransactionInDoubtException(string? message, Exception? innerException) : base(message ?? SR.TransactionIndoubt, innerException) 294internal static new TransactionManagerCommunicationException Create(string? message, Exception? innerException) 305internal static TransactionManagerCommunicationException Create(Exception? innerException) 332Exception? innerException 373public TransactionPromotionException(string? message, Exception? innerException) : base(message ?? SR.PromotionFailed, innerException)
System\Transactions\TransactionScope.cs (1)
531Exception? exToThrow = null;
System\Transactions\TransactionsEtwProvider.cs (2)
912internal void ExceptionConsumed(TraceSourceType traceSource, Exception exception) 933internal void ExceptionConsumed(Exception exception)
System\Transactions\TransactionState.cs (31)
190internal virtual void Rollback(InternalTransaction tx, Exception? e) 297internal virtual void ChangeStateTransactionAborted(InternalTransaction tx, Exception? e) 695internal override void Rollback(InternalTransaction tx, Exception? e) 838internal override void Rollback(InternalTransaction tx, Exception? e) 1037internal override void Rollback(InternalTransaction tx, Exception? e) 1150internal override void ChangeStateTransactionAborted(InternalTransaction tx, Exception? e) 1219internal override void Rollback(InternalTransaction tx, Exception? e) 1224internal override void ChangeStateTransactionAborted(InternalTransaction tx, Exception? e) 1285internal override void ChangeStateTransactionAborted(InternalTransaction tx, Exception? e) 1329internal override void ChangeStateTransactionAborted(InternalTransaction tx, Exception? e) 1423internal override void Rollback(InternalTransaction tx, Exception? e) 1461internal override void ChangeStateTransactionAborted(InternalTransaction tx, Exception? e) 1555internal override void Rollback(InternalTransaction tx, Exception? e) 1618internal override void Rollback(InternalTransaction tx, Exception? e) 1801internal override void Rollback(InternalTransaction tx, Exception? e) 2445internal override void ChangeStateTransactionAborted(InternalTransaction tx, Exception? e) 2558internal override void ChangeStateTransactionAborted(InternalTransaction tx, Exception? e) 2629internal override void ChangeStateTransactionAborted(InternalTransaction tx, Exception? e) 2732internal override void ChangeStateTransactionAborted(InternalTransaction tx, Exception? e) 2957internal override void Rollback(InternalTransaction tx, Exception? e) 3015internal override void ChangeStateTransactionAborted(InternalTransaction tx, Exception? e) 3376internal override void Rollback(InternalTransaction tx, Exception? e) 3486internal override void Rollback(InternalTransaction tx, Exception? e) 3577internal override void ChangeStateTransactionAborted(InternalTransaction tx, Exception? e) 3683internal override void Rollback(InternalTransaction tx, Exception? e) 3779internal override void Rollback(InternalTransaction tx, Exception? e) 3863internal override void Rollback(InternalTransaction tx, Exception? e) 3881internal override void ChangeStateTransactionAborted(InternalTransaction tx, Exception? e) 4059internal override void Rollback(InternalTransaction tx, Exception? e) 4089internal override void ChangeStateTransactionAborted(InternalTransaction tx, Exception? e) 4297internal override void Rollback(InternalTransaction tx, Exception? e)
System\Transactions\VolatileEnlistmentState.cs (5)
174internal override void ForceRollback(InternalEnlistment enlistment, Exception? e) 252internal override void Aborted(InternalEnlistment enlistment, Exception? e) 260internal override void InDoubt(InternalEnlistment enlistment, Exception? e) 331internal override void ForceRollback(InternalEnlistment enlistment, Exception? e) 502internal override void InDoubt(InternalEnlistment enlistment, Exception? e)
System.Windows.Extensions (5)
System\Media\SoundPlayer.cs (3)
38private Exception? _lastLoadException; 484Exception? exception = null; 519catch (Exception ex)
System\Security\Cryptography\X509Certificates\X509Certificate2UI.cs (1)
117Exception e = new CryptographicException(Marshal.GetLastPInvokeError());
System\Security\Cryptography\X509Certificates\X509Utils.cs (1)
36Exception e = new CryptographicException(Marshal.GetLastPInvokeError());
System.Windows.Forms (237)
misc\MultitargetUtil.cs (1)
30catch (Exception e) when (!e.IsCriticalException())
System\Resources\ResXDataNode.cs (4)
258catch (Exception ex) when (!ex.IsCriticalException()) 305catch (Exception ex) when (!ex.IsCriticalException()) 438catch (Exception ex) when (!ex.IsCriticalException()) 565catch (Exception ex)
System\Resources\ResXResourceReader.cs (1)
391catch (Exception e)
System\Windows\Forms\Accessibility\LabelEditNativeWindow.cs (1)
176catch (Exception ex)
System\Windows\Forms\ActiveX\AxHost.AxPerPropertyBrowsingEnum.cs (1)
120catch (Exception ex)
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (3)
149catch (Exception t) 172catch (Exception) 365catch (Exception)
System\Windows\Forms\ActiveX\AxHost.AxPropertyTypeEditor.cs (1)
36catch (Exception ex)
System\Windows\Forms\ActiveX\AxHost.ConnectionPointCookie.cs (1)
51catch (Exception ex)
System\Windows\Forms\ActiveX\AxHost.cs (11)
1455catch (Exception t) 1602catch (Exception t) 1776catch (Exception t) 1918catch (Exception) 2416catch (Exception) 2877catch (Exception t) 2894catch (Exception t) 3373catch (Exception t) 3391catch (Exception ex) 3711catch (Exception) 3799catch (Exception)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
526catch (Exception ex)
System\Windows\Forms\ActiveX\AxHost.PropertyBagStream.cs (3)
34catch (Exception ex) when (!ex.IsCriticalException()) 51catch (Exception inner) when (!inner.IsCriticalException()) 112catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\ActiveX\AxHost.State.cs (3)
104catch (Exception e) 120catch (Exception e) 356catch (Exception)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (5)
1083catch (Exception e) 1103catch (Exception ex) 1136catch (Exception ex) when (!ex.IsCriticalException()) 1378catch (Exception e) when (!e.IsCriticalException()) 1523catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\ActiveX\Control.ActiveXImpl.PropertyBagStream.cs (1)
35catch (Exception e) when (!e.IsCriticalException())
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
180catch (Exception ex)
System\Windows\Forms\Application.cs (2)
426catch (Exception ex) when (!ex.IsCriticalException()) 1265public static void OnThreadException(Exception t)
System\Windows\Forms\Application.ThreadContext.cs (2)
582internal void OnThreadException(Exception ex) 960catch (Exception e)
System\Windows\Forms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (1)
125catch (Exception ex)
System\Windows\Forms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (3)
214catch (Exception ex) 232catch (Exception ex) 242catch (Exception ex)
System\Windows\Forms\ComponentModel\COM2Interop\Com2IPerPropertyBrowsingHandler.Com2IPerPropertyBrowsingEnum.cs (1)
149catch (Exception ex)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (3)
502catch (Exception ex) 542catch (Exception ex) 650catch (Exception ex)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (1)
51catch (Exception ex)
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (3)
533catch (Exception ex) when (!ex.IsCriticalException()) 752catch (Exception ex) when (!ex.IsCriticalException()) 810catch (Exception ex)
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
156catch (Exception ex)
System\Windows\Forms\Control.ControlCollection.cs (1)
222catch (Exception e) when (!e.IsCriticalException())
System\Windows\Forms\Control.ControlNativeWindow.cs (1)
55protected override void OnThreadException(Exception e)
System\Windows\Forms\Control.cs (10)
3595Exception ex = new ObjectDisposedException(GetType().Name); 4743Exception ex = new ObjectDisposedException(GetType().Name); 6224catch (Exception t) 6629private protected virtual bool SuppressApplicationOnThreadException(Exception ex) => false; 7564catch (Exception ex) when (!ex.IsCriticalException()) 8530catch (Exception e) 9292catch (Exception) 9591catch (Exception e) 11354catch (Exception e) 11891catch (Exception ex) when (!ex.IsCriticalException() || ex is OutOfMemoryException)
System\Windows\Forms\Control.ThreadMethodEntry.cs (1)
18internal Exception? _exception;
System\Windows\Forms\Control_InvokeAsync.cs (6)
87catch (Exception ex) 96Exception ex, 112Exception ex, 212catch (Exception ex) 317catch (Exception ex) 422catch (Exception ex)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeAdapter.cs (3)
106catch (Exception) 144catch (Exception) 182catch (Exception ex)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildNativeWindow.cs (1)
151catch (Exception e)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (7)
1122catch (Exception exception) when (!exception.IsCriticalException() || exception is IndexOutOfRangeException) 1148catch (Exception exception) when (!exception.IsCriticalException() || exception is IndexOutOfRangeException) 1180catch (Exception exception) when (!exception.IsCriticalException() || exception is IndexOutOfRangeException) 1364catch (Exception exception) when (!exception.IsCriticalException()) 1417catch (Exception exception) when (!exception.IsCriticalException()) 1432public void ProcessException(Exception exception, DataGridViewCellCancelEventArgs e, bool beginEdit) 1492catch (Exception exception) when (!exception.IsCriticalException())
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (8)
3096catch (Exception exception) when (!exception.IsCriticalException()) 3910if (!PushFormattedValue(ref dataGridViewCurrentCell!, formattedValue, out Exception? exception)) 9700catch (Exception exception) when (!exception.IsCriticalException()) 9732catch (Exception exception) when (!exception.IsCriticalException()) 16720catch (Exception ex) when (!ex.IsCriticalException()) 19986catch (Exception exception) when (!exception.IsCriticalException()) 25338private bool PushFormattedValue(ref DataGridViewCell dataGridViewCurrentCell, object? formattedValue, out Exception? exception) 25379catch (Exception e) when (!e.IsCriticalException())
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
1615catch (Exception exception) when (!exception.IsCriticalException()) 1645Exception exception;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
161catch (Exception exception) when (!exception.IsCriticalException()) 171catch (Exception exception) when (!exception.IsCriticalException())
System\Windows\Forms\Controls\DataGridView\DataGridViewDataErrorEventArgs.cs (2)
11Exception? exception, 23public Exception? Exception { get; }
System\Windows\Forms\Controls\ListControl\ListControl.cs (1)
566catch (Exception exception) when (!exception.IsCriticalException())
System\Windows\Forms\Controls\ListView\ListView.cs (2)
2933catch (Exception e) 6087catch (Exception e)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
2107catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (6)
583catch (Exception error) 602private void PostCompleted(Exception? error, bool cancelled) 623catch (Exception error) 671catch (Exception error) 729catch (Exception error) 1115catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (12)
239catch (Exception ex) when (!ex.IsCriticalException()) 1551catch (Exception e) 1645catch (Exception exception) 1682catch (Exception exception) 2033catch (Exception e) 2108catch (Exception ex) 3176catch (Exception ex) 3502catch (Exception e) 3858catch (Exception) 3867catch (Exception) 3926catch (Exception ex) 3943catch (Exception)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
124catch (Exception ex)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (5)
1091catch (Exception e) 1369catch (Exception w) 1398catch (Exception e) 1442catch (Exception t) 2055catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
234catch (Exception e) when (!e.IsCriticalException())
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ImmutablePropertyDescriptorGridEntry.cs (1)
74catch (Exception e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
145catch (Exception e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.cs (1)
83catch (Exception e) when (!e.IsCriticalException())
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
207catch (Exception e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.ExceptionConverter.cs (1)
20if (value is Exception ex)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.ExceptionEditor.cs (1)
19if (value is Exception ex)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (12)
971catch (Exception e) 1157catch (Exception ex) 1202catch (Exception ex) 1277catch (Exception ex) 1708catch (Exception ex) 1774catch (Exception e) 3373catch (Exception ex) when (!ex.IsCriticalException()) 3400catch (Exception ex) when (!ex.IsCriticalException()) 4698catch (Exception ex) 4771catch (Exception ex) 4923private unsafe void ShowFormatExceptionMessage(Exception? ex) 4995internal unsafe void ShowInvalidMessage(Exception? ex)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (2)
267catch (Exception ex) 298catch (Exception ex)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (3)
2337catch (Exception exception) when (!exception.IsCriticalException()) 2735catch (Exception ex) when (!ex.IsCriticalException()) 2874catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
182catch (Exception e)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
290catch (Exception e) when (!e.IsCriticalException())
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
1008catch (Exception e) when (!e.IsCriticalException())
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (1)
270catch (Exception e) when (!e.IsCriticalException())
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (7)
180catch (Exception ex) when (!ex.IsCriticalException()) 205catch (Exception ex) when (!ex.IsCriticalException()) 230catch (Exception ex) when (!ex.IsCriticalException()) 255catch (Exception ex) when (!ex.IsCriticalException()) 280catch (Exception ex) when (!ex.IsCriticalException()) 559catch (Exception ex) when (!ex.IsCriticalException()) 670catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (1)
629catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Controls\WebBrowser\HtmlShim.cs (1)
103catch (Exception ex)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (11)
636catch (Exception ex) when (!ex.IsCriticalException()) 658catch (Exception ex) when (!ex.IsCriticalException()) 818catch (Exception ex) when (!ex.IsCriticalException()) 842catch (Exception ex) when (!ex.IsCriticalException()) 869catch (Exception ex) when (!ex.IsCriticalException()) 907catch (Exception ex) when (!ex.IsCriticalException()) 923catch (Exception ex) when (!ex.IsCriticalException()) 938catch (Exception ex) when (!ex.IsCriticalException()) 954catch (Exception ex) when (!ex.IsCriticalException()) 970catch (Exception ex) when (!ex.IsCriticalException()) 985catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (3)
349catch (Exception ex) when (!ex.IsCriticalException()) 938catch (Exception t) 981catch (Exception t)
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (2)
340catch (Exception t) 386catch (Exception)
System\Windows\Forms\DataBinding\Binding.cs (7)
592private BindingCompleteEventArgs CreateBindingCompleteEventArgs(BindingCompleteContext context, Exception? ex) 629catch (Exception ex) when (!ex.IsCriticalException()) 835Exception? lastException = null; 877catch (Exception ex) 917catch (Exception ex) when (FormattingEnabled) 964Exception? lastException = null; 994catch (Exception ex) when (FormattingEnabled)
System\Windows\Forms\DataBinding\BindingCompleteEventArgs.cs (3)
21Exception? exception, 40Exception? exception) 76public Exception? Exception { get; }
System\Windows\Forms\DataBinding\BindingManagerBase.cs (1)
54protected internal void OnDataError(Exception e)
System\Windows\Forms\DataBinding\BindingManagerDataErrorEventArgs.cs (2)
8public BindingManagerDataErrorEventArgs(Exception exception) 13public Exception Exception { get; }
System\Windows\Forms\DataBinding\BindingSource.cs (1)
531Exception? instanceException = null;
System\Windows\Forms\DataBinding\CurrencyManager.cs (6)
412catch (Exception ex) 430catch (Exception ex) 499catch (Exception ex) 869catch (Exception ex) 900catch (Exception ex) 928catch (Exception ex)
System\Windows\Forms\DataBinding\ListBindingHelper.cs (1)
246Exception? instanceException = null;
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (1)
153catch (Exception ex)
System\Windows\Forms\Design\IUIService.cs (2)
54void ShowError(Exception ex); 59void ShowError(Exception ex, string message);
System\Windows\Forms\Design\PropertyTab.cs (1)
51catch (Exception)
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
137catch (Exception e)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
420catch (Exception e)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.Vista.cs (1)
153catch (Exception e)
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (1)
336catch (Exception e)
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (4)
424catch (Exception ex) 1172catch (Exception ex) when (CanCatchCallbackException()) 1598catch (Exception ex) when (ex is InvalidOperationException or Win32Exception) 1657private static void HandleCallbackException(Exception e) => Application.OnThreadException(e);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.WindowSubclassHandler.cs (2)
37protected override bool CanCatchWndProcException(Exception ex) => CanCatchCallbackException(); 39protected override void HandleWndProcException(Exception ex) => HandleCallbackException(ex);
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
74public ThreadExceptionDialog(Exception t)
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
199protected override void OnThreadException(Exception e)
System\Windows\Forms\Form.cs (5)
3222catch (Exception e) 4085catch (Exception ex) 5632catch (Exception ex) 5640private protected override bool SuppressApplicationOnThreadException(Exception ex) 5934catch (Exception ex)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
1577catch (Exception e) 1646catch (Exception e)
System\Windows\Forms\Layout\TableLayout.SorterObjectArray.cs (2)
37catch (Exception) 81catch (Exception)
System\Windows\Forms\NativeWindow.cs (2)
358catch (Exception e) 639protected virtual void OnThreadException(Exception e)
System\Windows\Forms\NotifyIcon.NotifyIconNativeWindow.cs (1)
55protected override void OnThreadException(Exception e)
System\Windows\Forms\Rendering\DCMapping.cs (1)
102catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Timer.cs (1)
329protected override void OnThreadException(Exception e)
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
549catch (Exception e) when (!e.IsCriticalException())
System\Windows\Forms\WindowSubclassHandler.cs (5)
243/// <see cref="HandleWndProcException(Exception)"/>. 249protected virtual bool CanCatchWndProcException(Exception exception) 258/// <param name="exception">The <see cref="Exception"/> that was caught.</param> 259protected virtual void HandleWndProcException(Exception exception) 278catch (Exception ex) when (CanCatchWndProcException(ex))
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.cs (1)
87catch (Exception ex)
System.Windows.Forms.Design (123)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (4)
297catch (Exception ex) 319catch (Exception e) 718catch (Exception ex) 914catch (Exception ex)
System\ComponentModel\Design\CollectionEditor.CollectionForm.cs (2)
103catch (Exception ex) when (!ex.IsCriticalException()) 149protected virtual void DisplayError(Exception e)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
44catch (Exception ex)
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
64catch (Exception ex)
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (1)
78catch (Exception e)
System\ComponentModel\Design\DesignerHost.cs (8)
162catch (Exception t) 336catch (Exception e) 706List<Exception> exceptions = []; 723catch (Exception e) 733catch (Exception e) 748catch (Exception e) 758catch (Exception e) 1104catch (Exception ex)
System\ComponentModel\Design\DesignSurface.cs (2)
138if (o is Exception ex) 447Exception ex = new InvalidOperationException(SR.DesignSurfaceNoRootComponent)
System\ComponentModel\Design\ExceptionCollection.cs (5)
11private readonly List<Exception>? _exceptions; 20if (exceptions.ToArray().Any(e => e is not Exception)) 22throw new ArgumentException(string.Format(SR.ExceptionCollectionInvalidArgument, nameof(Exception)), nameof(exceptions)); 25_exceptions = exceptions?.Cast<Exception>().ToList(); 28internal ExceptionCollection(List<Exception>? exceptions)
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (6)
144Exception ex = new InvalidOperationException(SR.BasicDesignerLoaderAlreadyLoaded) 154Exception ex = new InvalidOperationException(SR.BasicDesignerLoaderDifferentHost) 212catch (Exception e) 314catch (Exception ex) 860Exception? ex = lastError as Exception;
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (1)
322catch (Exception ex)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (7)
139catch (Exception ex) 200Exception ex = new NotSupportedException(SR.CodeDomDesignerLoaderNoLanguageSupport) 346Exception ex; 962Exception ex = new ArgumentException(SR.CodeDomDesignerLoaderBadSerializationObject) 1176Exception ex = new ArgumentException(SR.CodeDomDesignerLoaderInvalidBlankIdentifier) 1209Exception ex = new ArgumentException(string.Format(SR.CodeDomDesignerLoaderInvalidIdentifier, name)) 1252Exception ex = new ArgumentException(string.Format(SR.CodeDomDesignerLoaderDupComponentName, name))
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (4)
171Exception exception = new CodeDomSerializerException(exceptionText, linePragma) 390catch (Exception e) 448catch (Exception e) 982catch (Exception ex)
System\ComponentModel\Design\Serialization\CodeDomSerializerException.cs (2)
19public CodeDomSerializerException(Exception? ex, CodeLinePragma? linePragma) : base(ex?.Message, ex) 29public CodeDomSerializerException(Exception? ex, IDesignerSerializationManager manager) : base(ex?.Message, ex)
System\ComponentModel\Design\Serialization\ComponentCodeDomSerializer.cs (1)
490catch (Exception ex)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
751Exception ex = new SerializationException(string.Format(SR.SerializationManagerDuplicateComponentDecl, name))
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
61catch (Exception e)
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (2)
52catch (Exception e) 113catch (Exception e)
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (3)
253catch (Exception e) 261Exception se = culture == CultureInfo.InvariantCulture 263: (Exception)new SerializationException(string.Format(SR.SerializerResourceException, culture.ToString(), message), e);
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (1)
318catch (Exception ex)
System\ComponentModel\Design\SiteNestedContainer.cs (1)
57catch (Exception t)
System\ComponentModel\Design\UndoEngine.cs (1)
288Exception ex = new InvalidOperationException(string.Format(SR.UndoEngineMissingService, serviceType.Name))
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (1)
104catch (Exception ex)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
573private void ShowError(Exception ex)
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (1)
98catch (Exception e)
System\Windows\Forms\Design\CommandSet.CommandSetItem.cs (1)
183catch (Exception e)
System\Windows\Forms\Design\CommandSet.cs (2)
335catch (Exception ex) when (!ex.IsCriticalException()) 539catch (Exception e) when (!e.IsCriticalException())
System\Windows\Forms\Design\ComponentTray.cs (6)
825protected void DisplayError(Exception e) 1074catch (Exception e) 1233catch (Exception ex) 1261catch (Exception ex) when (!ex.IsCriticalException()) 1348catch (Exception ex) when (!ex.IsCriticalException()) 2912catch (Exception e) when (!e.IsCriticalException())
System\Windows\Forms\Design\ControlDesigner.ChildSubClass.cs (1)
56catch (Exception ex)
System\Windows\Forms\Design\ControlDesigner.ChildWindowTarget.cs (1)
55catch (Exception ex)
System\Windows\Forms\Design\ControlDesigner.cs (6)
58private Exception? _thrownException; 419protected void DisplayError(Exception e) 1725catch (Exception e) 2242private void PaintException(PaintEventArgs e, Exception ex) 2383catch (Exception e) 2482internal void SetUnhandledException(Control? owner, Exception exception)
System\Windows\Forms\Design\ControlDesigner.DesignerWindowTarget.cs (1)
58catch (Exception ex)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
358catch (Exception e)
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
693internal static void ShowErrorDialog(IUIService? uiService, Exception ex, Control? dataGridView)
System\Windows\Forms\Design\DesignBindingPicker.cs (4)
735catch (Exception ex) 1074catch (Exception ex) 1255catch (Exception ex) 2261catch (Exception)
System\Windows\Forms\Design\DesignerFrame.cs (1)
144catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
135catch (Exception e)
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1349catch (Exception e)
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (1)
148catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
390catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
117catch (Exception ex) when (!ex.IsCriticalException()) 209catch (Exception ex) 347catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Design\ParentControlDesigner.cs (3)
1435catch (Exception e) when (!e.IsCriticalException()) 1833catch (Exception e) when (!e.IsCriticalException()) 1869catch (Exception e) when (!e.IsCriticalException())
System\Windows\Forms\Design\SelectionUIService.cs (5)
119private void DisplayError(Exception e) 584catch (Exception e) when (!e.IsCriticalException()) 735catch (Exception e) when (!e.IsCriticalException()) 1027catch (Exception e) 1131catch (Exception e)
System\Windows\Forms\Design\SelectionUIService.HitTestInfo.cs (1)
34catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
295catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Design\StandardCommandToolStripMenuItem.cs (1)
92catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Design\StandardMenuStripVerb.cs (2)
219catch (Exception e) 355catch (Exception e)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
626catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Design\TabOrder.cs (2)
811catch (Exception) 823catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (2)
90catch (Exception e) when (!e.IsCriticalException()) 116catch (Exception ex)
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
585catch (Exception ex)
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
503catch (Exception e) 573catch (Exception e) when (!e.IsCriticalException()) 642catch (Exception exception)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
809catch (Exception ex)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (5)
403catch (Exception ex) 454catch (Exception ex) 493catch (Exception ex) 535catch (Exception ex) when (!ex.IsCriticalException()) 550catch (Exception ex)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
383catch (Exception e) 799catch (Exception ex) when (!ex.IsCriticalException())
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
1416catch (Exception e) when (!e.IsCriticalException()) 1442catch (Exception e) when (!e.IsCriticalException())
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1405catch (Exception ex) when (!ex.IsCriticalException())
System.Windows.Forms.Primitives (2384)
_generated\106\Windows.Win32.IAccessible.g.cs (21)
133 catch (Exception ex) 180 catch (Exception ex) 217 catch (Exception ex) 262 catch (Exception ex) 307 catch (Exception ex) 349 catch (Exception ex) 404 catch (Exception ex) 459 catch (Exception ex) 504 catch (Exception ex) 558 catch (Exception ex) 604 catch (Exception ex) 660 catch (Exception ex) 711 catch (Exception ex) 753 catch (Exception ex) 798 catch (Exception ex) 862 catch (Exception ex) 929 catch (Exception ex) 987 catch (Exception ex) 1036 catch (Exception ex) 1077 catch (Exception ex) 1109 catch (Exception ex)
_generated\107\Windows.Win32.IAccessibleEx.g.cs (4)
69 catch (Exception ex) 117 catch (Exception ex) 157 catch (Exception ex) 192 catch (Exception ex)
_generated\108\Windows.Win32.IAdviseSinkEx.g.cs (6)
78 catch (Exception ex) 101 catch (Exception ex) 124 catch (Exception ex) 147 catch (Exception ex) 170 catch (Exception ex) 193 catch (Exception ex)
_generated\109\Windows.Win32.IAutoComplete.g.cs (2)
81 catch (Exception ex) 129 catch (Exception ex)
_generated\110\Windows.Win32.IAutoComplete2.g.cs (4)
81 catch (Exception ex) 106 catch (Exception ex) 131 catch (Exception ex) 174 catch (Exception ex)
_generated\111\Windows.Win32.IBindHost.g.cs (3)
68 catch (Exception ex) 105 catch (Exception ex) 142 catch (Exception ex)
_generated\112\Windows.Win32.IBinding.g.cs (6)
68 catch (Exception ex) 93 catch (Exception ex) 118 catch (Exception ex) 143 catch (Exception ex) 177 catch (Exception ex) 220 catch (Exception ex)
_generated\113\Windows.Win32.IBindStatusCallback.g.cs (8)
68 catch (Exception ex) 102 catch (Exception ex) 127 catch (Exception ex) 161 catch (Exception ex) 195 catch (Exception ex) 232 catch (Exception ex) 269 catch (Exception ex) 303 catch (Exception ex)
_generated\114\Windows.Win32.IClassFactory.g.cs (2)
82 catch (Exception ex) 119 catch (Exception ex)
_generated\115\Windows.Win32.IClassFactory2.g.cs (5)
82 catch (Exception ex) 107 catch (Exception ex) 142 catch (Exception ex) 177 catch (Exception ex) 226 catch (Exception ex)
_generated\117\Windows.Win32.IConnectionPoint.g.cs (5)
79 catch (Exception ex) 114 catch (Exception ex) 159 catch (Exception ex) 195 catch (Exception ex) 227 catch (Exception ex)
_generated\118\Windows.Win32.IConnectionPointContainer.g.cs (2)
69 catch (Exception ex) 114 catch (Exception ex)
_generated\119\Windows.Win32.IEnumConnectionPoints.g.cs (4)
79 catch (Exception ex) 115 catch (Exception ex) 146 catch (Exception ex) 174 catch (Exception ex)
_generated\120\Windows.Win32.IEnumConnections.g.cs (4)
82 catch (Exception ex) 119 catch (Exception ex) 150 catch (Exception ex) 178 catch (Exception ex)
_generated\121\Windows.Win32.IEnumIDList.g.cs (4)
69 catch (Exception ex) 116 catch (Exception ex) 152 catch (Exception ex) 184 catch (Exception ex)
_generated\122\Windows.Win32.IEnumOleUndoUnits.g.cs (4)
79 catch (Exception ex) 117 catch (Exception ex) 148 catch (Exception ex) 176 catch (Exception ex)
_generated\123\Windows.Win32.IEnumOLEVERB.g.cs (4)
79 catch (Exception ex) 115 catch (Exception ex) 146 catch (Exception ex) 174 catch (Exception ex)
_generated\124\Windows.Win32.IEnumShellItems.g.cs (4)
69 catch (Exception ex) 114 catch (Exception ex) 150 catch (Exception ex) 182 catch (Exception ex)
_generated\125\Windows.Win32.IEnumVARIANT.g.cs (4)
81 catch (Exception ex) 115 catch (Exception ex) 149 catch (Exception ex) 180 catch (Exception ex)
_generated\126\Windows.Win32.IErrorInfo.g.cs (5)
77 catch (Exception ex) 110 catch (Exception ex) 139 catch (Exception ex) 168 catch (Exception ex) 206 catch (Exception ex)
_generated\127\Windows.Win32.IErrorLog.g.cs (1)
80 catch (Exception ex)
_generated\128\Windows.Win32.IExpandCollapseProvider.g.cs (3)
69 catch (Exception ex) 99 catch (Exception ex) 139 catch (Exception ex)
_generated\129\Windows.Win32.IFileDialog.g.cs (24)
69 catch (Exception ex) 103 catch (Exception ex) 145 catch (Exception ex) 188 catch (Exception ex) 231 catch (Exception ex) 271 catch (Exception ex) 307 catch (Exception ex) 350 catch (Exception ex) 386 catch (Exception ex) 422 catch (Exception ex) 459 catch (Exception ex) 493 catch (Exception ex) 536 catch (Exception ex) 581 catch (Exception ex) 627 catch (Exception ex) 672 catch (Exception ex) 717 catch (Exception ex) 753 catch (Exception ex) 791 catch (Exception ex) 838 catch (Exception ex) 872 catch (Exception ex) 918 catch (Exception ex) 956 catch (Exception ex) 986 catch (Exception ex)
_generated\130\Windows.Win32.IFileDialogCustomize.g.cs (27)
69 catch (Exception ex) 115 catch (Exception ex) 165 catch (Exception ex) 203 catch (Exception ex) 237 catch (Exception ex) 280 catch (Exception ex) 331 catch (Exception ex) 372 catch (Exception ex) 415 catch (Exception ex) 462 catch (Exception ex) 509 catch (Exception ex) 549 catch (Exception ex) 596 catch (Exception ex) 643 catch (Exception ex) 692 catch (Exception ex) 732 catch (Exception ex) 781 catch (Exception ex) 826 catch (Exception ex) 864 catch (Exception ex) 909 catch (Exception ex) 954 catch (Exception ex) 1008 catch (Exception ex) 1049 catch (Exception ex) 1098 catch (Exception ex) 1140 catch (Exception ex) 1172 catch (Exception ex) 1218 catch (Exception ex)
_generated\131\Windows.Win32.IFileDialogEvents.g.cs (7)
69 catch (Exception ex) 106 catch (Exception ex) 147 catch (Exception ex) 181 catch (Exception ex) 226 catch (Exception ex) 271 catch (Exception ex) 314 catch (Exception ex)
_generated\132\Windows.Win32.IFileOpenDialog.g.cs (26)
69 catch (Exception ex) 103 catch (Exception ex) 128 catch (Exception ex) 162 catch (Exception ex) 196 catch (Exception ex) 221 catch (Exception ex) 246 catch (Exception ex) 280 catch (Exception ex) 305 catch (Exception ex) 330 catch (Exception ex) 355 catch (Exception ex) 380 catch (Exception ex) 414 catch (Exception ex) 448 catch (Exception ex) 482 catch (Exception ex) 516 catch (Exception ex) 550 catch (Exception ex) 575 catch (Exception ex) 600 catch (Exception ex) 634 catch (Exception ex) 659 catch (Exception ex) 693 catch (Exception ex) 718 catch (Exception ex) 743 catch (Exception ex) 768 catch (Exception ex) 806 catch (Exception ex)
_generated\133\Windows.Win32.IFileOperationProgressSink.g.cs (16)
69 catch (Exception ex) 99 catch (Exception ex) 144 catch (Exception ex) 197 catch (Exception ex) 258 catch (Exception ex) 315 catch (Exception ex) 380 catch (Exception ex) 437 catch (Exception ex) 493 catch (Exception ex) 533 catch (Exception ex) 590 catch (Exception ex) 646 catch (Exception ex) 708 catch (Exception ex) 746 catch (Exception ex) 776 catch (Exception ex) 806 catch (Exception ex)
_generated\134\Windows.Win32.IFileSaveDialog.g.cs (29)
69 catch (Exception ex) 103 catch (Exception ex) 128 catch (Exception ex) 162 catch (Exception ex) 196 catch (Exception ex) 221 catch (Exception ex) 246 catch (Exception ex) 280 catch (Exception ex) 305 catch (Exception ex) 330 catch (Exception ex) 355 catch (Exception ex) 380 catch (Exception ex) 414 catch (Exception ex) 448 catch (Exception ex) 482 catch (Exception ex) 516 catch (Exception ex) 550 catch (Exception ex) 575 catch (Exception ex) 600 catch (Exception ex) 634 catch (Exception ex) 659 catch (Exception ex) 693 catch (Exception ex) 718 catch (Exception ex) 743 catch (Exception ex) 768 catch (Exception ex) 802 catch (Exception ex) 839 catch (Exception ex) 880 catch (Exception ex) 917 catch (Exception ex)
_generated\135\Windows.Win32.IFont.g.cs (24)
70 catch (Exception ex) 113 catch (Exception ex) 134 catch (Exception ex) 177 catch (Exception ex) 198 catch (Exception ex) 241 catch (Exception ex) 262 catch (Exception ex) 305 catch (Exception ex) 326 catch (Exception ex) 369 catch (Exception ex) 390 catch (Exception ex) 433 catch (Exception ex) 454 catch (Exception ex) 497 catch (Exception ex) 518 catch (Exception ex) 561 catch (Exception ex) 582 catch (Exception ex) 621 catch (Exception ex) 659 catch (Exception ex) 693 catch (Exception ex) 734 catch (Exception ex) 772 catch (Exception ex) 806 catch (Exception ex) 843 catch (Exception ex)
_generated\137\Windows.Win32.IGetOleObject.g.cs (1)
81 catch (Exception ex)
_generated\138\Windows.Win32.IGetVBAObject.g.cs (1)
80 catch (Exception ex)
_generated\139\Windows.Win32.IGridItemProvider.g.cs (5)
79 catch (Exception ex) 118 catch (Exception ex) 157 catch (Exception ex) 196 catch (Exception ex) 225 catch (Exception ex)
_generated\140\Windows.Win32.IGridProvider.g.cs (3)
69 catch (Exception ex) 124 catch (Exception ex) 164 catch (Exception ex)
_generated\141\Windows.Win32.IHTMLCurrentStyle.g.cs (91)
126 catch (Exception ex) 157 catch (Exception ex) 188 catch (Exception ex) 219 catch (Exception ex) 250 catch (Exception ex) 281 catch (Exception ex) 312 catch (Exception ex) 343 catch (Exception ex) 374 catch (Exception ex) 405 catch (Exception ex) 436 catch (Exception ex) 467 catch (Exception ex) 498 catch (Exception ex) 529 catch (Exception ex) 560 catch (Exception ex) 591 catch (Exception ex) 622 catch (Exception ex) 653 catch (Exception ex) 684 catch (Exception ex) 715 catch (Exception ex) 746 catch (Exception ex) 777 catch (Exception ex) 808 catch (Exception ex) 839 catch (Exception ex) 870 catch (Exception ex) 901 catch (Exception ex) 932 catch (Exception ex) 963 catch (Exception ex) 994 catch (Exception ex) 1025 catch (Exception ex) 1056 catch (Exception ex) 1087 catch (Exception ex) 1118 catch (Exception ex) 1149 catch (Exception ex) 1180 catch (Exception ex) 1211 catch (Exception ex) 1242 catch (Exception ex) 1273 catch (Exception ex) 1304 catch (Exception ex) 1335 catch (Exception ex) 1366 catch (Exception ex) 1397 catch (Exception ex) 1428 catch (Exception ex) 1459 catch (Exception ex) 1490 catch (Exception ex) 1521 catch (Exception ex) 1552 catch (Exception ex) 1583 catch (Exception ex) 1614 catch (Exception ex) 1645 catch (Exception ex) 1676 catch (Exception ex) 1707 catch (Exception ex) 1738 catch (Exception ex) 1769 catch (Exception ex) 1800 catch (Exception ex) 1831 catch (Exception ex) 1862 catch (Exception ex) 1893 catch (Exception ex) 1924 catch (Exception ex) 1955 catch (Exception ex) 1986 catch (Exception ex) 2017 catch (Exception ex) 2048 catch (Exception ex) 2078 catch (Exception ex) 2106 catch (Exception ex) 2137 catch (Exception ex) 2168 catch (Exception ex) 2199 catch (Exception ex) 2230 catch (Exception ex) 2261 catch (Exception ex) 2292 catch (Exception ex) 2323 catch (Exception ex) 2354 catch (Exception ex) 2385 catch (Exception ex) 2416 catch (Exception ex) 2447 catch (Exception ex) 2478 catch (Exception ex) 2509 catch (Exception ex) 2540 catch (Exception ex) 2571 catch (Exception ex) 2602 catch (Exception ex) 2633 catch (Exception ex) 2664 catch (Exception ex) 2695 catch (Exception ex) 2726 catch (Exception ex) 2757 catch (Exception ex) 2788 catch (Exception ex) 2819 catch (Exception ex) 2850 catch (Exception ex) 2881 catch (Exception ex) 2912 catch (Exception ex)
_generated\142\Windows.Win32.IHTMLDataTransfer.g.cs (7)
135 catch (Exception ex) 162 catch (Exception ex) 189 catch (Exception ex) 217 catch (Exception ex) 252 catch (Exception ex) 273 catch (Exception ex) 308 catch (Exception ex)
_generated\143\Windows.Win32.IHTMLDocument.g.cs (1)
125 catch (Exception ex)
_generated\144\Windows.Win32.IHTMLDocument2.g.cs (109)
125 catch (Exception ex) 150 catch (Exception ex) 175 catch (Exception ex) 200 catch (Exception ex) 225 catch (Exception ex) 251 catch (Exception ex) 281 catch (Exception ex) 306 catch (Exception ex) 332 catch (Exception ex) 362 catch (Exception ex) 387 catch (Exception ex) 413 catch (Exception ex) 444 catch (Exception ex) 479 catch (Exception ex) 500 catch (Exception ex) 531 catch (Exception ex) 562 catch (Exception ex) 593 catch (Exception ex) 624 catch (Exception ex) 654 catch (Exception ex) 689 catch (Exception ex) 714 catch (Exception ex) 749 catch (Exception ex) 774 catch (Exception ex) 809 catch (Exception ex) 834 catch (Exception ex) 869 catch (Exception ex) 894 catch (Exception ex) 929 catch (Exception ex) 955 catch (Exception ex) 985 catch (Exception ex) 1011 catch (Exception ex) 1042 catch (Exception ex) 1077 catch (Exception ex) 1097 catch (Exception ex) 1122 catch (Exception ex) 1147 catch (Exception ex) 1172 catch (Exception ex) 1198 catch (Exception ex) 1233 catch (Exception ex) 1253 catch (Exception ex) 1278 catch (Exception ex) 1303 catch (Exception ex) 1328 catch (Exception ex) 1353 catch (Exception ex) 1379 catch (Exception ex) 1410 catch (Exception ex) 1441 catch (Exception ex) 1472 catch (Exception ex) 1503 catch (Exception ex) 1534 catch (Exception ex) 1565 catch (Exception ex) 1595 catch (Exception ex) 1620 catch (Exception ex) 1645 catch (Exception ex) 1670 catch (Exception ex) 1695 catch (Exception ex) 1720 catch (Exception ex) 1747 catch (Exception ex) 1774 catch (Exception ex) 1801 catch (Exception ex) 1828 catch (Exception ex) 1855 catch (Exception ex) 1892 catch (Exception ex) 1917 catch (Exception ex) 1944 catch (Exception ex) 1970 catch (Exception ex) 2005 catch (Exception ex) 2026 catch (Exception ex) 2061 catch (Exception ex) 2082 catch (Exception ex) 2117 catch (Exception ex) 2138 catch (Exception ex) 2173 catch (Exception ex) 2194 catch (Exception ex) 2229 catch (Exception ex) 2250 catch (Exception ex) 2285 catch (Exception ex) 2306 catch (Exception ex) 2341 catch (Exception ex) 2362 catch (Exception ex) 2397 catch (Exception ex) 2418 catch (Exception ex) 2453 catch (Exception ex) 2474 catch (Exception ex) 2509 catch (Exception ex) 2530 catch (Exception ex) 2565 catch (Exception ex) 2586 catch (Exception ex) 2621 catch (Exception ex) 2642 catch (Exception ex) 2677 catch (Exception ex) 2698 catch (Exception ex) 2733 catch (Exception ex) 2754 catch (Exception ex) 2789 catch (Exception ex) 2810 catch (Exception ex) 2845 catch (Exception ex) 2866 catch (Exception ex) 2901 catch (Exception ex) 2921 catch (Exception ex) 2946 catch (Exception ex) 2972 catch (Exception ex) 3003 catch (Exception ex) 3038 catch (Exception ex) 3059 catch (Exception ex) 3094 catch (Exception ex) 3114 catch (Exception ex) 3141 catch (Exception ex)
_generated\145\Windows.Win32.IHTMLDocument3.g.cs (41)
125 catch (Exception ex) 150 catch (Exception ex) 175 catch (Exception ex) 203 catch (Exception ex) 234 catch (Exception ex) 274 catch (Exception ex) 299 catch (Exception ex) 325 catch (Exception ex) 360 catch (Exception ex) 381 catch (Exception ex) 416 catch (Exception ex) 437 catch (Exception ex) 472 catch (Exception ex) 493 catch (Exception ex) 528 catch (Exception ex) 549 catch (Exception ex) 584 catch (Exception ex) 605 catch (Exception ex) 640 catch (Exception ex) 661 catch (Exception ex) 696 catch (Exception ex) 716 catch (Exception ex) 741 catch (Exception ex) 767 catch (Exception ex) 802 catch (Exception ex) 823 catch (Exception ex) 858 catch (Exception ex) 878 catch (Exception ex) 906 catch (Exception ex) 937 catch (Exception ex) 972 catch (Exception ex) 993 catch (Exception ex) 1028 catch (Exception ex) 1049 catch (Exception ex) 1080 catch (Exception ex) 1115 catch (Exception ex) 1136 catch (Exception ex) 1171 catch (Exception ex) 1191 catch (Exception ex) 1218 catch (Exception ex) 1243 catch (Exception ex)
_generated\146\Windows.Win32.IHTMLDocument4.g.cs (14)
125 catch (Exception ex) 160 catch (Exception ex) 186 catch (Exception ex) 221 catch (Exception ex) 242 catch (Exception ex) 272 catch (Exception ex) 300 catch (Exception ex) 335 catch (Exception ex) 365 catch (Exception ex) 405 catch (Exception ex) 430 catch (Exception ex) 458 catch (Exception ex) 493 catch (Exception ex) 514 catch (Exception ex)
_generated\147\Windows.Win32.IHTMLDOMNode.g.cs (20)
126 catch (Exception ex) 157 catch (Exception ex) 187 catch (Exception ex) 215 catch (Exception ex) 246 catch (Exception ex) 276 catch (Exception ex) 303 catch (Exception ex) 328 catch (Exception ex) 355 catch (Exception ex) 382 catch (Exception ex) 409 catch (Exception ex) 436 catch (Exception ex) 463 catch (Exception ex) 491 catch (Exception ex) 522 catch (Exception ex) 557 catch (Exception ex) 577 catch (Exception ex) 603 catch (Exception ex) 634 catch (Exception ex) 664 catch (Exception ex)
_generated\148\Windows.Win32.IHTMLElement.g.cs (87)
125 catch (Exception ex) 160 catch (Exception ex) 185 catch (Exception ex) 213 catch (Exception ex) 248 catch (Exception ex) 268 catch (Exception ex) 293 catch (Exception ex) 318 catch (Exception ex) 343 catch (Exception ex) 368 catch (Exception ex) 394 catch (Exception ex) 429 catch (Exception ex) 450 catch (Exception ex) 485 catch (Exception ex) 506 catch (Exception ex) 541 catch (Exception ex) 562 catch (Exception ex) 597 catch (Exception ex) 618 catch (Exception ex) 653 catch (Exception ex) 674 catch (Exception ex) 709 catch (Exception ex) 730 catch (Exception ex) 765 catch (Exception ex) 786 catch (Exception ex) 821 catch (Exception ex) 842 catch (Exception ex) 877 catch (Exception ex) 898 catch (Exception ex) 933 catch (Exception ex) 954 catch (Exception ex) 989 catch (Exception ex) 1009 catch (Exception ex) 1035 catch (Exception ex) 1070 catch (Exception ex) 1091 catch (Exception ex) 1126 catch (Exception ex) 1147 catch (Exception ex) 1182 catch (Exception ex) 1202 catch (Exception ex) 1227 catch (Exception ex) 1255 catch (Exception ex) 1286 catch (Exception ex) 1317 catch (Exception ex) 1352 catch (Exception ex) 1382 catch (Exception ex) 1417 catch (Exception ex) 1452 catch (Exception ex) 1487 catch (Exception ex) 1512 catch (Exception ex) 1537 catch (Exception ex) 1562 catch (Exception ex) 1587 catch (Exception ex) 1612 catch (Exception ex) 1637 catch (Exception ex) 1662 catch (Exception ex) 1687 catch (Exception ex) 1712 catch (Exception ex) 1737 catch (Exception ex) 1762 catch (Exception ex) 1788 catch (Exception ex) 1819 catch (Exception ex) 1849 catch (Exception ex) 1875 catch (Exception ex) 1906 catch (Exception ex) 1941 catch (Exception ex) 1961 catch (Exception ex) 1989 catch (Exception ex) 2024 catch (Exception ex) 2045 catch (Exception ex) 2080 catch (Exception ex) 2101 catch (Exception ex) 2136 catch (Exception ex) 2157 catch (Exception ex) 2192 catch (Exception ex) 2213 catch (Exception ex) 2248 catch (Exception ex) 2269 catch (Exception ex) 2304 catch (Exception ex) 2325 catch (Exception ex) 2360 catch (Exception ex) 2381 catch (Exception ex) 2416 catch (Exception ex) 2437 catch (Exception ex) 2472 catch (Exception ex) 2492 catch (Exception ex) 2517 catch (Exception ex)
_generated\149\Windows.Win32.IHTMLElement2.g.cs (98)
126 catch (Exception ex) 156 catch (Exception ex) 181 catch (Exception ex) 207 catch (Exception ex) 242 catch (Exception ex) 262 catch (Exception ex) 289 catch (Exception ex) 315 catch (Exception ex) 350 catch (Exception ex) 371 catch (Exception ex) 406 catch (Exception ex) 427 catch (Exception ex) 462 catch (Exception ex) 483 catch (Exception ex) 518 catch (Exception ex) 539 catch (Exception ex) 574 catch (Exception ex) 595 catch (Exception ex) 630 catch (Exception ex) 651 catch (Exception ex) 686 catch (Exception ex) 707 catch (Exception ex) 742 catch (Exception ex) 763 catch (Exception ex) 798 catch (Exception ex) 819 catch (Exception ex) 854 catch (Exception ex) 875 catch (Exception ex) 910 catch (Exception ex) 931 catch (Exception ex) 966 catch (Exception ex) 987 catch (Exception ex) 1022 catch (Exception ex) 1043 catch (Exception ex) 1074 catch (Exception ex) 1109 catch (Exception ex) 1129 catch (Exception ex) 1156 catch (Exception ex) 1183 catch (Exception ex) 1208 catch (Exception ex) 1235 catch (Exception ex) 1262 catch (Exception ex) 1297 catch (Exception ex) 1322 catch (Exception ex) 1348 catch (Exception ex) 1383 catch (Exception ex) 1404 catch (Exception ex) 1439 catch (Exception ex) 1460 catch (Exception ex) 1495 catch (Exception ex) 1516 catch (Exception ex) 1551 catch (Exception ex) 1571 catch (Exception ex) 1596 catch (Exception ex) 1621 catch (Exception ex) 1656 catch (Exception ex) 1691 catch (Exception ex) 1726 catch (Exception ex) 1761 catch (Exception ex) 1796 catch (Exception ex) 1821 catch (Exception ex) 1847 catch (Exception ex) 1878 catch (Exception ex) 1913 catch (Exception ex) 1934 catch (Exception ex) 1969 catch (Exception ex) 1990 catch (Exception ex) 2025 catch (Exception ex) 2046 catch (Exception ex) 2081 catch (Exception ex) 2102 catch (Exception ex) 2137 catch (Exception ex) 2157 catch (Exception ex) 2194 catch (Exception ex) 2229 catch (Exception ex) 2254 catch (Exception ex) 2289 catch (Exception ex) 2314 catch (Exception ex) 2349 catch (Exception ex) 2374 catch (Exception ex) 2399 catch (Exception ex) 2425 catch (Exception ex) 2460 catch (Exception ex) 2480 catch (Exception ex) 2505 catch (Exception ex) 2532 catch (Exception ex) 2559 catch (Exception ex) 2596 catch (Exception ex) 2631 catch (Exception ex) 2658 catch (Exception ex) 2686 catch (Exception ex) 2717 catch (Exception ex) 2748 catch (Exception ex) 2783 catch (Exception ex) 2804 catch (Exception ex) 2839 catch (Exception ex) 2860 catch (Exception ex) 2890 catch (Exception ex)
_generated\150\Windows.Win32.IHTMLElement3.g.cs (43)
134 catch (Exception ex) 160 catch (Exception ex) 191 catch (Exception ex) 222 catch (Exception ex) 257 catch (Exception ex) 278 catch (Exception ex) 313 catch (Exception ex) 334 catch (Exception ex) 369 catch (Exception ex) 390 catch (Exception ex) 425 catch (Exception ex) 445 catch (Exception ex) 471 catch (Exception ex) 506 catch (Exception ex) 527 catch (Exception ex) 558 catch (Exception ex) 593 catch (Exception ex) 613 catch (Exception ex) 648 catch (Exception ex) 674 catch (Exception ex) 705 catch (Exception ex) 740 catch (Exception ex) 761 catch (Exception ex) 796 catch (Exception ex) 829 catch (Exception ex) 855 catch (Exception ex) 890 catch (Exception ex) 911 catch (Exception ex) 946 catch (Exception ex) 967 catch (Exception ex) 1002 catch (Exception ex) 1023 catch (Exception ex) 1058 catch (Exception ex) 1079 catch (Exception ex) 1114 catch (Exception ex) 1135 catch (Exception ex) 1170 catch (Exception ex) 1191 catch (Exception ex) 1226 catch (Exception ex) 1247 catch (Exception ex) 1282 catch (Exception ex) 1302 catch (Exception ex) 1330 catch (Exception ex)
_generated\151\Windows.Win32.IHTMLElementCollection.g.cs (6)
125 catch (Exception ex) 153 catch (Exception ex) 191 catch (Exception ex) 217 catch (Exception ex) 247 catch (Exception ex) 272 catch (Exception ex)
_generated\152\Windows.Win32.IHTMLEventObj.g.cs (25)
126 catch (Exception ex) 157 catch (Exception ex) 188 catch (Exception ex) 219 catch (Exception ex) 250 catch (Exception ex) 285 catch (Exception ex) 306 catch (Exception ex) 341 catch (Exception ex) 362 catch (Exception ex) 393 catch (Exception ex) 424 catch (Exception ex) 459 catch (Exception ex) 480 catch (Exception ex) 511 catch (Exception ex) 542 catch (Exception ex) 573 catch (Exception ex) 604 catch (Exception ex) 635 catch (Exception ex) 666 catch (Exception ex) 697 catch (Exception ex) 728 catch (Exception ex) 759 catch (Exception ex) 790 catch (Exception ex) 821 catch (Exception ex) 852 catch (Exception ex)
_generated\153\Windows.Win32.IHTMLFiltersCollection.g.cs (3)
126 catch (Exception ex) 157 catch (Exception ex) 197 catch (Exception ex)
_generated\154\Windows.Win32.IHTMLFormElement.g.cs (24)
126 catch (Exception ex) 161 catch (Exception ex) 182 catch (Exception ex) 217 catch (Exception ex) 238 catch (Exception ex) 273 catch (Exception ex) 294 catch (Exception ex) 329 catch (Exception ex) 350 catch (Exception ex) 381 catch (Exception ex) 416 catch (Exception ex) 437 catch (Exception ex) 472 catch (Exception ex) 493 catch (Exception ex) 528 catch (Exception ex) 549 catch (Exception ex) 584 catch (Exception ex) 604 catch (Exception ex) 629 catch (Exception ex) 655 catch (Exception ex) 690 catch (Exception ex) 711 catch (Exception ex) 741 catch (Exception ex) 768 catch (Exception ex)
_generated\155\Windows.Win32.IHTMLFrameBase.g.cs (18)
126 catch (Exception ex) 161 catch (Exception ex) 182 catch (Exception ex) 217 catch (Exception ex) 238 catch (Exception ex) 273 catch (Exception ex) 294 catch (Exception ex) 329 catch (Exception ex) 350 catch (Exception ex) 385 catch (Exception ex) 406 catch (Exception ex) 441 catch (Exception ex) 462 catch (Exception ex) 497 catch (Exception ex) 518 catch (Exception ex) 553 catch (Exception ex) 574 catch (Exception ex) 609 catch (Exception ex)
_generated\156\Windows.Win32.IHTMLFramesCollection2.g.cs (2)
138 catch (Exception ex) 173 catch (Exception ex)
_generated\157\Windows.Win32.IHTMLImageElementFactory.g.cs (1)
125 catch (Exception ex)
_generated\158\Windows.Win32.IHTMLImgElement.g.cs (48)
126 catch (Exception ex) 161 catch (Exception ex) 182 catch (Exception ex) 217 catch (Exception ex) 238 catch (Exception ex) 269 catch (Exception ex) 300 catch (Exception ex) 331 catch (Exception ex) 362 catch (Exception ex) 393 catch (Exception ex) 424 catch (Exception ex) 455 catch (Exception ex) 486 catch (Exception ex) 521 catch (Exception ex) 542 catch (Exception ex) 577 catch (Exception ex) 598 catch (Exception ex) 633 catch (Exception ex) 654 catch (Exception ex) 689 catch (Exception ex) 710 catch (Exception ex) 745 catch (Exception ex) 766 catch (Exception ex) 801 catch (Exception ex) 822 catch (Exception ex) 857 catch (Exception ex) 878 catch (Exception ex) 913 catch (Exception ex) 934 catch (Exception ex) 965 catch (Exception ex) 996 catch (Exception ex) 1031 catch (Exception ex) 1052 catch (Exception ex) 1087 catch (Exception ex) 1108 catch (Exception ex) 1143 catch (Exception ex) 1164 catch (Exception ex) 1199 catch (Exception ex) 1220 catch (Exception ex) 1255 catch (Exception ex) 1276 catch (Exception ex) 1311 catch (Exception ex) 1332 catch (Exception ex) 1367 catch (Exception ex) 1388 catch (Exception ex) 1423 catch (Exception ex) 1444 catch (Exception ex) 1479 catch (Exception ex)
_generated\159\Windows.Win32.IHTMLLocation.g.cs (20)
126 catch (Exception ex) 154 catch (Exception ex) 180 catch (Exception ex) 215 catch (Exception ex) 236 catch (Exception ex) 271 catch (Exception ex) 292 catch (Exception ex) 327 catch (Exception ex) 348 catch (Exception ex) 383 catch (Exception ex) 404 catch (Exception ex) 439 catch (Exception ex) 460 catch (Exception ex) 495 catch (Exception ex) 516 catch (Exception ex) 551 catch (Exception ex) 571 catch (Exception ex) 596 catch (Exception ex) 621 catch (Exception ex) 646 catch (Exception ex)
_generated\160\Windows.Win32.IHTMLMimeTypesCollection.g.cs (1)
126 catch (Exception ex)
_generated\161\Windows.Win32.IHTMLOpsProfile.g.cs (9)
125 catch (Exception ex) 152 catch (Exception ex) 177 catch (Exception ex) 202 catch (Exception ex) 229 catch (Exception ex) 256 catch (Exception ex) 283 catch (Exception ex) 310 catch (Exception ex) 335 catch (Exception ex)
_generated\162\Windows.Win32.IHTMLOptionElement.g.cs (11)
126 catch (Exception ex) 161 catch (Exception ex) 182 catch (Exception ex) 217 catch (Exception ex) 238 catch (Exception ex) 273 catch (Exception ex) 294 catch (Exception ex) 329 catch (Exception ex) 350 catch (Exception ex) 385 catch (Exception ex) 406 catch (Exception ex)
_generated\163\Windows.Win32.IHTMLOptionElementFactory.g.cs (1)
125 catch (Exception ex)
_generated\164\Windows.Win32.IHTMLPluginsCollection.g.cs (2)
126 catch (Exception ex) 156 catch (Exception ex)
_generated\165\Windows.Win32.IHTMLRect.g.cs (8)
126 catch (Exception ex) 161 catch (Exception ex) 182 catch (Exception ex) 217 catch (Exception ex) 238 catch (Exception ex) 273 catch (Exception ex) 294 catch (Exception ex) 329 catch (Exception ex)
_generated\166\Windows.Win32.IHTMLRectCollection.g.cs (3)
126 catch (Exception ex) 157 catch (Exception ex) 197 catch (Exception ex)
_generated\167\Windows.Win32.IHTMLRenderStyle.g.cs (18)
126 catch (Exception ex) 161 catch (Exception ex) 182 catch (Exception ex) 217 catch (Exception ex) 238 catch (Exception ex) 273 catch (Exception ex) 294 catch (Exception ex) 329 catch (Exception ex) 350 catch (Exception ex) 385 catch (Exception ex) 406 catch (Exception ex) 441 catch (Exception ex) 462 catch (Exception ex) 497 catch (Exception ex) 518 catch (Exception ex) 553 catch (Exception ex) 574 catch (Exception ex) 609 catch (Exception ex)
_generated\168\Windows.Win32.IHTMLRuleStyle.g.cs (162)
126 catch (Exception ex) 161 catch (Exception ex) 182 catch (Exception ex) 217 catch (Exception ex) 238 catch (Exception ex) 273 catch (Exception ex) 294 catch (Exception ex) 329 catch (Exception ex) 350 catch (Exception ex) 385 catch (Exception ex) 406 catch (Exception ex) 441 catch (Exception ex) 462 catch (Exception ex) 497 catch (Exception ex) 518 catch (Exception ex) 553 catch (Exception ex) 574 catch (Exception ex) 609 catch (Exception ex) 630 catch (Exception ex) 665 catch (Exception ex) 686 catch (Exception ex) 721 catch (Exception ex) 742 catch (Exception ex) 777 catch (Exception ex) 798 catch (Exception ex) 833 catch (Exception ex) 854 catch (Exception ex) 889 catch (Exception ex) 910 catch (Exception ex) 945 catch (Exception ex) 966 catch (Exception ex) 1001 catch (Exception ex) 1022 catch (Exception ex) 1057 catch (Exception ex) 1078 catch (Exception ex) 1113 catch (Exception ex) 1134 catch (Exception ex) 1169 catch (Exception ex) 1190 catch (Exception ex) 1225 catch (Exception ex) 1246 catch (Exception ex) 1281 catch (Exception ex) 1302 catch (Exception ex) 1337 catch (Exception ex) 1358 catch (Exception ex) 1393 catch (Exception ex) 1414 catch (Exception ex) 1449 catch (Exception ex) 1470 catch (Exception ex) 1505 catch (Exception ex) 1526 catch (Exception ex) 1561 catch (Exception ex) 1582 catch (Exception ex) 1617 catch (Exception ex) 1638 catch (Exception ex) 1673 catch (Exception ex) 1694 catch (Exception ex) 1729 catch (Exception ex) 1750 catch (Exception ex) 1785 catch (Exception ex) 1806 catch (Exception ex) 1841 catch (Exception ex) 1862 catch (Exception ex) 1897 catch (Exception ex) 1918 catch (Exception ex) 1953 catch (Exception ex) 1974 catch (Exception ex) 2009 catch (Exception ex) 2030 catch (Exception ex) 2065 catch (Exception ex) 2086 catch (Exception ex) 2121 catch (Exception ex) 2142 catch (Exception ex) 2177 catch (Exception ex) 2198 catch (Exception ex) 2233 catch (Exception ex) 2254 catch (Exception ex) 2289 catch (Exception ex) 2310 catch (Exception ex) 2345 catch (Exception ex) 2366 catch (Exception ex) 2401 catch (Exception ex) 2422 catch (Exception ex) 2457 catch (Exception ex) 2478 catch (Exception ex) 2513 catch (Exception ex) 2534 catch (Exception ex) 2569 catch (Exception ex) 2590 catch (Exception ex) 2625 catch (Exception ex) 2646 catch (Exception ex) 2681 catch (Exception ex) 2702 catch (Exception ex) 2737 catch (Exception ex) 2758 catch (Exception ex) 2793 catch (Exception ex) 2814 catch (Exception ex) 2849 catch (Exception ex) 2870 catch (Exception ex) 2905 catch (Exception ex) 2926 catch (Exception ex) 2961 catch (Exception ex) 2982 catch (Exception ex) 3017 catch (Exception ex) 3038 catch (Exception ex) 3073 catch (Exception ex) 3094 catch (Exception ex) 3129 catch (Exception ex) 3150 catch (Exception ex) 3185 catch (Exception ex) 3206 catch (Exception ex) 3241 catch (Exception ex) 3262 catch (Exception ex) 3297 catch (Exception ex) 3318 catch (Exception ex) 3353 catch (Exception ex) 3374 catch (Exception ex) 3409 catch (Exception ex) 3430 catch (Exception ex) 3465 catch (Exception ex) 3486 catch (Exception ex) 3521 catch (Exception ex) 3542 catch (Exception ex) 3577 catch (Exception ex) 3598 catch (Exception ex) 3633 catch (Exception ex) 3654 catch (Exception ex) 3689 catch (Exception ex) 3710 catch (Exception ex) 3745 catch (Exception ex) 3766 catch (Exception ex) 3801 catch (Exception ex) 3822 catch (Exception ex) 3857 catch (Exception ex) 3878 catch (Exception ex) 3913 catch (Exception ex) 3934 catch (Exception ex) 3969 catch (Exception ex) 3990 catch (Exception ex) 4025 catch (Exception ex) 4046 catch (Exception ex) 4081 catch (Exception ex) 4102 catch (Exception ex) 4133 catch (Exception ex) 4168 catch (Exception ex) 4189 catch (Exception ex) 4224 catch (Exception ex) 4245 catch (Exception ex) 4280 catch (Exception ex) 4301 catch (Exception ex) 4336 catch (Exception ex) 4357 catch (Exception ex) 4392 catch (Exception ex) 4413 catch (Exception ex) 4448 catch (Exception ex) 4469 catch (Exception ex) 4504 catch (Exception ex) 4525 catch (Exception ex) 4560 catch (Exception ex) 4580 catch (Exception ex) 4605 catch (Exception ex) 4632 catch (Exception ex)
_generated\169\Windows.Win32.IHTMLScreen.g.cs (10)
126 catch (Exception ex) 157 catch (Exception ex) 192 catch (Exception ex) 213 catch (Exception ex) 244 catch (Exception ex) 275 catch (Exception ex) 310 catch (Exception ex) 331 catch (Exception ex) 362 catch (Exception ex) 393 catch (Exception ex)
_generated\170\Windows.Win32.IHTMLSelectionObject.g.cs (4)
125 catch (Exception ex) 152 catch (Exception ex) 177 catch (Exception ex) 203 catch (Exception ex)
_generated\171\Windows.Win32.IHTMLStyle.g.cs (179)
126 catch (Exception ex) 161 catch (Exception ex) 182 catch (Exception ex) 217 catch (Exception ex) 238 catch (Exception ex) 273 catch (Exception ex) 294 catch (Exception ex) 329 catch (Exception ex) 350 catch (Exception ex) 385 catch (Exception ex) 406 catch (Exception ex) 441 catch (Exception ex) 462 catch (Exception ex) 497 catch (Exception ex) 518 catch (Exception ex) 553 catch (Exception ex) 574 catch (Exception ex) 609 catch (Exception ex) 630 catch (Exception ex) 665 catch (Exception ex) 686 catch (Exception ex) 721 catch (Exception ex) 742 catch (Exception ex) 777 catch (Exception ex) 798 catch (Exception ex) 833 catch (Exception ex) 854 catch (Exception ex) 889 catch (Exception ex) 910 catch (Exception ex) 945 catch (Exception ex) 966 catch (Exception ex) 1001 catch (Exception ex) 1022 catch (Exception ex) 1057 catch (Exception ex) 1078 catch (Exception ex) 1113 catch (Exception ex) 1134 catch (Exception ex) 1169 catch (Exception ex) 1190 catch (Exception ex) 1225 catch (Exception ex) 1246 catch (Exception ex) 1281 catch (Exception ex) 1302 catch (Exception ex) 1337 catch (Exception ex) 1358 catch (Exception ex) 1393 catch (Exception ex) 1414 catch (Exception ex) 1449 catch (Exception ex) 1470 catch (Exception ex) 1505 catch (Exception ex) 1526 catch (Exception ex) 1561 catch (Exception ex) 1582 catch (Exception ex) 1617 catch (Exception ex) 1638 catch (Exception ex) 1673 catch (Exception ex) 1694 catch (Exception ex) 1729 catch (Exception ex) 1750 catch (Exception ex) 1785 catch (Exception ex) 1806 catch (Exception ex) 1841 catch (Exception ex) 1862 catch (Exception ex) 1897 catch (Exception ex) 1918 catch (Exception ex) 1953 catch (Exception ex) 1974 catch (Exception ex) 2009 catch (Exception ex) 2030 catch (Exception ex) 2065 catch (Exception ex) 2086 catch (Exception ex) 2121 catch (Exception ex) 2142 catch (Exception ex) 2177 catch (Exception ex) 2198 catch (Exception ex) 2233 catch (Exception ex) 2254 catch (Exception ex) 2289 catch (Exception ex) 2310 catch (Exception ex) 2345 catch (Exception ex) 2366 catch (Exception ex) 2401 catch (Exception ex) 2422 catch (Exception ex) 2457 catch (Exception ex) 2478 catch (Exception ex) 2513 catch (Exception ex) 2534 catch (Exception ex) 2569 catch (Exception ex) 2590 catch (Exception ex) 2625 catch (Exception ex) 2646 catch (Exception ex) 2681 catch (Exception ex) 2702 catch (Exception ex) 2737 catch (Exception ex) 2758 catch (Exception ex) 2793 catch (Exception ex) 2814 catch (Exception ex) 2849 catch (Exception ex) 2870 catch (Exception ex) 2905 catch (Exception ex) 2926 catch (Exception ex) 2961 catch (Exception ex) 2982 catch (Exception ex) 3017 catch (Exception ex) 3038 catch (Exception ex) 3073 catch (Exception ex) 3094 catch (Exception ex) 3129 catch (Exception ex) 3150 catch (Exception ex) 3185 catch (Exception ex) 3206 catch (Exception ex) 3241 catch (Exception ex) 3262 catch (Exception ex) 3297 catch (Exception ex) 3318 catch (Exception ex) 3353 catch (Exception ex) 3374 catch (Exception ex) 3409 catch (Exception ex) 3430 catch (Exception ex) 3465 catch (Exception ex) 3486 catch (Exception ex) 3521 catch (Exception ex) 3542 catch (Exception ex) 3577 catch (Exception ex) 3598 catch (Exception ex) 3633 catch (Exception ex) 3654 catch (Exception ex) 3689 catch (Exception ex) 3710 catch (Exception ex) 3745 catch (Exception ex) 3766 catch (Exception ex) 3801 catch (Exception ex) 3822 catch (Exception ex) 3857 catch (Exception ex) 3878 catch (Exception ex) 3913 catch (Exception ex) 3934 catch (Exception ex) 3969 catch (Exception ex) 3990 catch (Exception ex) 4025 catch (Exception ex) 4046 catch (Exception ex) 4081 catch (Exception ex) 4102 catch (Exception ex) 4133 catch (Exception ex) 4168 catch (Exception ex) 4189 catch (Exception ex) 4224 catch (Exception ex) 4245 catch (Exception ex) 4280 catch (Exception ex) 4301 catch (Exception ex) 4336 catch (Exception ex) 4356 catch (Exception ex) 4381 catch (Exception ex) 4407 catch (Exception ex) 4442 catch (Exception ex) 4463 catch (Exception ex) 4498 catch (Exception ex) 4519 catch (Exception ex) 4554 catch (Exception ex) 4575 catch (Exception ex) 4610 catch (Exception ex) 4631 catch (Exception ex) 4666 catch (Exception ex) 4687 catch (Exception ex) 4722 catch (Exception ex) 4743 catch (Exception ex) 4778 catch (Exception ex) 4799 catch (Exception ex) 4834 catch (Exception ex) 4855 catch (Exception ex) 4890 catch (Exception ex) 4911 catch (Exception ex) 4946 catch (Exception ex) 4967 catch (Exception ex) 5002 catch (Exception ex) 5022 catch (Exception ex) 5047 catch (Exception ex) 5074 catch (Exception ex) 5101 catch (Exception ex)
_generated\172\Windows.Win32.IHTMLStyleSheet.g.cs (21)
126 catch (Exception ex) 161 catch (Exception ex) 182 catch (Exception ex) 213 catch (Exception ex) 244 catch (Exception ex) 279 catch (Exception ex) 300 catch (Exception ex) 331 catch (Exception ex) 362 catch (Exception ex) 397 catch (Exception ex) 418 catch (Exception ex) 449 catch (Exception ex) 479 catch (Exception ex) 506 catch (Exception ex) 533 catch (Exception ex) 558 catch (Exception ex) 584 catch (Exception ex) 619 catch (Exception ex) 640 catch (Exception ex) 675 catch (Exception ex) 696 catch (Exception ex)
_generated\173\Windows.Win32.IHTMLStyleSheetRule.g.cs (4)
126 catch (Exception ex) 161 catch (Exception ex) 182 catch (Exception ex) 213 catch (Exception ex)
_generated\174\Windows.Win32.IHTMLStyleSheetRulesCollection.g.cs (2)
126 catch (Exception ex) 156 catch (Exception ex)
_generated\175\Windows.Win32.IHTMLStyleSheetsCollection.g.cs (3)
126 catch (Exception ex) 157 catch (Exception ex) 197 catch (Exception ex)
_generated\176\Windows.Win32.IHTMLWindow2.g.cs (70)
135 catch (Exception ex) 172 catch (Exception ex) 197 catch (Exception ex) 223 catch (Exception ex) 258 catch (Exception ex) 278 catch (Exception ex) 303 catch (Exception ex) 338 catch (Exception ex) 365 catch (Exception ex) 390 catch (Exception ex) 425 catch (Exception ex) 460 catch (Exception ex) 486 catch (Exception ex) 516 catch (Exception ex) 541 catch (Exception ex) 566 catch (Exception ex) 592 catch (Exception ex) 630 catch (Exception ex) 656 catch (Exception ex) 686 catch (Exception ex) 711 catch (Exception ex) 736 catch (Exception ex) 761 catch (Exception ex) 787 catch (Exception ex) 818 catch (Exception ex) 849 catch (Exception ex) 879 catch (Exception ex) 905 catch (Exception ex) 940 catch (Exception ex) 961 catch (Exception ex) 996 catch (Exception ex) 1017 catch (Exception ex) 1052 catch (Exception ex) 1073 catch (Exception ex) 1108 catch (Exception ex) 1129 catch (Exception ex) 1164 catch (Exception ex) 1185 catch (Exception ex) 1220 catch (Exception ex) 1241 catch (Exception ex) 1276 catch (Exception ex) 1297 catch (Exception ex) 1332 catch (Exception ex) 1353 catch (Exception ex) 1388 catch (Exception ex) 1408 catch (Exception ex) 1434 catch (Exception ex) 1465 catch (Exception ex) 1508 catch (Exception ex) 1535 catch (Exception ex) 1561 catch (Exception ex) 1592 catch (Exception ex) 1622 catch (Exception ex) 1657 catch (Exception ex) 1682 catch (Exception ex) 1707 catch (Exception ex) 1733 catch (Exception ex) 1773 catch (Exception ex) 1800 catch (Exception ex) 1826 catch (Exception ex) 1861 catch (Exception ex) 1881 catch (Exception ex) 1908 catch (Exception ex) 1935 catch (Exception ex) 1960 catch (Exception ex) 1985 catch (Exception ex) 2010 catch (Exception ex) 2035 catch (Exception ex) 2060 catch (Exception ex) 2086 catch (Exception ex)
_generated\177\Windows.Win32.IHTMLWindow3.g.cs (13)
135 catch (Exception ex) 170 catch (Exception ex) 205 catch (Exception ex) 230 catch (Exception ex) 268 catch (Exception ex) 308 catch (Exception ex) 335 catch (Exception ex) 361 catch (Exception ex) 396 catch (Exception ex) 417 catch (Exception ex) 452 catch (Exception ex) 473 catch (Exception ex) 516 catch (Exception ex)
_generated\178\Windows.Win32.IHTMLWindow4.g.cs (2)
135 catch (Exception ex) 162 catch (Exception ex)
_generated\179\Windows.Win32.IInvokeProvider.g.cs (1)
69 catch (Exception ex)
_generated\180\Windows.Win32.ILegacyIAccessibleProvider.g.cs (14)
69 catch (Exception ex) 105 catch (Exception ex) 146 catch (Exception ex) 182 catch (Exception ex) 226 catch (Exception ex) 255 catch (Exception ex) 284 catch (Exception ex) 313 catch (Exception ex) 352 catch (Exception ex) 391 catch (Exception ex) 420 catch (Exception ex) 449 catch (Exception ex) 478 catch (Exception ex) 512 catch (Exception ex)
_generated\181\Windows.Win32.ILockBytes.g.cs (7)
69 catch (Exception ex) 106 catch (Exception ex) 143 catch (Exception ex) 176 catch (Exception ex) 210 catch (Exception ex) 249 catch (Exception ex) 297 catch (Exception ex)
_generated\186\Windows.Win32.IMessageFilter.g.cs (3)
74 catch (Exception ex) 110 catch (Exception ex) 145 catch (Exception ex)
_generated\190\Windows.Win32.IModalWindow.g.cs (1)
69 catch (Exception ex)
_generated\191\Windows.Win32.IMultipleViewProvider.g.cs (4)
69 catch (Exception ex) 110 catch (Exception ex) 158 catch (Exception ex) 185 catch (Exception ex)
_generated\198\Windows.Win32.IOleAdviseHolder.g.cs (6)
79 catch (Exception ex) 115 catch (Exception ex) 150 catch (Exception ex) 185 catch (Exception ex) 214 catch (Exception ex) 245 catch (Exception ex)
_generated\199\Windows.Win32.IOleClientSite.g.cs (6)
69 catch (Exception ex) 103 catch (Exception ex) 140 catch (Exception ex) 175 catch (Exception ex) 209 catch (Exception ex) 238 catch (Exception ex)
_generated\200\Windows.Win32.IOleCommandTarget.g.cs (2)
82 catch (Exception ex) 133 catch (Exception ex)
_generated\201\Windows.Win32.IOleContainer.g.cs (3)
78 catch (Exception ex) 103 catch (Exception ex) 136 catch (Exception ex)
_generated\202\Windows.Win32.IOleControl.g.cs (4)
79 catch (Exception ex) 123 catch (Exception ex) 159 catch (Exception ex) 191 catch (Exception ex)
_generated\203\Windows.Win32.IOleControlSite.g.cs (7)
69 catch (Exception ex) 99 catch (Exception ex) 131 catch (Exception ex) 180 catch (Exception ex) 224 catch (Exception ex) 257 catch (Exception ex) 286 catch (Exception ex)
_generated\204\Windows.Win32.IOleInPlaceActiveObject.g.cs (7)
78 catch (Exception ex) 103 catch (Exception ex) 136 catch (Exception ex) 171 catch (Exception ex) 202 catch (Exception ex) 243 catch (Exception ex) 281 catch (Exception ex)
_generated\205\Windows.Win32.IOleInPlaceFrame.g.cs (12)
79 catch (Exception ex) 104 catch (Exception ex) 139 catch (Exception ex) 174 catch (Exception ex) 209 catch (Exception ex) 244 catch (Exception ex) 279 catch (Exception ex) 315 catch (Exception ex) 352 catch (Exception ex) 397 catch (Exception ex) 432 catch (Exception ex) 473 catch (Exception ex)
_generated\206\Windows.Win32.IOleInPlaceObject.g.cs (6)
79 catch (Exception ex) 104 catch (Exception ex) 129 catch (Exception ex) 164 catch (Exception ex) 211 catch (Exception ex) 247 catch (Exception ex)
_generated\207\Windows.Win32.IOleInPlaceObjectWindowless.g.cs (8)
78 catch (Exception ex) 103 catch (Exception ex) 128 catch (Exception ex) 153 catch (Exception ex) 190 catch (Exception ex) 215 catch (Exception ex) 249 catch (Exception ex) 288 catch (Exception ex)
_generated\208\Windows.Win32.IOleInPlaceSite.g.cs (12)
79 catch (Exception ex) 104 catch (Exception ex) 129 catch (Exception ex) 164 catch (Exception ex) 198 catch (Exception ex) 248 catch (Exception ex) 287 catch (Exception ex) 322 catch (Exception ex) 357 catch (Exception ex) 391 catch (Exception ex) 425 catch (Exception ex) 469 catch (Exception ex)
_generated\209\Windows.Win32.IOleInPlaceUIWindow.g.cs (6)
79 catch (Exception ex) 104 catch (Exception ex) 139 catch (Exception ex) 184 catch (Exception ex) 231 catch (Exception ex) 277 catch (Exception ex)
_generated\210\Windows.Win32.IOleObject.g.cs (21)
69 catch (Exception ex) 104 catch (Exception ex) 148 catch (Exception ex) 183 catch (Exception ex) 222 catch (Exception ex) 258 catch (Exception ex) 293 catch (Exception ex) 330 catch (Exception ex) 379 catch (Exception ex) 420 catch (Exception ex) 454 catch (Exception ex) 488 catch (Exception ex) 532 catch (Exception ex) 573 catch (Exception ex) 620 catch (Exception ex) 666 catch (Exception ex) 711 catch (Exception ex) 747 catch (Exception ex) 779 catch (Exception ex) 824 catch (Exception ex) 862 catch (Exception ex)
_generated\211\Windows.Win32.IOleParentUndoUnit.g.cs (9)
69 catch (Exception ex) 94 catch (Exception ex) 131 catch (Exception ex) 156 catch (Exception ex) 181 catch (Exception ex) 213 catch (Exception ex) 249 catch (Exception ex) 278 catch (Exception ex) 316 catch (Exception ex)
_generated\212\Windows.Win32.IOleUndoManager.g.cs (12)
69 catch (Exception ex) 101 catch (Exception ex) 137 catch (Exception ex) 178 catch (Exception ex) 211 catch (Exception ex) 246 catch (Exception ex) 282 catch (Exception ex) 317 catch (Exception ex) 352 catch (Exception ex) 387 catch (Exception ex) 419 catch (Exception ex) 451 catch (Exception ex)
_generated\213\Windows.Win32.IOleUndoUnit.g.cs (4)
69 catch (Exception ex) 101 catch (Exception ex) 145 catch (Exception ex) 178 catch (Exception ex)
_generated\214\Windows.Win32.IOleWindow.g.cs (2)
79 catch (Exception ex) 115 catch (Exception ex)
_generated\215\Windows.Win32.IOmHistory.g.cs (4)
126 catch (Exception ex) 165 catch (Exception ex) 199 catch (Exception ex) 234 catch (Exception ex)
_generated\216\Windows.Win32.IOmNavigator.g.cs (20)
126 catch (Exception ex) 157 catch (Exception ex) 188 catch (Exception ex) 219 catch (Exception ex) 249 catch (Exception ex) 276 catch (Exception ex) 304 catch (Exception ex) 335 catch (Exception ex) 366 catch (Exception ex) 397 catch (Exception ex) 427 catch (Exception ex) 455 catch (Exception ex) 486 catch (Exception ex) 517 catch (Exception ex) 548 catch (Exception ex) 579 catch (Exception ex) 610 catch (Exception ex) 641 catch (Exception ex) 672 catch (Exception ex) 703 catch (Exception ex)
_generated\217\Windows.Win32.IParseDisplayName.g.cs (1)
78 catch (Exception ex)
_generated\218\Windows.Win32.IPerPropertyBrowsing.g.cs (4)
69 catch (Exception ex) 114 catch (Exception ex) 160 catch (Exception ex) 209 catch (Exception ex)
_generated\219\Windows.Win32.IPersistPropertyBag.g.cs (4)
77 catch (Exception ex) 102 catch (Exception ex) 130 catch (Exception ex) 163 catch (Exception ex)
_generated\220\Windows.Win32.IPersistStorage.g.cs (7)
78 catch (Exception ex) 103 catch (Exception ex) 134 catch (Exception ex) 170 catch (Exception ex) 206 catch (Exception ex) 246 catch (Exception ex) 281 catch (Exception ex)
_generated\221\Windows.Win32.IPersistStreamInit.g.cs (6)
78 catch (Exception ex) 103 catch (Exception ex) 134 catch (Exception ex) 169 catch (Exception ex) 214 catch (Exception ex) 246 catch (Exception ex)
_generated\222\Windows.Win32.IPropertyBag.g.cs (2)
81 catch (Exception ex) 127 catch (Exception ex)
_generated\223\Windows.Win32.IPropertyDescriptionList.g.cs (2)
78 catch (Exception ex) 126 catch (Exception ex)
_generated\224\Windows.Win32.IPropertyNotifySink.g.cs (2)
69 catch (Exception ex) 98 catch (Exception ex)
_generated\225\Windows.Win32.IPropertyStore.g.cs (5)
77 catch (Exception ex) 118 catch (Exception ex) 160 catch (Exception ex) 204 catch (Exception ex) 240 catch (Exception ex)
_generated\226\Windows.Win32.IProvideClassInfo.g.cs (1)
69 catch (Exception ex)
_generated\227\Windows.Win32.IProvideClassInfo2.g.cs (2)
69 catch (Exception ex) 103 catch (Exception ex)
_generated\228\Windows.Win32.IProvideMultipleClassInfo.g.cs (4)
69 catch (Exception ex) 103 catch (Exception ex) 138 catch (Exception ex) 188 catch (Exception ex)
_generated\229\Windows.Win32.IQuickActivate.g.cs (3)
82 catch (Exception ex) 125 catch (Exception ex) 166 catch (Exception ex)
_generated\230\Windows.Win32.IRangeValueProvider.g.cs (7)
69 catch (Exception ex) 113 catch (Exception ex) 152 catch (Exception ex) 191 catch (Exception ex) 228 catch (Exception ex) 265 catch (Exception ex) 307 catch (Exception ex)
_generated\231\Windows.Win32.IRawElementProviderFragment.g.cs (6)
69 catch (Exception ex) 116 catch (Exception ex) 163 catch (Exception ex) 203 catch (Exception ex) 240 catch (Exception ex) 273 catch (Exception ex)
_generated\232\Windows.Win32.IRawElementProviderFragmentRoot.g.cs (2)
69 catch (Exception ex) 114 catch (Exception ex)
_generated\233\Windows.Win32.IRawElementProviderHwndOverride.g.cs (1)
69 catch (Exception ex)
_generated\234\Windows.Win32.IRawElementProviderSimple.g.cs (4)
79 catch (Exception ex) 109 catch (Exception ex) 159 catch (Exception ex) 202 catch (Exception ex)
_generated\235\Windows.Win32.IRichEditOle.g.cs (16)
69 catch (Exception ex) 102 catch (Exception ex) 132 catch (Exception ex) 174 catch (Exception ex) 224 catch (Exception ex) 270 catch (Exception ex) 326 catch (Exception ex) 378 catch (Exception ex) 418 catch (Exception ex) 458 catch (Exception ex) 498 catch (Exception ex) 534 catch (Exception ex) 574 catch (Exception ex) 606 catch (Exception ex) 651 catch (Exception ex) 696 catch (Exception ex)
_generated\236\Windows.Win32.IRichEditOleCallback.g.cs (10)
69 catch (Exception ex) 114 catch (Exception ex) 159 catch (Exception ex) 207 catch (Exception ex) 252 catch (Exception ex) 298 catch (Exception ex) 349 catch (Exception ex) 396 catch (Exception ex) 452 catch (Exception ex) 509 catch (Exception ex)
_generated\237\Windows.Win32.IScrollItemProvider.g.cs (1)
69 catch (Exception ex)
_generated\238\Windows.Win32.IScrollProvider.g.cs (8)
69 catch (Exception ex) 101 catch (Exception ex) 143 catch (Exception ex) 176 catch (Exception ex) 209 catch (Exception ex) 244 catch (Exception ex) 279 catch (Exception ex) 315 catch (Exception ex)
_generated\239\Windows.Win32.ISelectionItemProvider.g.cs (5)
69 catch (Exception ex) 99 catch (Exception ex) 132 catch (Exception ex) 175 catch (Exception ex) 204 catch (Exception ex)
_generated\240\Windows.Win32.ISelectionProvider.g.cs (3)
69 catch (Exception ex) 113 catch (Exception ex) 153 catch (Exception ex)
_generated\241\Windows.Win32.IShellFolder.g.cs (10)
81 catch (Exception ex) 144 catch (Exception ex) 204 catch (Exception ex) 269 catch (Exception ex) 328 catch (Exception ex) 389 catch (Exception ex) 445 catch (Exception ex) 504 catch (Exception ex) 574 catch (Exception ex) 631 catch (Exception ex)
_generated\242\Windows.Win32.IShellItem.g.cs (5)
84 catch (Exception ex) 129 catch (Exception ex) 174 catch (Exception ex) 221 catch (Exception ex) 270 catch (Exception ex)
_generated\243\Windows.Win32.IShellItemArray.g.cs (7)
84 catch (Exception ex) 141 catch (Exception ex) 202 catch (Exception ex) 258 catch (Exception ex) 309 catch (Exception ex) 345 catch (Exception ex) 383 catch (Exception ex)
_generated\244\Windows.Win32.IShellItemFilter.g.cs (2)
69 catch (Exception ex) 112 catch (Exception ex)
_generated\245\Windows.Win32.ISimpleFrameSite.g.cs (2)
81 catch (Exception ex) 127 catch (Exception ex)
_generated\246\Windows.Win32.ISpecifyPropertyPages.g.cs (1)
79 catch (Exception ex)
_generated\247\Windows.Win32.ISupportErrorInfo.g.cs (1)
78 catch (Exception ex)
_generated\248\Windows.Win32.ITableItemProvider.g.cs (2)
69 catch (Exception ex) 103 catch (Exception ex)
_generated\249\Windows.Win32.ITableProvider.g.cs (3)
69 catch (Exception ex) 103 catch (Exception ex) 147 catch (Exception ex)
_generated\251\Windows.Win32.ITextDocument.g.cs (19)
126 catch (Exception ex) 163 catch (Exception ex) 209 catch (Exception ex) 247 catch (Exception ex) 291 catch (Exception ex) 326 catch (Exception ex) 371 catch (Exception ex) 405 catch (Exception ex) 442 catch (Exception ex) 481 catch (Exception ex) 540 catch (Exception ex) 595 catch (Exception ex) 638 catch (Exception ex) 675 catch (Exception ex) 709 catch (Exception ex) 749 catch (Exception ex) 798 catch (Exception ex) 839 catch (Exception ex) 884 catch (Exception ex)
_generated\252\Windows.Win32.ITextFont.g.cs (55)
126 catch (Exception ex) 164 catch (Exception ex) 211 catch (Exception ex) 255 catch (Exception ex) 293 catch (Exception ex) 337 catch (Exception ex) 372 catch (Exception ex) 416 catch (Exception ex) 452 catch (Exception ex) 499 catch (Exception ex) 537 catch (Exception ex) 580 catch (Exception ex) 614 catch (Exception ex) 662 catch (Exception ex) 698 catch (Exception ex) 745 catch (Exception ex) 781 catch (Exception ex) 828 catch (Exception ex) 862 catch (Exception ex) 910 catch (Exception ex) 946 catch (Exception ex) 993 catch (Exception ex) 1029 catch (Exception ex) 1076 catch (Exception ex) 1114 catch (Exception ex) 1161 catch (Exception ex) 1199 catch (Exception ex) 1243 catch (Exception ex) 1278 catch (Exception ex) 1317 catch (Exception ex) 1354 catch (Exception ex) 1400 catch (Exception ex) 1436 catch (Exception ex) 1483 catch (Exception ex) 1518 catch (Exception ex) 1562 catch (Exception ex) 1598 catch (Exception ex) 1643 catch (Exception ex) 1679 catch (Exception ex) 1726 catch (Exception ex) 1763 catch (Exception ex) 1809 catch (Exception ex) 1845 catch (Exception ex) 1892 catch (Exception ex) 1927 catch (Exception ex) 1971 catch (Exception ex) 2007 catch (Exception ex) 2054 catch (Exception ex) 2090 catch (Exception ex) 2137 catch (Exception ex) 2173 catch (Exception ex) 2220 catch (Exception ex) 2254 catch (Exception ex) 2297 catch (Exception ex) 2335 catch (Exception ex)
_generated\253\Windows.Win32.ITextPara.g.cs (48)
126 catch (Exception ex) 163 catch (Exception ex) 207 catch (Exception ex) 250 catch (Exception ex) 290 catch (Exception ex) 337 catch (Exception ex) 376 catch (Exception ex) 422 catch (Exception ex) 456 catch (Exception ex) 502 catch (Exception ex) 534 catch (Exception ex) 581 catch (Exception ex) 628 catch (Exception ex) 660 catch (Exception ex) 705 catch (Exception ex) 737 catch (Exception ex) 782 catch (Exception ex) 829 catch (Exception ex) 875 catch (Exception ex) 918 catch (Exception ex) 950 catch (Exception ex) 996 catch (Exception ex) 1035 catch (Exception ex) 1079 catch (Exception ex) 1114 catch (Exception ex) 1158 catch (Exception ex) 1193 catch (Exception ex) 1239 catch (Exception ex) 1276 catch (Exception ex) 1322 catch (Exception ex) 1354 catch (Exception ex) 1402 catch (Exception ex) 1436 catch (Exception ex) 1477 catch (Exception ex) 1514 catch (Exception ex) 1551 catch (Exception ex) 1594 catch (Exception ex) 1642 catch (Exception ex) 1679 catch (Exception ex) 1725 catch (Exception ex) 1762 catch (Exception ex) 1808 catch (Exception ex) 1840 catch (Exception ex) 1888 catch (Exception ex) 1923 catch (Exception ex) 1968 catch (Exception ex) 2001 catch (Exception ex) 2053 catch (Exception ex)
_generated\254\Windows.Win32.ITextProvider.g.cs (6)
69 catch (Exception ex) 105 catch (Exception ex) 141 catch (Exception ex) 177 catch (Exception ex) 218 catch (Exception ex) 251 catch (Exception ex)
_generated\255\Windows.Win32.ITextProvider2.g.cs (8)
69 catch (Exception ex) 96 catch (Exception ex) 123 catch (Exception ex) 150 catch (Exception ex) 178 catch (Exception ex) 209 catch (Exception ex) 239 catch (Exception ex) 287 catch (Exception ex)
_generated\256\Windows.Win32.ITextRange.g.cs (51)
126 catch (Exception ex) 165 catch (Exception ex) 212 catch (Exception ex) 251 catch (Exception ex) 291 catch (Exception ex) 329 catch (Exception ex) 368 catch (Exception ex) 415 catch (Exception ex) 451 catch (Exception ex) 498 catch (Exception ex) 535 catch (Exception ex) 573 catch (Exception ex) 607 catch (Exception ex) 642 catch (Exception ex) 676 catch (Exception ex) 722 catch (Exception ex) 767 catch (Exception ex) 800 catch (Exception ex) 846 catch (Exception ex) 894 catch (Exception ex) 936 catch (Exception ex) 979 catch (Exception ex) 1030 catch (Exception ex) 1081 catch (Exception ex) 1130 catch (Exception ex) 1171 catch (Exception ex) 1214 catch (Exception ex) 1267 catch (Exception ex) 1321 catch (Exception ex) 1377 catch (Exception ex) 1432 catch (Exception ex) 1490 catch (Exception ex) 1550 catch (Exception ex) 1608 catch (Exception ex) 1666 catch (Exception ex) 1726 catch (Exception ex) 1784 catch (Exception ex) 1839 catch (Exception ex) 1898 catch (Exception ex) 1954 catch (Exception ex) 2010 catch (Exception ex) 2066 catch (Exception ex) 2114 catch (Exception ex) 2162 catch (Exception ex) 2214 catch (Exception ex) 2270 catch (Exception ex) 2304 catch (Exception ex) 2353 catch (Exception ex) 2396 catch (Exception ex) 2444 catch (Exception ex) 2481 catch (Exception ex)
_generated\257\Windows.Win32.ITextRangeProvider.g.cs (18)
69 catch (Exception ex) 101 catch (Exception ex) 137 catch (Exception ex) 178 catch (Exception ex) 217 catch (Exception ex) 261 catch (Exception ex) 305 catch (Exception ex) 341 catch (Exception ex) 375 catch (Exception ex) 407 catch (Exception ex) 446 catch (Exception ex) 488 catch (Exception ex) 528 catch (Exception ex) 562 catch (Exception ex) 592 catch (Exception ex) 626 catch (Exception ex) 660 catch (Exception ex) 697 catch (Exception ex)
_generated\258\Windows.Win32.ITextSelection.g.cs (61)
126 catch (Exception ex) 151 catch (Exception ex) 185 catch (Exception ex) 210 catch (Exception ex) 235 catch (Exception ex) 260 catch (Exception ex) 285 catch (Exception ex) 319 catch (Exception ex) 344 catch (Exception ex) 378 catch (Exception ex) 403 catch (Exception ex) 428 catch (Exception ex) 453 catch (Exception ex) 478 catch (Exception ex) 503 catch (Exception ex) 537 catch (Exception ex) 571 catch (Exception ex) 596 catch (Exception ex) 630 catch (Exception ex) 664 catch (Exception ex) 689 catch (Exception ex) 714 catch (Exception ex) 748 catch (Exception ex) 782 catch (Exception ex) 816 catch (Exception ex) 841 catch (Exception ex) 875 catch (Exception ex) 909 catch (Exception ex) 943 catch (Exception ex) 977 catch (Exception ex) 1011 catch (Exception ex) 1048 catch (Exception ex) 1085 catch (Exception ex) 1122 catch (Exception ex) 1159 catch (Exception ex) 1196 catch (Exception ex) 1233 catch (Exception ex) 1267 catch (Exception ex) 1301 catch (Exception ex) 1335 catch (Exception ex) 1369 catch (Exception ex) 1403 catch (Exception ex) 1437 catch (Exception ex) 1471 catch (Exception ex) 1508 catch (Exception ex) 1542 catch (Exception ex) 1567 catch (Exception ex) 1604 catch (Exception ex) 1629 catch (Exception ex) 1654 catch (Exception ex) 1679 catch (Exception ex) 1713 catch (Exception ex) 1751 catch (Exception ex) 1801 catch (Exception ex) 1848 catch (Exception ex) 1910 catch (Exception ex) 1972 catch (Exception ex) 2030 catch (Exception ex) 2088 catch (Exception ex) 2140 catch (Exception ex) 2188 catch (Exception ex)
_generated\259\Windows.Win32.ITextStoryRanges.g.cs (3)
126 catch (Exception ex) 166 catch (Exception ex) 216 catch (Exception ex)
_generated\260\Windows.Win32.IToggleProvider.g.cs (2)
69 catch (Exception ex) 112 catch (Exception ex)
_generated\261\Windows.Win32.IUIAutomation.g.cs (55)
69 catch (Exception ex) 111 catch (Exception ex) 153 catch (Exception ex) 188 catch (Exception ex) 226 catch (Exception ex) 262 catch (Exception ex) 296 catch (Exception ex) 335 catch (Exception ex) 377 catch (Exception ex) 419 catch (Exception ex) 457 catch (Exception ex) 496 catch (Exception ex) 531 catch (Exception ex) 566 catch (Exception ex) 601 catch (Exception ex) 634 catch (Exception ex) 669 catch (Exception ex) 703 catch (Exception ex) 735 catch (Exception ex) 769 catch (Exception ex) 801 catch (Exception ex) 843 catch (Exception ex) 885 catch (Exception ex) 929 catch (Exception ex) 965 catch (Exception ex) 1005 catch (Exception ex) 1045 catch (Exception ex) 1081 catch (Exception ex) 1121 catch (Exception ex) 1157 catch (Exception ex) 1203 catch (Exception ex) 1257 catch (Exception ex) 1311 catch (Exception ex) 1361 catch (Exception ex) 1402 catch (Exception ex) 1444 catch (Exception ex) 1485 catch (Exception ex) 1526 catch (Exception ex) 1563 catch (Exception ex) 1606 catch (Exception ex) 1648 catch (Exception ex) 1690 catch (Exception ex) 1726 catch (Exception ex) 1764 catch (Exception ex) 1806 catch (Exception ex) 1843 catch (Exception ex) 1877 catch (Exception ex) 1916 catch (Exception ex) 1967 catch (Exception ex) 2024 catch (Exception ex) 2069 catch (Exception ex) 2106 catch (Exception ex) 2139 catch (Exception ex) 2171 catch (Exception ex) 2214 catch (Exception ex)
_generated\262\Windows.Win32.IUIAutomationCacheRequest.g.cs (9)
69 catch (Exception ex) 105 catch (Exception ex) 139 catch (Exception ex) 174 catch (Exception ex) 211 catch (Exception ex) 232 catch (Exception ex) 271 catch (Exception ex) 292 catch (Exception ex) 332 catch (Exception ex)
_generated\264\Windows.Win32.IUIAutomationElement.g.cs (82)
69 catch (Exception ex) 101 catch (Exception ex) 136 catch (Exception ex) 175 catch (Exception ex) 214 catch (Exception ex) 257 catch (Exception ex) 300 catch (Exception ex) 336 catch (Exception ex) 372 catch (Exception ex) 415 catch (Exception ex) 451 catch (Exception ex) 504 catch (Exception ex) 554 catch (Exception ex) 594 catch (Exception ex) 633 catch (Exception ex) 671 catch (Exception ex) 705 catch (Exception ex) 741 catch (Exception ex) 776 catch (Exception ex) 812 catch (Exception ex) 846 catch (Exception ex) 874 catch (Exception ex) 909 catch (Exception ex) 942 catch (Exception ex) 977 catch (Exception ex) 1012 catch (Exception ex) 1047 catch (Exception ex) 1080 catch (Exception ex) 1113 catch (Exception ex) 1149 catch (Exception ex) 1184 catch (Exception ex) 1219 catch (Exception ex) 1252 catch (Exception ex) 1285 catch (Exception ex) 1320 catch (Exception ex) 1353 catch (Exception ex) 1388 catch (Exception ex) 1421 catch (Exception ex) 1456 catch (Exception ex) 1491 catch (Exception ex) 1533 catch (Exception ex) 1563 catch (Exception ex) 1599 catch (Exception ex) 1634 catch (Exception ex) 1669 catch (Exception ex) 1704 catch (Exception ex) 1739 catch (Exception ex) 1772 catch (Exception ex) 1805 catch (Exception ex) 1840 catch (Exception ex) 1875 catch (Exception ex) 1908 catch (Exception ex) 1943 catch (Exception ex) 1976 catch (Exception ex) 2011 catch (Exception ex) 2044 catch (Exception ex) 2079 catch (Exception ex) 2114 catch (Exception ex) 2149 catch (Exception ex) 2182 catch (Exception ex) 2215 catch (Exception ex) 2251 catch (Exception ex) 2286 catch (Exception ex) 2319 catch (Exception ex) 2352 catch (Exception ex) 2385 catch (Exception ex) 2420 catch (Exception ex) 2453 catch (Exception ex) 2488 catch (Exception ex) 2521 catch (Exception ex) 2556 catch (Exception ex) 2591 catch (Exception ex) 2624 catch (Exception ex) 2659 catch (Exception ex) 2695 catch (Exception ex) 2730 catch (Exception ex) 2765 catch (Exception ex) 2800 catch (Exception ex) 2835 catch (Exception ex) 2868 catch (Exception ex) 2901 catch (Exception ex) 2948 catch (Exception ex)
_generated\265\Windows.Win32.IUIAutomationElementArray.g.cs (2)
70 catch (Exception ex) 104 catch (Exception ex)
_generated\266\Windows.Win32.IUIAutomationEventHandler.g.cs (1)
69 catch (Exception ex)
_generated\267\Windows.Win32.IUIAutomationFocusChangedEventHandler.g.cs (1)
69 catch (Exception ex)
_generated\268\Windows.Win32.IUIAutomationPropertyChangedEventHandler.g.cs (1)
69 catch (Exception ex)
_generated\269\Windows.Win32.IUIAutomationProxyFactory.g.cs (2)
69 catch (Exception ex) 114 catch (Exception ex)
_generated\270\Windows.Win32.IUIAutomationProxyFactoryEntry.g.cs (13)
70 catch (Exception ex) 104 catch (Exception ex) 135 catch (Exception ex) 166 catch (Exception ex) 204 catch (Exception ex) 242 catch (Exception ex) 289 catch (Exception ex) 327 catch (Exception ex) 356 catch (Exception ex) 376 catch (Exception ex) 396 catch (Exception ex) 416 catch (Exception ex) 458 catch (Exception ex)
_generated\271\Windows.Win32.IUIAutomationProxyFactoryMapping.g.cs (9)
70 catch (Exception ex) 104 catch (Exception ex) 138 catch (Exception ex) 176 catch (Exception ex) 212 catch (Exception ex) 252 catch (Exception ex) 292 catch (Exception ex) 328 catch (Exception ex) 360 catch (Exception ex)
_generated\272\Windows.Win32.IUIAutomationStructureChangedEventHandler.g.cs (1)
69 catch (Exception ex)
_generated\273\Windows.Win32.IUIAutomationTreeWalker.g.cs (13)
69 catch (Exception ex) 105 catch (Exception ex) 144 catch (Exception ex) 183 catch (Exception ex) 222 catch (Exception ex) 261 catch (Exception ex) 300 catch (Exception ex) 340 catch (Exception ex) 383 catch (Exception ex) 426 catch (Exception ex) 469 catch (Exception ex) 512 catch (Exception ex) 557 catch (Exception ex)
_generated\274\Windows.Win32.IValueProvider.g.cs (3)
78 catch (Exception ex) 116 catch (Exception ex) 158 catch (Exception ex)
_generated\275\Windows.Win32.IVBFormat.g.cs (1)
80 catch (Exception ex)
_generated\276\Windows.Win32.IVBGetControl.g.cs (1)
68 catch (Exception ex)
_generated\277\Windows.Win32.IViewObject.g.cs (6)
77 catch (Exception ex) 134 catch (Exception ex) 183 catch (Exception ex) 221 catch (Exception ex) 255 catch (Exception ex) 296 catch (Exception ex)
_generated\278\Windows.Win32.IViewObject2.g.cs (7)
77 catch (Exception ex) 111 catch (Exception ex) 145 catch (Exception ex) 170 catch (Exception ex) 195 catch (Exception ex) 220 catch (Exception ex) 254 catch (Exception ex)
_generated\279\Windows.Win32.IWebBrowser.g.cs (25)
125 catch (Exception ex) 150 catch (Exception ex) 175 catch (Exception ex) 200 catch (Exception ex) 235 catch (Exception ex) 260 catch (Exception ex) 292 catch (Exception ex) 317 catch (Exception ex) 343 catch (Exception ex) 374 catch (Exception ex) 405 catch (Exception ex) 435 catch (Exception ex) 461 catch (Exception ex) 492 catch (Exception ex) 523 catch (Exception ex) 558 catch (Exception ex) 579 catch (Exception ex) 614 catch (Exception ex) 635 catch (Exception ex) 670 catch (Exception ex) 691 catch (Exception ex) 726 catch (Exception ex) 746 catch (Exception ex) 771 catch (Exception ex) 806 catch (Exception ex)
_generated\280\Windows.Win32.IWebBrowser2.g.cs (64)
137 catch (Exception ex) 162 catch (Exception ex) 187 catch (Exception ex) 212 catch (Exception ex) 247 catch (Exception ex) 272 catch (Exception ex) 305 catch (Exception ex) 330 catch (Exception ex) 356 catch (Exception ex) 387 catch (Exception ex) 418 catch (Exception ex) 448 catch (Exception ex) 474 catch (Exception ex) 505 catch (Exception ex) 536 catch (Exception ex) 571 catch (Exception ex) 592 catch (Exception ex) 627 catch (Exception ex) 648 catch (Exception ex) 683 catch (Exception ex) 704 catch (Exception ex) 739 catch (Exception ex) 759 catch (Exception ex) 784 catch (Exception ex) 819 catch (Exception ex) 844 catch (Exception ex) 881 catch (Exception ex) 906 catch (Exception ex) 931 catch (Exception ex) 959 catch (Exception ex) 990 catch (Exception ex) 1023 catch (Exception ex) 1054 catch (Exception ex) 1085 catch (Exception ex) 1120 catch (Exception ex) 1141 catch (Exception ex) 1176 catch (Exception ex) 1197 catch (Exception ex) 1232 catch (Exception ex) 1253 catch (Exception ex) 1293 catch (Exception ex) 1314 catch (Exception ex) 1349 catch (Exception ex) 1370 catch (Exception ex) 1405 catch (Exception ex) 1439 catch (Exception ex) 1464 catch (Exception ex) 1499 catch (Exception ex) 1535 catch (Exception ex) 1570 catch (Exception ex) 1605 catch (Exception ex) 1631 catch (Exception ex) 1669 catch (Exception ex) 1694 catch (Exception ex) 1720 catch (Exception ex) 1755 catch (Exception ex) 1785 catch (Exception ex) 1810 catch (Exception ex) 1836 catch (Exception ex) 1876 catch (Exception ex) 1897 catch (Exception ex) 1932 catch (Exception ex) 1953 catch (Exception ex) 1988 catch (Exception ex)
_generated\281\Windows.Win32.IWebBrowserApp.g.cs (45)
125 catch (Exception ex) 150 catch (Exception ex) 175 catch (Exception ex) 200 catch (Exception ex) 235 catch (Exception ex) 260 catch (Exception ex) 292 catch (Exception ex) 317 catch (Exception ex) 343 catch (Exception ex) 374 catch (Exception ex) 405 catch (Exception ex) 435 catch (Exception ex) 461 catch (Exception ex) 492 catch (Exception ex) 523 catch (Exception ex) 558 catch (Exception ex) 579 catch (Exception ex) 614 catch (Exception ex) 635 catch (Exception ex) 670 catch (Exception ex) 691 catch (Exception ex) 726 catch (Exception ex) 746 catch (Exception ex) 771 catch (Exception ex) 806 catch (Exception ex) 831 catch (Exception ex) 868 catch (Exception ex) 893 catch (Exception ex) 918 catch (Exception ex) 946 catch (Exception ex) 977 catch (Exception ex) 1010 catch (Exception ex) 1041 catch (Exception ex) 1072 catch (Exception ex) 1107 catch (Exception ex) 1128 catch (Exception ex) 1163 catch (Exception ex) 1184 catch (Exception ex) 1219 catch (Exception ex) 1240 catch (Exception ex) 1280 catch (Exception ex) 1301 catch (Exception ex) 1336 catch (Exception ex) 1357 catch (Exception ex) 1392 catch (Exception ex)
System\Windows\Forms\Internals\ThemingScope.cs (1)
116catch (Exception e) when (e is UnauthorizedAccessException or IOException)
Windows\Win32\System\Ole\ClassPropertyDispatchAdapter.cs (2)
214catch (Exception ex) 238catch (Exception ex)
System.Windows.Input.Manipulations (12)
System\Windows\Input\Manipulations\Exceptions.cs (12)
20public static Exception ValueMustBeFinite(string paramName, object value) 31public static Exception ValueMustBeFiniteOrNaN(string paramName, object value) 42public static Exception ValueMustBeFiniteNonNegative(string paramName, object value) 53public static Exception IllegalPivotRadius(string paramName, object value) 64public static Exception IllegialInertiaRadius(string paramName, object value) 75public static Exception InvalidTimestamp(string paramName, long value) 86public static Exception ArgumentOutOfRange(string paramName, object value) 97public static Exception OnlyProportionalExpansionSupported( 115public static Exception InertiaParametersUnspecified2( 134public static Exception InertiaParametersUnspecified1and2( 155public static Exception CannotChangeParameterDuringInertia(string paramName) 172public static Exception NoInertiaVelocitiesSpecified(
System.Xaml (53)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CriticalExceptions.cs (3)
19internal static bool IsCriticalException(Exception ex) 45internal static Exception Unwrap(Exception ex)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (1)
98catch (Exception e) when (!CriticalExceptions.IsCriticalException(e))
System\Windows\Markup\ValueSerializer.cs (2)
233protected Exception GetConvertToException(object? value, Type destinationType) 253protected Exception GetConvertFromException(object? value)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (2)
1320catch (Exception ex) 2193catch (Exception ex)
System\Xaml\Parser\XamlPullParser.cs (1)
1255public XamlUnexpectedParseException(string message, Exception innerException)
System\Xaml\Runtime\ClrObjectRuntime.cs (27)
34private static Exception UnwrapTargetInvocationException(Exception e) 59catch (Exception ex) 88catch (Exception e) 166catch (Exception ex) 183catch (Exception ex) 200catch (Exception ex) 217catch (Exception ex) 234catch (Exception ex) 270catch (Exception e) 299catch (Exception e) 321catch (Exception e) 338catch (Exception e) 361catch (Exception ex) 407catch (Exception ex) 424catch (Exception ex) 449catch (Exception ex) 469catch (Exception e) 496catch (Exception e) 514catch (Exception e) 534catch (Exception e) 564catch (Exception e) 594catch (Exception e) 625catch (Exception e) 642catch (Exception ex) 703private XamlException CreateException(string message, Exception innerException) 725catch (Exception ex)
System\Xaml\XamlBackgroundReader.cs (3)
34private Exception _caughtException; 105catch (Exception ex) 203Exception ex = _caughtException;
System\Xaml\XamlException.cs (9)
14public XamlException(string message, Exception innerException, int lineNumber, int linePosition) 21public XamlException(string message, Exception innerException) 107public XamlParseException(string message, Exception innerException) 129public XamlObjectWriterException(string message, Exception innerException) 155public XamlDuplicateMemberException(string message, Exception innerException) 191public XamlInternalException(string message, Exception innerException) 208public XamlSchemaException(string message, Exception innerException) 227public XamlObjectReaderException(string message, Exception innerException) 250public XamlXmlWriterException(string message, Exception innerException)
System\Xaml\XamlMember.cs (1)
107throw new ArgumentNullException(SR.GetterOrSetterRequired, (Exception)null);
System\Xaml\XamlSchemaContext.cs (4)
447catch (Exception ex) 1143catch (Exception ex) 1346catch (Exception ex) 1369catch (Exception ex)
testhost (1)
src\vstest\src\testhost.x86\Program.cs (1)
39catch (Exception ex)
testhost.arm64 (1)
src\vstest\src\testhost.x86\Program.cs (1)
39catch (Exception ex)
testhost.x86 (1)
Program.cs (1)
39catch (Exception ex)
TestProject.IntegrationServiceA (4)
Postgres\NpgsqlEFCoreExtensions.cs (1)
20catch (Exception e)
Postgres\PostgresExtensions.cs (1)
25catch (Exception e)
Redis\RedisExtensions.cs (1)
26catch (Exception e)
ResilienceUtils.cs (1)
11public static ResiliencePipelineBuilder GetDefaultResiliencePipelineBuilder<TException>(Func<OnRetryArguments<object>, ValueTask> onRetry, int overallTimeoutSecs = 90) where TException : Exception
tlens (3)
src\runtime\src\tools\illink\external\Mono.Options\Options.cs (3)
540catch (Exception e) 776public OptionException(string message, string optionName, Exception innerException) 909catch (Exception)
UIAutomationClient (14)
MS\Internal\Automation\Accessible.cs (3)
43catch (Exception e) 66catch( Exception e ) 95private bool IsCriticalMSAAException(Exception e)
MS\Internal\Automation\FocusTracker.cs (2)
189catch( Exception e ) 258catch( Exception e )
MS\Internal\Automation\InvokeHandlers.cs (1)
96catch (Exception e)
MS\Internal\Automation\Misc.cs (1)
209internal static bool IsCriticalException( Exception e )
MS\Internal\Automation\ProxyManager.cs (1)
698catch( Exception e )
MS\Internal\Automation\QueueProcessor.cs (1)
163catch (Exception e)
MS\Internal\Automation\UiaCoreApi.cs (2)
1127&& !(arr[1] is Exception) ) 1593catch (Exception)
MS\Internal\Automation\WinEventWrap.cs (2)
187catch( Exception e ) 202catch( Exception ex )
System\Windows\Automation\AutomationElement.cs (1)
584catch (Exception e)
UIAutomationClientSideProviders (35)
MS\Internal\AutomationProxies\Accessible.cs (23)
389catch (Exception e) 485catch (Exception e) 509catch (Exception e) 526catch (Exception e) 582catch (Exception e) 601catch (Exception e) 648catch (Exception e) 709catch (Exception e) 735catch (Exception e) 789catch (Exception e) 846catch (Exception e) 885catch (Exception e) 923catch (Exception e) 1085catch (Exception e) 1120catch (Exception e) 1150catch (Exception e) 1180catch (Exception e) 1196catch (Exception e) 1212catch (Exception e) 1228catch (Exception e) 1245catch (Exception e) 1263catch (Exception e) 1284private static bool HandleIAccessibleException(Exception e)
MS\Internal\AutomationProxies\Misc.cs (2)
801internal static bool IsCriticalException(Exception e) 1821catch (Exception ex)
MS\Internal\AutomationProxies\MSAANativeProvider.cs (1)
1203catch (Exception e)
MS\Internal\AutomationProxies\MSAAWinEventWrap.cs (2)
136catch (Exception e) 153catch (Exception e)
MS\Internal\AutomationProxies\QueueProcessor.cs (1)
131catch( Exception e )
MS\Internal\AutomationProxies\WindowsListViewItemStartMenu.cs (1)
95catch (Exception e)
MS\Internal\AutomationProxies\WinEventTracker.cs (5)
162catch (Exception e) 261catch (Exception e) 306catch (Exception e) 324catch (Exception e) 477catch (Exception e)
UIAutomationTypes (5)
System\Windows\Automation\ElementNotAvailableException.cs (2)
46public ElementNotAvailableException(string message, Exception innerException) : base(message, innerException) 55public ElementNotAvailableException(Exception innerException) : base(SR.ElementNotAvailable, innerException)
System\Windows\Automation\ElementNotEnabledException.cs (1)
46public ElementNotEnabledException(string message, Exception innerException) : base(message, innerException)
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) {}
UnitTests.Common (3)
TestHelpers.cs (2)
104catch (Exception ex) 211catch (Exception ex)
TestTypes.cs (1)
120public void Exception(System.Exception ex)
vbc (18)
src\roslyn\src\Compilers\Shared\BuildClient.cs (2)
178catch (Exception ex) 244catch (Exception ex)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (11)
135catch (Exception) 147catch (Exception) 303catch (Exception e) 328catch (Exception e) 372catch (Exception e) 416catch (Exception e) when (e is IOException || e is TimeoutException) 442catch (Exception e) when (!(e is TaskCanceledException || e is OperationCanceledException)) 857catch (Exception) 904catch (Exception) 936catch (Exception) 955catch (Exception)
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (4)
59internal static void LogException(this ICompilerServerLogger logger, Exception exception, string reason) 71Exception? e = exception.InnerException; 82void AppendException(Exception exception) 137catch (Exception e)
src\roslyn\src\Compilers\Shared\RuntimeHostInfo.cs (1)
56catch (Exception ex)
VBCSCompiler (43)
src\roslyn\src\Compilers\Server\VBCSCompiler\AnalyzerConsistencyChecker.cs (1)
63catch (Exception e)
src\roslyn\src\Compilers\Server\VBCSCompiler\BuildServerController.cs (1)
78catch (Exception e)
src\roslyn\src\Compilers\Server\VBCSCompiler\ClientConnectionHandler.cs (2)
43catch (Exception ex) 137catch (Exception ex)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilationCache.cs (9)
189catch (Exception ex) 339catch (Exception ex) 460catch (Exception ex) 513catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 530catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 536catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) 565catch (Exception ex) 593catch (Exception ex) 651catch (Exception ex)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilationCacheUtilities.cs (1)
68catch (Exception ex)
src\roslyn\src\Compilers\Server\VBCSCompiler\CompilerRequestHandler.cs (1)
162catch (Exception ex)
src\roslyn\src\Compilers\Server\VBCSCompiler\MetadataCache.cs (1)
102catch (Exception)
src\roslyn\src\Compilers\Server\VBCSCompiler\NamedPipeClientConnection.cs (2)
45catch (Exception ex) 76catch (Exception ex)
src\roslyn\src\Compilers\Server\VBCSCompiler\NamedPipeClientConnectionHost.cs (5)
23internal Exception? Exception { get; } 25internal ListenResult(NamedPipeClientConnection? connection = null, Exception? exception = null) 104catch (Exception ex) 113catch (Exception ex) 217catch (Exception ex)
src\roslyn\src\Compilers\Server\VBCSCompiler\ServerDispatcher.cs (1)
121catch (Exception ex)
src\roslyn\src\Compilers\Server\VBCSCompiler\VBCSCompiler.cs (1)
33catch (Exception e)
src\roslyn\src\Compilers\Shared\BuildClient.cs (2)
178catch (Exception ex) 244catch (Exception ex)
src\roslyn\src\Compilers\Shared\BuildServerConnection.cs (11)
135catch (Exception) 147catch (Exception) 303catch (Exception e) 328catch (Exception e) 372catch (Exception e) 416catch (Exception e) when (e is IOException || e is TimeoutException) 442catch (Exception e) when (!(e is TaskCanceledException || e is OperationCanceledException)) 857catch (Exception) 904catch (Exception) 936catch (Exception) 955catch (Exception)
src\roslyn\src\Compilers\Shared\CompilerServerLogger.cs (4)
59internal static void LogException(this ICompilerServerLogger logger, Exception exception, string reason) 71Exception? e = exception.InnerException; 82void AppendException(Exception exception) 137catch (Exception e)
src\roslyn\src\Compilers\Shared\RuntimeHostInfo.cs (1)
56catch (Exception ex)
vstest.console (33)
CommandLine\AssemblyMetadataProvider.cs (4)
43catch (Exception ex) 73catch (Exception ex) 83catch (Exception e) 294catch (Exception ex)
CommandLine\CommandLineException.cs (1)
35public CommandLineException(string? message, Exception? innerException)
CommandLine\Executor.cs (3)
286catch (Exception ex) 394catch (Exception ex) 543catch (Exception e)
CommandLine\InferHelper.cs (3)
106catch (Exception ex) 123catch (Exception ex) 216catch (Exception ex)
CommandLine\TestSourceException.cs (1)
35public TestSourceException(string? message, Exception? innerException)
InProcessVsTestConsoleWrapper.cs (12)
167catch (Exception ex) 180catch (Exception ex) 193catch (Exception ex) 291catch (Exception ex) 358catch (Exception ex) 380catch (Exception ex) 440catch (Exception ex) 519catch (Exception ex) 609catch (Exception ex) 718catch (Exception ex) 829catch (Exception ex) 974catch (Exception ex)
Processors\ArtifactProcessingPostProcessModeProcessor.cs (1)
99catch (Exception e)
Processors\HelpArgumentProcessor.cs (1)
146catch (Exception e)
Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
267catch (Exception ex)
Processors\ResultsDirectoryArgumentProcessor.cs (1)
119catch (Exception ex) when (ex is NotSupportedException or SecurityException or ArgumentException or PathTooLongException or IOException)
Processors\Utilities\ArgumentProcessorFactory.cs (4)
272catch (Exception e) 282catch (Exception e) 313catch (Exception e) 323catch (Exception e)
TestPlatformHelpers\TestRequestManager.cs (1)
1294catch (Exception ex)
vstest.console.arm64 (33)
src\vstest\src\vstest.console\CommandLine\AssemblyMetadataProvider.cs (4)
43catch (Exception ex) 73catch (Exception ex) 83catch (Exception e) 294catch (Exception ex)
src\vstest\src\vstest.console\CommandLine\CommandLineException.cs (1)
35public CommandLineException(string? message, Exception? innerException)
src\vstest\src\vstest.console\CommandLine\Executor.cs (3)
286catch (Exception ex) 394catch (Exception ex) 543catch (Exception e)
src\vstest\src\vstest.console\CommandLine\InferHelper.cs (3)
106catch (Exception ex) 123catch (Exception ex) 216catch (Exception ex)
src\vstest\src\vstest.console\CommandLine\TestSourceException.cs (1)
35public TestSourceException(string? message, Exception? innerException)
src\vstest\src\vstest.console\InProcessVsTestConsoleWrapper.cs (12)
167catch (Exception ex) 180catch (Exception ex) 193catch (Exception ex) 291catch (Exception ex) 358catch (Exception ex) 380catch (Exception ex) 440catch (Exception ex) 519catch (Exception ex) 609catch (Exception ex) 718catch (Exception ex) 829catch (Exception ex) 974catch (Exception ex)
src\vstest\src\vstest.console\Processors\ArtifactProcessingPostProcessModeProcessor.cs (1)
99catch (Exception e)
src\vstest\src\vstest.console\Processors\HelpArgumentProcessor.cs (1)
146catch (Exception e)
src\vstest\src\vstest.console\Processors\ListFullyQualifiedTestsArgumentProcessor.cs (1)
267catch (Exception ex)
src\vstest\src\vstest.console\Processors\ResultsDirectoryArgumentProcessor.cs (1)
119catch (Exception ex) when (ex is NotSupportedException or SecurityException or ArgumentException or PathTooLongException or IOException)
src\vstest\src\vstest.console\Processors\Utilities\ArgumentProcessorFactory.cs (4)
272catch (Exception e) 282catch (Exception e) 313catch (Exception e) 323catch (Exception e)
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (1)
1294catch (Exception ex)
WindowsFormsIntegration (6)
System\Windows\Integration\IntegrationExceptionEventArgs.cs (3)
16public IntegrationExceptionEventArgs(bool throwException, Exception exception) 27private Exception _exception; 47public Exception Exception
System\Windows\Integration\LayoutExceptionEventArgs.cs (1)
15public LayoutExceptionEventArgs(Exception exception)
System\Windows\Integration\PropertyMap.cs (1)
311catch (Exception ex)
System\Windows\Integration\PropertyMappingExceptionEventArgs.cs (1)
19public PropertyMappingExceptionEventArgs(Exception exception, string propertyName, object propertyValue)