41 references to ReportAndCatch
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
StringCopyPaste\StringCopyPasteData.cs (2)
34catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.Critical)) 54catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.Critical))
Microsoft.CodeAnalysis.ExternalAccess.Copilot (4)
Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.cs (4)
45FatalError.ReportAndCatch(new ArgumentNullException(nameof(externalCopilotService)), ErrorSeverity.Diagnostic); 48FatalError.ReportAndCatch(new ArgumentNullException(nameof(externalCSharpCopilotGenerateDocumentationService)), ErrorSeverity.Diagnostic); 51FatalError.ReportAndCatch(new ArgumentNullException(nameof(externalCSharpOnTheFlyDocsService)), ErrorSeverity.Diagnostic); 54FatalError.ReportAndCatch(new ArgumentNullException(nameof(externalCSharpCopilotGenerateImplementationService)), ErrorSeverity.Diagnostic);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Editor\Shared\Utilities\FSharpClassificationTypeMap.cs (1)
48FatalError.ReportAndCatch(new Exception($"classification type doesn't exist for {name}"));
Microsoft.CodeAnalysis.Features (9)
Diagnostics\Service\DocumentAnalysisExecutor.cs (1)
314FatalError.ReportAndCatch(new Exception("Bug in GetDiagnostics"));
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
323catch (NullReferenceException e) when (FatalError.ReportAndCatch(e))
EditAndContinue\EditAndContinueMethodDebugInfoReader.cs (2)
80catch (Exception e) when (FatalError.ReportAndCatch(e)) // likely a bug in the compiler/debugger 101catch (InvalidOperationException e) when (FatalError.ReportAndCatch(e)) // likely a bug in the compiler/debugger
ExtractMethod\ExtractMethodMatrix.cs (1)
98FatalError.ReportAndCatch(new Exception($"extract method encountered unknown states: {key.ToString()}"), ErrorSeverity.Critical);
Intents\IntentDataProvider.cs (1)
35catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.General))
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
247catch (Exception e) when (FatalError.ReportAndCatch(e, ErrorSeverity.Diagnostic))
MetadataAsSource\MetadataAsSourceFileService.cs (1)
236catch (Exception ex) when (FatalError.ReportAndCatch(ex))
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
187catch (BadImageFormatException ex) when (FatalError.ReportAndCatch(ex))
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Features\Diagnostics\DiagnosticDataExtensions.cs (1)
45catch (Exception e) when (FatalError.ReportAndCatch(e))
Handler\InlineCompletions\XmlSnippetParser.cs (1)
53catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.General))
Handler\References\FindUsagesLSPContext.cs (1)
289catch (UriFormatException e) when (FatalError.ReportAndCatch(e))
LspServices\LspServices.cs (1)
240catch (Exception ex) when (FatalError.ReportAndCatch(ex))
Workspaces\LspWorkspaceManager.cs (3)
162catch (Exception ex) when (FatalError.ReportAndCatch(ex)) 277catch (Exception ex) when (FatalError.ReportAndCatch(ex)) 309catch (Exception ex) when (FatalError.ReportAndCatch(ex))
Microsoft.CodeAnalysis.Remote.Workspaces (2)
BrokeredServiceConnection.cs (1)
343return FatalError.ReportAndCatch(exception);
RemoteCallback.cs (1)
226return FatalError.ReportAndCatch(exception);
Microsoft.CodeAnalysis.Workspaces (14)
ExternalAccess\UnitTesting\Api\UnitTestingFatalErrorAccessor.cs (1)
13=> FatalError.ReportAndCatch(e);
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (1)
238FatalError.ReportAndCatch(new InvalidOperationException(message));
ReassignedVariable\AbstractReassignedVariableService.cs (1)
277FatalError.ReportAndCatch(new InvalidOperationException("Local did not come from same file that we were analyzing?"));
Remote\RemoteArguments.cs (1)
118catch (Exception ex) when (FatalError.ReportAndCatch(ex))
src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
196return ReportAndCatch(exception, severity); 226return ReportAndCatch(exception, severity);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
21catch (Exception ex) when (FatalError.ReportAndCatch(ex))
Storage\AbstractPersistentStorageService.cs (1)
108FatalError.ReportAndCatch(ex);
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
1174catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.General))
Workspace\Solution\DocumentState.cs (1)
690FatalError.ReportAndCatch(new Exception($"tree and text has different length {newTree.Length} vs {newText.Length}"), ErrorSeverity.Critical);
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (2)
93catch (Exception ex) when (FatalError.ReportAndCatch(ex)) 104catch (Exception ex) when (FatalError.ReportAndCatch(ex))
Workspace\Solution\SolutionState.cs (1)
1364FatalError.ReportAndCatch(new Exception("GetDocumentIdsWithFilePath returned a document in a project that does not exist."));
Workspace\WorkspaceEventMap.cs (1)
106catch (Exception e) when (FatalError.ReportAndCatch(e))
Microsoft.VisualStudio.IntegrationTest.Setup (1)
TestTraceListener.cs (1)
115FatalError.ReportAndCatch(reportedException, ErrorSeverity.Critical);
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
488FatalError.ReportAndCatch(new LiveShareTextBufferMissingException());