212 references to ExceptionHandling
Microsoft.Build (87)
BackEnd\BuildManager\BuildManager.cs (11)
43
using ExceptionHandling = Microsoft.Build.Framework.
ExceptionHandling
;
807
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
828
catch (Exception cleanupFailure) when (!
ExceptionHandling
.IsCriticalException(cleanupFailure))
1344
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
1511
ExceptionHandling
.IsCriticalException(exception),
1864
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
1994
if (
ExceptionHandling
.IsCriticalException(ex))
2358
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
2434
return !
ExceptionHandling
.IsCriticalException(e) && !
ExceptionHandling
.NotExpectedException(e) && e is not BuildAbortedException;
3583
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
BackEnd\BuildManager\EnvironmentVariableValidator.cs (1)
49
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
BackEnd\BuildManager\MultiThreadedStrictModeScope.cs (5)
97
catch (Exception entryFailure) when (!
ExceptionHandling
.IsCriticalException(entryFailure))
103
catch (Exception restorationFailure) when (!
ExceptionHandling
.IsCriticalException(restorationFailure))
165
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
233
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
291
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
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)
795
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))
1472
if (
ExceptionHandling
.IsCriticalException(e))
1511
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (4)
312
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
398
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
916
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
1605
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
1010
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)
1724
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e) && e is not LoggerException)
2064
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e) && e is not LoggerException)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
28
using ExceptionHandling = Microsoft.Build.Framework.
ExceptionHandling
;
1035
if (
ExceptionHandling
.IsCriticalException(e))
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
856
if (
ExceptionHandling
.IsCriticalException(ex))
908
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (3)
996
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1021
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1056
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
495
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
899
if (
ExceptionHandling
.IsCriticalException(ex) || Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1")
990
if (
ExceptionHandling
.IsCriticalException(taskException) || (Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1"))
BackEnd\Components\Scheduler\Scheduler.cs (4)
2721
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
2890
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
2930
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
2957
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)
842
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 (6)
588
catch (Exception e) when (!
ExceptionHandling
.NotExpectedReflectionException(e))
730
catch (Exception e) when (!
ExceptionHandling
.NotExpectedReflectionException(e))
877
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
1363
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
1883
catch (Exception e) when (e is not LoggerException && e is not InternalLoggerException && !
ExceptionHandling
.NotExpectedReflectionException(e))
2177
catch (Exception e) when (!
ExceptionHandling
.NotExpectedReflectionException(e))
Construction\ProjectRootElement.cs (2)
2067
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
2118
catch (Exception ex) when (!
ExceptionHandling
.NotExpectedIoOrXmlException(ex))
Construction\Solution\SolutionFile.cs (1)
748
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Construction\Solution\SolutionProjectGenerator.cs (1)
2257
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)
469
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
Definition\Toolset.cs (4)
606
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
863
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
914
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
960
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Definition\ToolsetReader.cs (1)
639
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
61
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Evaluation\Evaluator.cs (2)
2230
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
2275
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
Evaluation\Expander.Function.cs (1)
606
catch (Exception ex) when (!
ExceptionHandling
.NotExpectedFunctionException(ex))
Evaluation\Expander.ItemExpander.Transforms.cs (4)
131
catch (Exception e) when (!
ExceptionHandling
.NotExpectedException(e) || e is InvalidOperationException)
191
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
287
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
368
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Evaluation\Expander.PropertyExpander.cs (1)
753
catch (Exception ex) when (!
ExceptionHandling
.NotExpectedRegistryException(ex))
Evaluation\ToolsetElement.cs (1)
102
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
Instance\TaskFactories\AssemblyTaskFactory.cs (2)
300
catch (Exception e) when (!
ExceptionHandling
.NotExpectedReflectionException(e))
515
catch (Exception e) when (!
ExceptionHandling
.NotExpectedReflectionException(e))
Instance\TaskRegistry.cs (3)
1154
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
1291
catch (Exception e) when (!
ExceptionHandling
.NotExpectedReflectionException(e))
1385
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
146
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Logging\FileLogger.cs (2)
120
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
149
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
Logging\LoggerDescription.cs (1)
172
when (!(e is LoggerException /* Polite logger Failure*/ || e is InternalLoggerException /* LoggerClass not found*/ ||
ExceptionHandling
.IsCriticalException(e)))
Microsoft.Build.Framework (35)
BackEnd\NodeEndpointOutOfProcBase.cs (1)
500
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
BackEnd\RegisteredTaskObjectCacheBase.cs (1)
146
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
Debugging\DebugUtils.cs (2)
245
isCritical:
ExceptionHandling
.IsCriticalException(ex));
258
lock (typeof(
ExceptionHandling
))
FileUtilities_TempFiles.cs (1)
205
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
FileUtilities.cs (7)
894
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
977
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
1057
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
1080
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1118
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
1186
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1443
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
ItemSpecModifiers.cs (1)
490
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Loader\LoadedType.cs (4)
196
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
210
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
229
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
257
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
Loader\TypeLoader.cs (1)
328
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
ReflectableTaskPropertyInfo.cs (1)
97
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
Telemetry\TelemetryManager.cs (3)
140
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
196
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
244
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
Utilities\FileMatcher.cs (3)
3055
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex)) { }
3630
ExceptionHandling
.IsIoRelatedException(exception)
3632
&& aggregateException.Flatten().InnerExceptions.All(
ExceptionHandling
.IsIoRelatedException));
Utilities\FrameworkLocationHelper.cs (1)
1026
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Utilities\PlatformManifest.cs (1)
158
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
Utilities\SDKManifest.cs (1)
337
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
Utilities\ToolLocationHelper_PlatformSDKs.cs (3)
129
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
214
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
335
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Utilities\ToolLocationHelper_ReferenceAssemblies.cs (2)
667
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
715
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
Utilities\ToolLocationHelper_SDKDiscovery.cs (1)
695
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Utilities\ToolLocationHelper_VisualStudio.cs (1)
89
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
Microsoft.Build.Tasks.Core (72)
AppConfig\AppConfig.cs (1)
54
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
AppConfig\BindingRedirect.cs (2)
64
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
78
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
141
catch (Exception e) when (e is XmlException ||
ExceptionHandling
.IsIoRelatedException(e))
AssemblyDependency\Node\NodePipeServer.cs (1)
151
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
AssemblyDependency\ReferenceTable.cs (5)
714
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
936
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1029
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1263
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
3002
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
AssemblyDependency\ResolveAssemblyReference.cs (2)
1700
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
3282
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e)
AssemblyDependency\Resolver.cs (1)
339
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Copy.cs (2)
991
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1021
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
CreateManifestResourceName.cs (1)
260
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Delete.cs (1)
153
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
ErrorFromResources.cs (1)
75
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
FileIO\ReadLinesFromFile.cs (1)
71
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
FileIO\WriteLinesToFile.cs (4)
158
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
208
catch (Exception ex) when (attempt < maxAttempts &&
ExceptionHandling
.IsIoRelatedException(ex))
215
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
258
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
FileState.cs (1)
216
if (!
ExceptionHandling
.IsIoRelatedException(_exceptionThrown))
GenerateResource.cs (7)
1623
catch (Exception e) when (!
ExceptionHandling
.NotExpectedIoOrXmlException(e) || e is MSBuildResXException)
1717
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
2725
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
2810
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
2856
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
2878
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
2970
if (
ExceptionHandling
.NotExpectedException(deleteException))
GetAssemblyIdentity.cs (1)
85
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(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))
ListOperators\FindUnderPath.cs (2)
83
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
114
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
MakeDir.cs (1)
85
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
ManifestUtil\LauncherBuilder.cs (1)
112
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
Move.cs (1)
174
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
RedistList.cs (1)
745
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
RemoveDir.cs (2)
139
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
177
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
StateFileBase.cs (3)
81
catch (Exception e) when (!
ExceptionHandling
.NotExpectedSerializationException(e))
152
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
182
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Touch.cs (4)
191
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
263
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
279
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
295
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
WriteCodeFragment.cs (3)
136
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
577
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
605
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)
89
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
111
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
125
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
152
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 (1)
ToolTask.cs (1)
911
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
MSBuild (17)
FilteredBinlogReplay.cs (5)
90
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
225
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
240
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
268
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
283
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
OutOfProcTaskAppDomainWrapperBase.cs (5)
136
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
381
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
421
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
444
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
480
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
OutOfProcTaskHostNode.cs (2)
1481
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
1757
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
XMake.cs (5)
250
isCritical:
ExceptionHandling
.IsCriticalException(ex));
1447
ExceptionHandling
.IsCriticalException(exception),
3323
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
3342
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
4291
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))