52 references to IsCriticalException
Microsoft.Build (44)
BackEnd\BuildManager\BuildManager.cs (6)
1410catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1517catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1528catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1886catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1959return !ExceptionHandling.IsCriticalException(e) && !ExceptionHandling.NotExpectedException(e) && e is not BuildAbortedException; 3085catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (4)
251if (ExceptionHandling.IsCriticalException(e)) 270if (ExceptionHandling.IsCriticalException(e)) 312catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1436if (ExceptionHandling.IsCriticalException(e))
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
481catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 968catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
BackEnd\Components\Logging\EventSourceSink.cs (3)
322if (ExceptionHandling.IsCriticalException(exception)) 414if (ExceptionHandling.IsCriticalException(exception)) 436if (ExceptionHandling.IsCriticalException(exception))
BackEnd\Components\Logging\LoggingService.cs (2)
1465catch (Exception e) when (!ExceptionHandling.IsCriticalException(e) && e is not LoggerException) 1805catch (Exception e) when (!ExceptionHandling.IsCriticalException(e) && e is not LoggerException)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
1005if (ExceptionHandling.IsCriticalException(e))
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
842if (ExceptionHandling.IsCriticalException(ex)) 887catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
818if (ExceptionHandling.IsCriticalException(ex) || Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1") 909if (ExceptionHandling.IsCriticalException(taskException) || (Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1"))
BackEnd\Components\Scheduler\Scheduler.cs (4)
2684catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2815catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2855catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 2882catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
BackEnd\Node\InProcNode.cs (1)
329catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Node\OutOfProcNode.cs (1)
819catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
686catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1044catch (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)
150if (aggregateException.InnerExceptions.Any(innerException => IsCriticalException(innerException)))
Instance\TaskRegistry.cs (2)
1438catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1649catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
LoadedType.cs (4)
98catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 115catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 126catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 138catch (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)
503catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
RegisteredTaskObjectCacheBase.cs (1)
151catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
TypeUtilities.cs (2)
49catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 68catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
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))