54 references to FatalError
Microsoft.CodeAnalysis.Workspaces (54)
Classification\SyntaxClassification\AbstractSyntaxClassificationService.cs (1)
41catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
ExternalAccess\UnitTesting\Api\UnitTestingFatalErrorAccessor.cs (2)
13=> FatalError.ReportAndCatch(e); 16=> FatalError.ReportAndCatchUnlessCanceled(e);
FindSymbols\FindReferences\StreamingFindReferencesProgress.cs (1)
50catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, cancellationToken))
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\TopLevelSyntaxTree\DeclaredSymbolInfo.cs (1)
236FatalError.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))
Rename\ConflictEngine\ConflictResolver.cs (1)
313catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Rename\ConflictEngine\ConflictResolver.Session.cs (7)
253catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 462catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 645catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 687catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 722catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 766catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 850catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e))
Shared\Extensions\ISymbolExtensions.cs (1)
253catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken))
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (2)
17/// A pre-created delegate to assign to <see cref="FatalError.ErrorReporterHandler" /> if needed. 19internal static readonly FatalError.ErrorReporterHandler Handler = static (e, _, _) => OnFatalException(e);
src\Compilers\Core\Portable\InternalUtilities\FatalError.cs (1)
76var targetType = assembly.GetType(typeof(FatalError).FullName!, throwOnError: true)!;
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
280catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, ErrorSeverity.Critical))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
448catch (Exception e) when (FatalError.ReportAndPropagate(e))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (1)
167catch (Exception e) when (FatalError.ReportAndCatch(e))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (3)
84FatalError.ReportAndCatch(exception); 89task.ContinueWith(p => FatalError.ReportAndCatchUnlessCanceled(p.Exception!), 99task.ContinueWith(p => FatalError.ReportAndCatchUnlessCanceled(p.Exception!, cancellationToken),
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)
1159catch (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 (3)
206catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 228catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 690FatalError.ReportAndCatch(new Exception($"tree and text has different length {newTree.Length} vs {newText.Length}"), ErrorSeverity.Critical);
Workspace\Solution\ProjectState_Checksum.cs (1)
79catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
Workspace\Solution\Solution.cs (1)
663catch (Exception ex) when (FatalError.ReportAndPropagate(ex))
Workspace\Solution\SolutionCompilationState.cs (3)
1316catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 1336catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 1711catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (5)
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)) 990catch (Exception e) when (FatalError.ReportWithDumpAndCatch(e, ErrorSeverity.Critical))
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (2)
92catch (Exception ex) when (FatalError.ReportAndCatch(ex)) 103catch (Exception ex) when (FatalError.ReportAndCatch(ex))
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
146catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Workspace\Solution\SolutionState.cs (1)
1340FatalError.ReportAndCatch(new Exception("GetDocumentIdsWithFilePath returned a document in a project that does not exist."));
Workspace\Solution\SolutionState_Checksum.cs (1)
149catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Workspace\Solution\TextDocumentState_Checksum.cs (1)
46catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Workspace\Workspace.cs (2)
548catch (Exception e) when (FatalError.ReportAndPropagate(e, ErrorSeverity.Critical)) 732catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e))
Workspace\Workspace_Editor.cs (1)
706catch (Exception e) when (FatalError.ReportAndPropagate(e, ErrorSeverity.General))