97 references to IsCriticalException
Microsoft.Build (45)
BackEnd\BuildManager\BuildManager.cs (7)
1318ExceptionHandling.IsCriticalException(exception), 1665catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1775catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1786catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 2147catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 2220return !ExceptionHandling.IsCriticalException(e) && !ExceptionHandling.NotExpectedException(e) && e is not BuildAbortedException; 3349catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Client\MSBuildClient.cs (3)
240catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex) && ex is not PathTooLongException) 516catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex) && ex is not PathTooLongException) 762catch (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)
843catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1435catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
665catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Components\Logging\EventSourceSink.cs (3)
321if (ExceptionHandling.IsCriticalException(exception)) 413if (ExceptionHandling.IsCriticalException(exception)) 435if (ExceptionHandling.IsCriticalException(exception))
BackEnd\Components\Logging\LoggingService.cs (2)
1561catch (Exception e) when (!ExceptionHandling.IsCriticalException(e) && e is not LoggerException) 1901catch (Exception e) when (!ExceptionHandling.IsCriticalException(e) && e is not LoggerException)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
1033if (ExceptionHandling.IsCriticalException(e))
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
851if (ExceptionHandling.IsCriticalException(ex)) 903catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
846if (ExceptionHandling.IsCriticalException(ex) || Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1") 937if (ExceptionHandling.IsCriticalException(taskException) || (Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1"))
BackEnd\Components\Scheduler\Scheduler.cs (4)
2688catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2857catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2897catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2924catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
BackEnd\Node\InProcNode.cs (1)
324catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Node\OutOfProcNode.cs (1)
824catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Node\ServerNamedMutex.cs (1)
47catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex) && ex is not PathTooLongException)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
877catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1367catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
Construction\Solution\SolutionProjectGenerator.cs (1)
2255catch (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)
480catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
Instance\TaskRegistry.cs (2)
1354catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1580catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
Logging\LoggerDescription.cs (1)
172when (!(e is LoggerException /* Polite logger Failure*/ || e is InternalLoggerException /* LoggerClass not found*/ || ExceptionHandling.IsCriticalException(e)))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
111isCritical: ExceptionHandling.IsCriticalException(ex));
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
517catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
src\msbuild\src\Shared\RegisteredTaskObjectCacheBase.cs (1)
150catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
Microsoft.Build.Framework (5)
ExceptionHandling.cs (1)
48if (aggregateException.InnerExceptions.Any(innerException => IsCriticalException(innerException)))
Loader\LoadedType.cs (4)
129catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 146catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 157catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 169catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
Microsoft.Build.Tasks.Core (31)
AppConfig\BindingRedirect.cs (2)
64catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 78catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
AssemblyDependency\ReferenceTable.cs (1)
2944catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
AssemblyDependency\ResolveAssemblyReference.cs (1)
2893catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
ErrorFromResources.cs (1)
61catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
GenerateResource.cs (1)
2852catch (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))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
111isCritical: ExceptionHandling.IsCriticalException(ex));
src\msbuild\src\Shared\NodePipeServer.cs (1)
151catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
StateFileBase.cs (1)
152catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
WriteCodeFragment.cs (2)
576catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 604catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
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)
132catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 159catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 177catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 204catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
Microsoft.Build.Utilities.Core (5)
PlatformManifest.cs (1)
157catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
SDKManifest.cs (1)
358catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
111isCritical: ExceptionHandling.IsCriticalException(ex));
ToolLocationHelper.cs (2)
1472catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 3222catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
MSBuild (11)
OutOfProcTaskAppDomainWrapperBase.cs (5)
133catch (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)
1555catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
111isCritical: ExceptionHandling.IsCriticalException(ex));
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
517catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
src\msbuild\src\Shared\RegisteredTaskObjectCacheBase.cs (1)
150catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
XMake.cs (2)
250isCritical: ExceptionHandling.IsCriticalException(ex)); 1365ExceptionHandling.IsCriticalException(exception),