109 references to IsCriticalException
Microsoft.Build (43)
BackEnd\BuildManager\BuildManager.cs (7)
1249ExceptionHandling.IsCriticalException(exception), 1592catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1699catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1710catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 2068catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 2141return !ExceptionHandling.IsCriticalException(e) && !ExceptionHandling.NotExpectedException(e) && e is not BuildAbortedException; 3270catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Client\MSBuildClient.cs (1)
643catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (5)
277if (ExceptionHandling.IsCriticalException(e)) 296if (ExceptionHandling.IsCriticalException(e)) 337catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1465if (ExceptionHandling.IsCriticalException(e)) 1504catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
848catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1354catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
667catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Components\Logging\EventSourceSink.cs (3)
322if (ExceptionHandling.IsCriticalException(exception)) 414if (ExceptionHandling.IsCriticalException(exception)) 436if (ExceptionHandling.IsCriticalException(exception))
BackEnd\Components\Logging\LoggingService.cs (2)
1515catch (Exception e) when (!ExceptionHandling.IsCriticalException(e) && e is not LoggerException) 1857catch (Exception e) when (!ExceptionHandling.IsCriticalException(e) && e is not LoggerException)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
1031if (ExceptionHandling.IsCriticalException(e))
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
845if (ExceptionHandling.IsCriticalException(ex)) 892catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
599catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 852if (ExceptionHandling.IsCriticalException(ex) || Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1") 943if (ExceptionHandling.IsCriticalException(taskException) || (Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1"))
BackEnd\Components\Scheduler\Scheduler.cs (4)
2694catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2863catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2903catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2930catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
BackEnd\Node\InProcNode.cs (1)
330catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Node\OutOfProcNode.cs (1)
820catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
718catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1084catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
Construction\Solution\SolutionProjectGenerator.cs (1)
2249catch (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)
111isCritical: ExceptionHandling.IsCriticalException(ex));
Definition\Project.cs (1)
480catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
Instance\TaskRegistry.cs (2)
1366catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1590catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
Logging\LoggerDescription.cs (1)
170when (!(e is LoggerException /* Polite logger Failure*/ || e is InternalLoggerException /* LoggerClass not found*/ || ExceptionHandling.IsCriticalException(e)))
NodeEndpointOutOfProcBase.cs (1)
507catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
RegisteredTaskObjectCacheBase.cs (1)
150catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
Microsoft.Build.Engine.UnitTests (8)
BackEnd\EventSourceSink_Tests.cs (8)
177Assert.False(ExceptionHandling.IsCriticalException(e)); 187Assert.False(ExceptionHandling.IsCriticalException(e)); 198Assert.False(ExceptionHandling.IsCriticalException(e)); 212Assert.False(ExceptionHandling.IsCriticalException(e)); 222Assert.True(ExceptionHandling.IsCriticalException(e)); 233Assert.True(ExceptionHandling.IsCriticalException(e)); 247Assert.True(ExceptionHandling.IsCriticalException(e)); 276if (ExceptionHandling.IsCriticalException(e))
Microsoft.Build.Framework (5)
ExceptionHandling.cs (1)
48if (aggregateException.InnerExceptions.Any(innerException => IsCriticalException(innerException)))
Loader\LoadedType.cs (4)
116catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 133catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 144catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 156catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
Microsoft.Build.Tasks.Core (36)
AppConfig\BindingRedirect.cs (2)
64catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 78catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
AssemblyDependency\AssemblyInformation.cs (1)
393catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
AssemblyDependency\ReferenceTable.cs (1)
2927catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
AssemblyDependency\ResolveAssemblyReference.cs (1)
2748catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
CodeTaskFactory.cs (1)
663catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
DebugUtils.cs (1)
111isCritical: ExceptionHandling.IsCriticalException(ex));
ErrorFromResources.cs (1)
61catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
GenerateResource.cs (3)
1925catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2777catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 3136catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
GetInstalledSDKLocations.cs (1)
160catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
GetReferenceAssemblyPaths.cs (1)
240if (ExceptionHandling.IsCriticalException(e))
GetSDKReferenceFiles.cs (6)
290catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 940catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 970catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 983catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1105catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1139catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
NodePipeServer.cs (1)
151catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
StateFileBase.cs (1)
117catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
WriteCodeFragment.cs (2)
569catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 597catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
XamlTaskFactory\TaskParser.cs (1)
134catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
XmlPeek.cs (4)
77catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 92catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 109catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 122catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
XmlPoke.cs (4)
81catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 95catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 109catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 136catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
XslTransformation.cs (4)
120catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 147catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 165catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 192catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
Microsoft.Build.Utilities.Core (5)
DebugUtils.cs (1)
111isCritical: ExceptionHandling.IsCriticalException(ex));
PlatformManifest.cs (1)
157catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
SDKManifest.cs (1)
359catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
ToolLocationHelper.cs (2)
1472catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 3222catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
MSBuild (12)
DebugUtils.cs (1)
111isCritical: ExceptionHandling.IsCriticalException(ex));
NodeEndpointOutOfProcBase.cs (1)
507catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
OutOfProcTaskAppDomainWrapperBase.cs (6)
133catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 259catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 347catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 372catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 395catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 425catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
OutOfProcTaskHostNode.cs (1)
1477catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
RegisteredTaskObjectCacheBase.cs (1)
150catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
XMake.cs (2)
249isCritical: ExceptionHandling.IsCriticalException(ex)); 1118ExceptionHandling.IsCriticalException(exception),