106 references to IsCriticalException
Microsoft.Build (40)
BackEnd\BuildManager\BuildManager.cs (7)
1249
ExceptionHandling.
IsCriticalException
(exception),
1592
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
1699
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
1710
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
2068
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
2141
return !ExceptionHandling.
IsCriticalException
(e) && !ExceptionHandling.NotExpectedException(e) && e is not BuildAbortedException;
3263
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (5)
257
if (ExceptionHandling.
IsCriticalException
(e))
276
if (ExceptionHandling.
IsCriticalException
(e))
318
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1456
if (ExceptionHandling.
IsCriticalException
(e))
1581
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
780
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1286
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
BackEnd\Components\Logging\EventSourceSink.cs (3)
322
if (ExceptionHandling.
IsCriticalException
(exception))
414
if (ExceptionHandling.
IsCriticalException
(exception))
436
if (ExceptionHandling.
IsCriticalException
(exception))
BackEnd\Components\Logging\LoggingService.cs (2)
1517
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e) && e is not LoggerException)
1859
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e) && e is not LoggerException)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
1031
if (ExceptionHandling.
IsCriticalException
(e))
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
844
if (ExceptionHandling.
IsCriticalException
(ex))
889
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
838
if (ExceptionHandling.
IsCriticalException
(ex) || Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1")
929
if (ExceptionHandling.
IsCriticalException
(taskException) || (Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1"))
BackEnd\Components\Scheduler\Scheduler.cs (4)
2683
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
2814
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
2854
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
2881
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
BackEnd\Node\InProcNode.cs (1)
329
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Node\OutOfProcNode.cs (1)
820
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
718
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1084
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Construction\Solution\SolutionProjectGenerator.cs (1)
2192
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e)) // We don't want any problems scanning the project file to result in aborting the build.
DebugUtils.cs (1)
111
isCritical: ExceptionHandling.
IsCriticalException
(ex));
Definition\Project.cs (1)
480
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
Instance\TaskRegistry.cs (2)
1366
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1590
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Logging\LoggerDescription.cs (1)
170
when (!(e is LoggerException /* Polite logger Failure*/ || e is InternalLoggerException /* LoggerClass not found*/ || ExceptionHandling.
IsCriticalException
(e)))
NodeEndpointOutOfProcBase.cs (1)
510
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
RegisteredTaskObjectCacheBase.cs (1)
150
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
Microsoft.Build.Engine.UnitTests (8)
BackEnd\EventSourceSink_Tests.cs (8)
177
Assert.False(ExceptionHandling.
IsCriticalException
(e));
187
Assert.False(ExceptionHandling.
IsCriticalException
(e));
198
Assert.False(ExceptionHandling.
IsCriticalException
(e));
212
Assert.False(ExceptionHandling.
IsCriticalException
(e));
222
Assert.True(ExceptionHandling.
IsCriticalException
(e));
233
Assert.True(ExceptionHandling.
IsCriticalException
(e));
247
Assert.True(ExceptionHandling.
IsCriticalException
(e));
276
if (ExceptionHandling.
IsCriticalException
(e))
Microsoft.Build.Framework (5)
ExceptionHandling.cs (1)
48
if (aggregateException.InnerExceptions.Any(innerException =>
IsCriticalException
(innerException)))
Loader\LoadedType.cs (4)
116
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
133
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
144
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
156
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Microsoft.Build.Tasks.Core (36)
AppConfig\BindingRedirect.cs (2)
64
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
78
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
AssemblyDependency\AssemblyInformation.cs (1)
422
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
AssemblyDependency\ReferenceTable.cs (1)
2927
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
AssemblyDependency\ResolveAssemblyReference.cs (1)
2748
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
CodeTaskFactory.cs (1)
663
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
DebugUtils.cs (1)
111
isCritical: ExceptionHandling.
IsCriticalException
(ex));
ErrorFromResources.cs (1)
61
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
GenerateResource.cs (3)
1925
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
2779
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
3138
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
GetInstalledSDKLocations.cs (1)
150
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
GetReferenceAssemblyPaths.cs (1)
224
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))
NodePipeServer.cs (1)
151
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
StateFileBase.cs (1)
117
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
WriteCodeFragment.cs (2)
569
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
597
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
XamlTaskFactory\TaskParser.cs (1)
134
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
XmlPeek.cs (4)
77
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
92
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
109
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
122
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
XmlPoke.cs (4)
81
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
95
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
109
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
136
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
XslTransformation.cs (4)
120
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
147
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
165
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
192
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Microsoft.Build.Utilities.Core (5)
DebugUtils.cs (1)
111
isCritical: ExceptionHandling.
IsCriticalException
(ex));
PlatformManifest.cs (1)
157
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
SDKManifest.cs (1)
359
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
ToolLocationHelper.cs (2)
1472
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
3222
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
MSBuild (12)
DebugUtils.cs (1)
111
isCritical: ExceptionHandling.
IsCriticalException
(ex));
NodeEndpointOutOfProcBase.cs (1)
510
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
OutOfProcTaskAppDomainWrapperBase.cs (6)
132
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
258
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
346
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
371
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
393
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
419
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
OutOfProcTaskHostNode.cs (1)
1114
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
RegisteredTaskObjectCacheBase.cs (1)
150
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
XMake.cs (2)
249
isCritical: ExceptionHandling.
IsCriticalException
(ex));
1113
ExceptionHandling.
IsCriticalException
(exception),