27 references to ReportAndCatch
Microsoft.CodeAnalysis.Features (9)
Diagnostics\Service\DocumentAnalysisExecutor.cs (1)
323
FatalError.
ReportAndCatch
(new Exception("Bug in GetDiagnostics"));
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
333
catch (NullReferenceException e) when (FatalError.
ReportAndCatch
(e))
EditAndContinue\EditAndContinueDebugInfoReader.cs (2)
83
catch (Exception e) when (FatalError.
ReportAndCatch
(e)) // likely a bug in the compiler/debugger
104
catch (InvalidOperationException e) when (FatalError.
ReportAndCatch
(e)) // likely a bug in the compiler/debugger
ExtractMethod\ExtractMethodMatrix.cs (1)
98
FatalError.
ReportAndCatch
(new Exception($"extract method encountered unknown states: {key.ToString()}"), ErrorSeverity.Critical);
Intents\IntentDataProvider.cs (1)
35
catch (Exception ex) when (FatalError.
ReportAndCatch
(ex, ErrorSeverity.General))
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
263
catch (Exception e) when (FatalError.
ReportAndCatch
(e, ErrorSeverity.Diagnostic))
MetadataAsSource\MetadataAsSourceFileService.cs (1)
236
catch (Exception ex) when (FatalError.
ReportAndCatch
(ex))
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
190
catch (BadImageFormatException ex) when (FatalError.
ReportAndCatch
(ex))
Microsoft.CodeAnalysis.Features.ExternalAccess (4)
Copilot\Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.cs (4)
45
FatalError.
ReportAndCatch
(new ArgumentNullException(nameof(externalCopilotService)), ErrorSeverity.Diagnostic);
48
FatalError.
ReportAndCatch
(new ArgumentNullException(nameof(externalCSharpCopilotGenerateDocumentationService)), ErrorSeverity.Diagnostic);
51
FatalError.
ReportAndCatch
(new ArgumentNullException(nameof(externalCSharpOnTheFlyDocsService)), ErrorSeverity.Diagnostic);
54
FatalError.
ReportAndCatch
(new ArgumentNullException(nameof(externalCSharpCopilotGenerateImplementationService)), ErrorSeverity.Diagnostic);
Microsoft.CodeAnalysis.Workspaces (14)
ExternalAccess\UnitTesting\Api\UnitTestingFatalErrorAccessor.cs (1)
13
=> FatalError.
ReportAndCatch
(e);
FindSymbols\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (1)
242
FatalError.
ReportAndCatch
(new InvalidOperationException(message));
ReassignedVariable\AbstractReassignedVariableService.cs (1)
277
FatalError.
ReportAndCatch
(new InvalidOperationException("Local did not come from same file that we were analyzing?"));
Remote\RemoteArguments.cs (1)
118
catch (Exception ex) when (FatalError.
ReportAndCatch
(ex))
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FatalError.cs (2)
199
return
ReportAndCatch
(exception, severity);
229
return
ReportAndCatch
(exception, severity);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefUtilities.cs (1)
21
catch (Exception ex) when (FatalError.
ReportAndCatch
(ex))
Storage\AbstractPersistentStorageService.cs (1)
108
FatalError.
ReportAndCatch
(ex);
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
1021
catch (Exception ex) when (FatalError.
ReportAndCatch
(ex, ErrorSeverity.General))
Workspace\Solution\DocumentState.cs (1)
690
FatalError.
ReportAndCatch
(new Exception($"tree and text has different length {newTree.Length} vs {newText.Length}"), ErrorSeverity.Critical);
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (2)
93
catch (Exception ex) when (FatalError.
ReportAndCatch
(ex))
104
catch (Exception ex) when (FatalError.
ReportAndCatch
(ex))
Workspace\Solution\SolutionState.cs (1)
1367
FatalError.
ReportAndCatch
(new Exception("GetDocumentIdsWithFilePath returned a document in a project that does not exist."));
Workspace\WorkspaceEventMap.cs (1)
106
catch (Exception e) when (FatalError.
ReportAndCatch
(e))