47 references to IsCriticalException
Microsoft.Build (39)
BackEnd\BuildManager\BuildManager.cs (6)
1330
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
1437
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
1448
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
1806
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
1879
return !ExceptionHandling.
IsCriticalException
(e) && !ExceptionHandling.NotExpectedException(e) && e is not BuildAbortedException;
2971
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (4)
241
if (ExceptionHandling.
IsCriticalException
(e))
260
if (ExceptionHandling.
IsCriticalException
(e))
299
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1398
if (ExceptionHandling.
IsCriticalException
(e))
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
466
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
905
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
BackEnd\Components\Logging\EventSourceSink.cs (3)
364
if (ExceptionHandling.
IsCriticalException
(exception))
392
if (ExceptionHandling.
IsCriticalException
(exception))
414
if (ExceptionHandling.
IsCriticalException
(exception))
BackEnd\Components\Logging\LoggingService.cs (2)
1473
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e) && e is not LoggerException)
1813
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e) && e is not LoggerException)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
875
if (ExceptionHandling.
IsCriticalException
(e))
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
841
if (ExceptionHandling.
IsCriticalException
(ex))
884
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
569
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
811
if (ExceptionHandling.
IsCriticalException
(ex) || Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1")
902
if (ExceptionHandling.
IsCriticalException
(taskException) || (Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1"))
BackEnd\Components\Scheduler\Scheduler.cs (4)
2577
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
2691
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
2731
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
2758
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
BackEnd\Node\InProcNode.cs (1)
314
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Node\OutOfProcNode.cs (1)
798
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
656
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
986
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Construction\Solution\SolutionProjectGenerator.cs (1)
2179
catch (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)
474
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
ExceptionHandling.cs (1)
129
if (aggregateException.InnerExceptions.Any(innerException =>
IsCriticalException
(innerException)))
Instance\TaskRegistry.cs (2)
1329
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1528
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Logging\LoggerDescription.cs (1)
170
when (!(e is LoggerException /* Polite logger Failure*/ || e is InternalLoggerException /* LoggerClass not found*/ || ExceptionHandling.
IsCriticalException
(e)))
NodeEndpointOutOfProcBase.cs (1)
473
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
RegisteredTaskObjectCacheBase.cs (1)
151
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
Microsoft.Build.Engine.UnitTests (8)
BackEnd\EventSourceSink_Tests.cs (8)
177
Assert.False(ExceptionHandling.
IsCriticalException
(e));
187
Assert.False(ExceptionHandling.
IsCriticalException
(e));
198
Assert.False(ExceptionHandling.
IsCriticalException
(e));
212
Assert.False(ExceptionHandling.
IsCriticalException
(e));
222
Assert.True(ExceptionHandling.
IsCriticalException
(e));
233
Assert.True(ExceptionHandling.
IsCriticalException
(e));
247
Assert.True(ExceptionHandling.
IsCriticalException
(e));
276
if (ExceptionHandling.
IsCriticalException
(e))