56 references to IsCriticalException
Microsoft.Build (48)
BackEnd\BuildManager\BuildManager.cs (6)
1354
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
1427
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
1436
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
1827
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
1900
return !ExceptionHandling.
IsCriticalException
(e) && !ExceptionHandling.NotExpectedException(e) && e is not BuildAbortedException;
3043
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (4)
241
if (ExceptionHandling.
IsCriticalException
(e))
260
if (ExceptionHandling.
IsCriticalException
(e))
296
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1395
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 (16)
351
if (ExceptionHandling.
IsCriticalException
(exception))
393
if (ExceptionHandling.
IsCriticalException
(exception))
435
if (ExceptionHandling.
IsCriticalException
(exception))
477
if (ExceptionHandling.
IsCriticalException
(exception))
519
if (ExceptionHandling.
IsCriticalException
(exception))
557
if (ExceptionHandling.
IsCriticalException
(exception))
599
if (ExceptionHandling.
IsCriticalException
(exception))
641
if (ExceptionHandling.
IsCriticalException
(exception))
683
if (ExceptionHandling.
IsCriticalException
(exception))
725
if (ExceptionHandling.
IsCriticalException
(exception))
767
if (ExceptionHandling.
IsCriticalException
(exception))
809
if (ExceptionHandling.
IsCriticalException
(exception))
851
if (ExceptionHandling.
IsCriticalException
(exception))
885
if (ExceptionHandling.
IsCriticalException
(exception))
934
if (ExceptionHandling.
IsCriticalException
(exception))
969
if (ExceptionHandling.
IsCriticalException
(exception))
BackEnd\Components\Logging\LoggingService.cs (2)
1408
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e) && e is not LoggerException)
1731
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e) && e is not LoggerException)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
872
if (ExceptionHandling.
IsCriticalException
(e))
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
840
if (ExceptionHandling.
IsCriticalException
(ex))
883
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
571
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
813
if (ExceptionHandling.
IsCriticalException
(ex) || Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1")
904
if (ExceptionHandling.
IsCriticalException
(taskException) || (Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1"))
BackEnd\Node\InProcNode.cs (1)
314
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Node\OutOfProcNode.cs (1)
794
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)
2175
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)
1333
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1532
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Logging\LoggerDescription.cs (1)
166
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)
174
Assert.False(ExceptionHandling.
IsCriticalException
(e));
184
Assert.False(ExceptionHandling.
IsCriticalException
(e));
195
Assert.False(ExceptionHandling.
IsCriticalException
(e));
209
Assert.False(ExceptionHandling.
IsCriticalException
(e));
219
Assert.True(ExceptionHandling.
IsCriticalException
(e));
230
Assert.True(ExceptionHandling.
IsCriticalException
(e));
244
Assert.True(ExceptionHandling.
IsCriticalException
(e));
273
if (ExceptionHandling.
IsCriticalException
(e))