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