56 references to IsCriticalException
Microsoft.Build (48)
BackEnd\BuildManager\BuildManager.cs (6)
1354catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1427catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1436catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1827catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex)) 1900return !ExceptionHandling.IsCriticalException(e) && !ExceptionHandling.NotExpectedException(e) && e is not BuildAbortedException; 3043catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (4)
241if (ExceptionHandling.IsCriticalException(e)) 260if (ExceptionHandling.IsCriticalException(e)) 296catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1395if (ExceptionHandling.IsCriticalException(e))
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
466catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 905catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
BackEnd\Components\Logging\EventSourceSink.cs (16)
351if (ExceptionHandling.IsCriticalException(exception)) 393if (ExceptionHandling.IsCriticalException(exception)) 435if (ExceptionHandling.IsCriticalException(exception)) 477if (ExceptionHandling.IsCriticalException(exception)) 519if (ExceptionHandling.IsCriticalException(exception)) 557if (ExceptionHandling.IsCriticalException(exception)) 599if (ExceptionHandling.IsCriticalException(exception)) 641if (ExceptionHandling.IsCriticalException(exception)) 683if (ExceptionHandling.IsCriticalException(exception)) 725if (ExceptionHandling.IsCriticalException(exception)) 767if (ExceptionHandling.IsCriticalException(exception)) 809if (ExceptionHandling.IsCriticalException(exception)) 851if (ExceptionHandling.IsCriticalException(exception)) 885if (ExceptionHandling.IsCriticalException(exception)) 934if (ExceptionHandling.IsCriticalException(exception)) 969if (ExceptionHandling.IsCriticalException(exception))
BackEnd\Components\Logging\LoggingService.cs (2)
1408catch (Exception e) when (!ExceptionHandling.IsCriticalException(e) && e is not LoggerException) 1731catch (Exception e) when (!ExceptionHandling.IsCriticalException(e) && e is not LoggerException)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
872if (ExceptionHandling.IsCriticalException(e))
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
840if (ExceptionHandling.IsCriticalException(ex)) 883catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
571catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 813if (ExceptionHandling.IsCriticalException(ex) || Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1") 904if (ExceptionHandling.IsCriticalException(taskException) || (Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1"))
BackEnd\Node\InProcNode.cs (1)
314catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\Node\OutOfProcNode.cs (1)
794catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
656catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 986catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
Construction\Solution\SolutionProjectGenerator.cs (1)
2175catch (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)
474catch (Exception ex) when (!ExceptionHandling.IsCriticalException(ex))
ExceptionHandling.cs (1)
129if (aggregateException.InnerExceptions.Any(innerException => IsCriticalException(innerException)))
Instance\TaskRegistry.cs (2)
1333catch (Exception e) when (!ExceptionHandling.IsCriticalException(e)) 1532catch (Exception e) when (!ExceptionHandling.IsCriticalException(e))
Logging\LoggerDescription.cs (1)
166when (!(e is LoggerException /* Polite logger Failure*/ || e is InternalLoggerException /* LoggerClass not found*/ || ExceptionHandling.IsCriticalException(e)))
NodeEndpointOutOfProcBase.cs (1)
473catch (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)
174Assert.False(ExceptionHandling.IsCriticalException(e)); 184Assert.False(ExceptionHandling.IsCriticalException(e)); 195Assert.False(ExceptionHandling.IsCriticalException(e)); 209Assert.False(ExceptionHandling.IsCriticalException(e)); 219Assert.True(ExceptionHandling.IsCriticalException(e)); 230Assert.True(ExceptionHandling.IsCriticalException(e)); 244Assert.True(ExceptionHandling.IsCriticalException(e)); 273if (ExceptionHandling.IsCriticalException(e))