47 references to IsCriticalException
Microsoft.Build (39)
BackEnd\BuildManager\BuildManager.cs (6)
1367catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1474catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1485catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1843catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1916return !ExceptionHandling.IsCriticalException(e) && !ExceptionHandling.NotExpectedException(e) && e is not BuildAbortedException; 3031catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (4)
241if (ExceptionHandling.IsCriticalException(e)) 260if (ExceptionHandling.IsCriticalException(e)) 302catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1401if (ExceptionHandling.IsCriticalException(e))
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
471catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 917catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
BackEnd\Components\Logging\EventSourceSink.cs (3)
371if (ExceptionHandling.IsCriticalException(exception)) 399if (ExceptionHandling.IsCriticalException(exception)) 421if (ExceptionHandling.IsCriticalException(exception))
BackEnd\Components\Logging\LoggingService.cs (2)
1453catch (Exception e) when (!ExceptionHandling.IsCriticalException(e) && e is not LoggerException) 1793catch (Exception e) when (!ExceptionHandling.IsCriticalException(e) && e is not LoggerException)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
876if (ExceptionHandling.IsCriticalException(e))
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
841if (ExceptionHandling.IsCriticalException(ex)) 884catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
573catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 815if (ExceptionHandling.IsCriticalException(ex) || Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1") 906if (ExceptionHandling.IsCriticalException(taskException) || (Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1"))
BackEnd\Components\Scheduler\Scheduler.cs (4)
2573catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2687catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2727catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2754catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
BackEnd\Node\InProcNode.cs (1)
324catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Node\OutOfProcNode.cs (1)
810catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
660catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 990catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
Construction\Solution\SolutionProjectGenerator.cs (1)
2192catch (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))
ExceptionHandling.cs (1)
128if (aggregateException.InnerExceptions.Any(innerException => IsCriticalException(innerException)))
Instance\TaskRegistry.cs (2)
1413catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1612catch (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)
474catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
RegisteredTaskObjectCacheBase.cs (1)
151catch (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))