54 references to FatalError
Microsoft.CodeAnalysis.Workspaces (54)
Classification\SyntaxClassification\AbstractSyntaxClassificationService.cs (1)
42catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
ExternalAccess\UnitTesting\Api\UnitTestingFatalErrorAccessor.cs (2)
15=> FatalError.ReportAndCatch(e); 18=> FatalError.ReportAndCatchUnlessCanceled(e);
FindSymbols\FindReferences\StreamingFindReferencesProgress.cs (1)
51catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, cancellationToken))
FindSymbols\StreamingProgressCollector.cs (1)
65catch (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)
314catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Rename\ConflictEngine\ConflictResolver.Session.cs (7)
257catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 466catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 650catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 692catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 727catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 771catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, ErrorSeverity.Critical)) 855catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e))
Shared\Extensions\ISymbolExtensions.cs (1)
253catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e, cancellationToken))
Shared\Utilities\AsyncBatchingWorkQueue`2.cs (1)
273catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, ErrorSeverity.Critical))
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
419catch (Exception ex) when (FatalError.ReportAndCatch(ex, ErrorSeverity.Diagnostic))
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)
78var targetType = assembly.GetType(typeof(FatalError).FullName!, throwOnError: true)!;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AsyncLazy`1.cs (1)
447catch (Exception e) when (FatalError.ReportAndPropagate(e))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EventMap.cs (1)
174catch (Exception e) when (FatalError.ReportAndPropagate(e))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\TaskExtensions.cs (3)
83FatalError.ReportAndCatch(exception); 88task.ContinueWith(p => FatalError.ReportAndCatchUnlessCanceled(p.Exception!), 98task.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\Solution\Document.cs (2)
375catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 491catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Workspace\Solution\DocumentState.cs (3)
208catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 230catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 688FatalError.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)
655catch (Exception ex) when (FatalError.ReportAndPropagate(ex))
Workspace\Solution\SolutionCompilationState.cs (3)
1238catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 1258catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 1611catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical))
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (5)
267catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 350catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 395catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 465catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken, ErrorSeverity.Critical)) 980catch (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)
155catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken))
Workspace\Solution\SolutionState.cs (1)
1325FatalError.ReportAndCatch(new Exception("GetDocumentIdsWithFilePath returned a document in a project that does not exist."));
Workspace\Solution\SolutionState_Checksum.cs (1)
160catch (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)
550catch (Exception e) when (FatalError.ReportAndPropagate(e, ErrorSeverity.Critical)) 734catch (Exception e) when (FatalError.ReportAndCatchUnlessCanceled(e))
Workspace\Workspace_Editor.cs (1)
706catch (Exception e) when (FatalError.ReportAndPropagate(e, ErrorSeverity.General))