99 references to IsCriticalException
Microsoft.Build (44)
BackEnd\BuildManager\BuildManager.cs (6)
1335
ExceptionHandling.
IsCriticalException
(exception),
1682
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
1812
if (ExceptionHandling.
IsCriticalException
(ex))
2176
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
2249
return !ExceptionHandling.
IsCriticalException
(e) && !ExceptionHandling.NotExpectedException(e) && e is not BuildAbortedException;
3381
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Client\MSBuildClient.cs (3)
264
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex) && ex is not PathTooLongException)
540
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex) && ex is not PathTooLongException)
794
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (5)
277
if (ExceptionHandling.
IsCriticalException
(e))
296
if (ExceptionHandling.
IsCriticalException
(e))
337
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1466
if (ExceptionHandling.
IsCriticalException
(e))
1505
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
843
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1447
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
665
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Components\Logging\EventSourceSink.cs (3)
321
if (ExceptionHandling.
IsCriticalException
(exception))
413
if (ExceptionHandling.
IsCriticalException
(exception))
435
if (ExceptionHandling.
IsCriticalException
(exception))
BackEnd\Components\Logging\LoggingService.cs (2)
1575
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e) && e is not LoggerException)
1915
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e) && e is not LoggerException)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
1035
if (ExceptionHandling.
IsCriticalException
(e))
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
851
if (ExceptionHandling.
IsCriticalException
(ex))
903
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
846
if (ExceptionHandling.
IsCriticalException
(ex) || Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1")
937
if (ExceptionHandling.
IsCriticalException
(taskException) || (Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1"))
BackEnd\Components\Scheduler\Scheduler.cs (4)
2688
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
2857
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
2897
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
2924
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
BackEnd\Node\InProcNode.cs (1)
324
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Node\OutOfProcNode.cs (1)
826
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
BackEnd\Node\ServerNamedMutex.cs (1)
47
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex) && ex is not PathTooLongException)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
875
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1358
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Construction\Solution\SolutionProjectGenerator.cs (1)
2255
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)
468
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
Instance\TaskRegistry.cs (2)
1354
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1580
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Logging\LoggerDescription.cs (1)
172
when (!(e is LoggerException /* Polite logger Failure*/ || e is InternalLoggerException /* LoggerClass not found*/ || ExceptionHandling.
IsCriticalException
(e)))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
111
isCritical: ExceptionHandling.
IsCriticalException
(ex));
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
528
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
src\msbuild\src\Shared\RegisteredTaskObjectCacheBase.cs (1)
150
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
Microsoft.Build.Framework (6)
ExceptionHandling.cs (1)
48
if (aggregateException.InnerExceptions.Any(innerException =>
IsCriticalException
(innerException)))
Loader\LoadedType.cs (4)
129
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
146
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
157
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
169
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
Telemetry\TelemetryManager.cs (1)
108
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
Microsoft.Build.Tasks.Core (33)
AppConfig\BindingRedirect.cs (2)
64
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
78
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
AssemblyDependency\ReferenceTable.cs (1)
2944
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
AssemblyDependency\ResolveAssemblyReference.cs (1)
2893
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
ErrorFromResources.cs (1)
75
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
GenerateResource.cs (1)
2852
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
GetInstalledSDKLocations.cs (1)
160
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
GetReferenceAssemblyPaths.cs (1)
240
if (ExceptionHandling.
IsCriticalException
(e))
GetSDKReferenceFiles.cs (6)
290
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
940
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
970
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
983
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
1105
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
1139
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
111
isCritical: ExceptionHandling.
IsCriticalException
(ex));
src\msbuild\src\Shared\NodePipeServer.cs (1)
151
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
StateFileBase.cs (1)
152
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
WriteCodeFragment.cs (2)
576
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
604
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
XmlPeek.cs (4)
77
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
92
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
117
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
130
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
XmlPoke.cs (4)
87
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
109
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
123
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
150
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
XmlTaskUtility.cs (1)
54
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
XslTransformation.cs (5)
139
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
166
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
184
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
220
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
241
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
Microsoft.Build.Utilities.Core (5)
PlatformManifest.cs (1)
157
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
SDKManifest.cs (1)
358
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
111
isCritical: ExceptionHandling.
IsCriticalException
(ex));
ToolLocationHelper.cs (2)
1472
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
3222
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
MSBuild (11)
OutOfProcTaskAppDomainWrapperBase.cs (5)
134
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
364
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
389
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
412
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
442
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
OutOfProcTaskHostNode.cs (1)
1556
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (1)
111
isCritical: ExceptionHandling.
IsCriticalException
(ex));
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
528
catch (Exception e) when (!ExceptionHandling.
IsCriticalException
(e))
src\msbuild\src\Shared\RegisteredTaskObjectCacheBase.cs (1)
150
catch (Exception ex) when (!ExceptionHandling.
IsCriticalException
(ex))
XMake.cs (2)
250
isCritical: ExceptionHandling.
IsCriticalException
(ex));
1374
ExceptionHandling.
IsCriticalException
(exception),