111 references to IsCriticalException
Microsoft.Build (50)
BackEnd\BuildManager\BuildManager.cs (9)
814
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
835
catch (Exception cleanupFailure) when (!ExceptionHandling.
IsCriticalException
(cleanupFailure))
1351
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1518
ExceptionHandling.
IsCriticalException
(exception),
1871
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
2001
if (ExceptionHandling.
IsCriticalException
(ex))
2369
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
2445
return !ExceptionHandling.
IsCriticalException
(e) && !ExceptionHandling.NotExpectedException(e) && e is not BuildAbortedException;
3598
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\BuildManager\MultiThreadedStrictModeScope.cs (2)
99
catch (Exception entryFailure) when (!ExceptionHandling.
IsCriticalException
(entryFailure))
105
catch (Exception restorationFailure) when (!ExceptionHandling.
IsCriticalException
(restorationFailure))
BackEnd\Client\MSBuildClient.cs (3)
264
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex) && ex is not PathTooLongException)
540
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex) && ex is not PathTooLongException)
795
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (5)
277
if (ExceptionHandling.
IsCriticalException
(e))
296
if (ExceptionHandling.
IsCriticalException
(e))
337
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1472
if (ExceptionHandling.
IsCriticalException
(e))
1511
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (4)
312
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
398
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
918
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1643
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
1016
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Components\Logging\EventSourceSink.cs (3)
323
if (ExceptionHandling.
IsCriticalException
(exception))
415
if (ExceptionHandling.
IsCriticalException
(exception))
437
if (ExceptionHandling.
IsCriticalException
(exception))
BackEnd\Components\Logging\LoggingService.cs (2)
1729
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e) && e is not LoggerException)
2069
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e) && e is not LoggerException)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
1035
if (ExceptionHandling.
IsCriticalException
(e))
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
861
if (ExceptionHandling.
IsCriticalException
(ex))
913
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
495
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
899
if (ExceptionHandling.
IsCriticalException
(ex) || Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1")
990
if (ExceptionHandling.
IsCriticalException
(taskException) || (Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1"))
BackEnd\Components\Scheduler\Scheduler.cs (4)
2705
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
2874
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
2914
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
2941
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
BackEnd\Node\InProcNode.cs (1)
324
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Node\OutOfProcNode.cs (1)
842
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Node\ServerNamedMutex.cs (1)
47
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex) && ex is not PathTooLongException)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
877
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1363
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Construction\Solution\SolutionProjectGenerator.cs (1)
2257
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e)) // We don't want any problems scanning the project file to result in aborting the build.
Definition\Project.cs (1)
469
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
Evaluation\Expander\WellKnownFunctions.cs (1)
995
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
Instance\TaskRegistry.cs (2)
1154
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1385
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Logging\LoggerDescription.cs (1)
172
when (!(e is LoggerException /* Polite logger Failure*/ || e is InternalLoggerException /* LoggerClass not found*/ || ExceptionHandling.
IsCriticalException
(e)))
Microsoft.Build.Framework (17)
BackEnd\NodeEndpointOutOfProcBase.cs (1)
500
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
BackEnd\RegisteredTaskObjectCacheBase.cs (1)
148
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
Debugging\DebugUtils.cs (1)
245
isCritical: ExceptionHandling.
IsCriticalException
(ex));
ExceptionHandling.cs (1)
48
if (aggregateException.InnerExceptions.Any(innerException =>
IsCriticalException
(innerException)))
Loader\LoadedType.cs (4)
196
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
210
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
229
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
257
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Loader\TypeLoader.cs (1)
328
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
ReflectableTaskPropertyInfo.cs (1)
97
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Telemetry\TelemetryManager.cs (3)
140
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
196
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
244
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
Utilities\PlatformManifest.cs (1)
158
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Utilities\SDKManifest.cs (1)
337
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Utilities\ToolLocationHelper_ReferenceAssemblies.cs (1)
715
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Utilities\ToolLocationHelper_VisualStudio.cs (1)
89
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Microsoft.Build.Tasks.Core (32)
AppConfig\BindingRedirect.cs (2)
64
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
78
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
AssemblyDependency\Node\NodePipeServer.cs (1)
151
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
AssemblyDependency\ReferenceTable.cs (1)
3002
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
AssemblyDependency\ResolveAssemblyReference.cs (1)
3282
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e)
ErrorFromResources.cs (1)
75
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
GenerateResource.cs (1)
2856
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
GetInstalledSDKLocations.cs (1)
160
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
GetReferenceAssemblyPaths.cs (1)
240
if (ExceptionHandling.
IsCriticalException
(e))
GetSDKReferenceFiles.cs (6)
290
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
940
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
970
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
983
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1105
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
1139
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
StateFileBase.cs (1)
152
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
WriteCodeFragment.cs (2)
577
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
605
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
XmlPeek.cs (4)
77
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
92
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
117
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
130
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
XmlPoke.cs (4)
89
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
111
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
125
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
152
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
XmlTaskUtility.cs (1)
54
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
XslTransformation.cs (5)
139
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
166
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
184
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
220
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
241
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
MSBuild (12)
FilteredBinlogReplay.cs (3)
225
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
240
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
268
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
OutOfProcTaskAppDomainWrapperBase.cs (5)
136
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
381
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
421
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
444
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
480
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
OutOfProcTaskHostNode.cs (2)
1478
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
1754
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
XMake.cs (2)
250
isCritical: ExceptionHandling.
IsCriticalException
(ex));
1447
ExceptionHandling.
IsCriticalException
(exception),