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