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