45 references to ErrorSeverity
Microsoft.CodeAnalysis.Workspaces (45)
FindSymbols\SymbolFinder_Hierarchy.cs (1)
192
catch (Exception ex) when (FatalError.ReportAndPropagateUnlessCanceled(ex, cancellationToken,
ErrorSeverity
.Diagnostic))
Rename\ConflictEngine\ConflictResolver.Session.cs (6)
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))
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\FatalError.cs (21)
29
public delegate void ErrorReporterHandler(Exception exception,
ErrorSeverity
severity, bool forceDump);
43
/// cref="ReportNonFatalError(Exception,
ErrorSeverity
, bool)"/></param>
99
public static bool ReportAndPropagate(Exception exception,
ErrorSeverity
severity =
ErrorSeverity
.Uncategorized)
111
public static bool ReportAndPropagateUnlessCanceled(Exception exception,
ErrorSeverity
severity =
ErrorSeverity
.Uncategorized)
140
public static bool ReportAndPropagateUnlessCanceled(Exception exception, CancellationToken contextCancellationToken,
ErrorSeverity
severity =
ErrorSeverity
.Uncategorized)
161
public static bool ReportAndCatch(Exception exception,
ErrorSeverity
severity =
ErrorSeverity
.Uncategorized)
173
public static bool ReportWithDumpAndCatch(Exception exception,
ErrorSeverity
severity =
ErrorSeverity
.Uncategorized)
186
public static bool ReportAndCatchUnlessCanceled(Exception exception,
ErrorSeverity
severity =
ErrorSeverity
.Uncategorized)
216
public static bool ReportAndCatchUnlessCanceled(Exception exception, CancellationToken contextCancellationToken,
ErrorSeverity
severity =
ErrorSeverity
.Uncategorized)
237
private static void Report(Exception exception,
ErrorSeverity
severity =
ErrorSeverity
.Uncategorized, bool forceDump = false)
248
public static void ReportNonFatalError(Exception exception,
ErrorSeverity
severity =
ErrorSeverity
.Uncategorized, bool forceDump = false)
253
private static void ReportException(Exception exception,
ErrorSeverity
severity, bool forceDump, ErrorReporterHandler? handler)
Workspace\Solution\Document.cs (1)
375
catch (Exception e) when (FatalError.ReportAndPropagateUnlessCanceled(e, cancellationToken,
ErrorSeverity
.Critical))
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\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\Workspace.cs (1)
550
catch (Exception e) when (FatalError.ReportAndPropagate(e,
ErrorSeverity
.Critical))
Workspace\Workspace_Editor.cs (1)
706
catch (Exception e) when (FatalError.ReportAndPropagate(e,
ErrorSeverity
.General))