194 references to ExceptionHandling
Microsoft.Build (78)
BackEnd\BuildManager\BuildManager.cs (9)
41
using ExceptionHandling = Microsoft.Build.Framework.
ExceptionHandling
;
1249
ExceptionHandling
.IsCriticalException(exception),
1590
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
1697
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
1708
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
2066
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
2139
return !
ExceptionHandling
.IsCriticalException(e) && !
ExceptionHandling
.NotExpectedException(e) && e is not BuildAbortedException;
3263
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
BackEnd\BuildManager\EnvironmentVariableValidator.cs (1)
48
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
BackEnd\Client\MSBuildClient.cs (1)
642
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))
1465
if (
ExceptionHandling
.IsCriticalException(e))
1504
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
848
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
1354
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)
1513
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e) && e is not LoggerException)
1853
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e) && e is not LoggerException)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
27
using ExceptionHandling = Microsoft.Build.Framework.
ExceptionHandling
;
1030
if (
ExceptionHandling
.IsCriticalException(e))
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
844
if (
ExceptionHandling
.IsCriticalException(ex))
891
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (3)
987
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1012
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1047
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
850
if (
ExceptionHandling
.IsCriticalException(ex) || Environment.GetEnvironmentVariable("MSBUILDDONOTCATCHTASKEXCEPTIONS") == "1")
941
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)
820
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (6)
435
catch (Exception e) when (!
ExceptionHandling
.NotExpectedReflectionException(e))
574
catch (Exception e) when (!
ExceptionHandling
.NotExpectedReflectionException(e))
718
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
1084
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
1457
catch (Exception e) when (e is not LoggerException && e is not InternalLoggerException && !
ExceptionHandling
.NotExpectedReflectionException(e))
1743
catch (Exception e) when (!
ExceptionHandling
.NotExpectedReflectionException(e))
Construction\ProjectRootElement.cs (2)
2065
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
2116
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)
2249
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))
Definition\Toolset.cs (4)
607
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
864
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
911
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
957
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Definition\ToolsetReader.cs (1)
623
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Evaluation\Conditionals\FunctionCallExpressionNode.cs (1)
61
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Evaluation\Evaluator.cs (2)
2081
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
2126
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
Evaluation\Expander.cs (6)
1817
catch (Exception ex) when (!
ExceptionHandling
.NotExpectedRegistryException(ex))
2567
catch (Exception e) when (!
ExceptionHandling
.NotExpectedException(e) || e is InvalidOperationException)
2622
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
2708
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
2783
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
4225
catch (Exception ex) when (!
ExceptionHandling
.NotExpectedFunctionException(ex))
Evaluation\ToolsetElement.cs (1)
102
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
Instance\TaskFactories\AssemblyTaskFactory.cs (2)
285
catch (Exception e) when (!
ExceptionHandling
.NotExpectedReflectionException(e))
506
catch (Exception e) when (!
ExceptionHandling
.NotExpectedReflectionException(e))
Instance\TaskRegistry.cs (3)
1364
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
1494
catch (Exception e) when (!
ExceptionHandling
.NotExpectedReflectionException(e))
1588
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)
170
when (!(e is LoggerException /* Polite logger Failure*/ || e is InternalLoggerException /* LoggerClass not found*/ ||
ExceptionHandling
.IsCriticalException(e)))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (2)
111
isCritical:
ExceptionHandling
.IsCriticalException(ex));
124
lock (typeof(
ExceptionHandling
))
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
507
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 (17)
FileUtilities.cs (6)
944
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
1027
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
1107
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
1144
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
1212
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1469
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
FileUtilities_TempFiles.cs (1)
204
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
ItemSpecModifiers.cs (1)
472
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Loader\LoadedType.cs (4)
116
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
133
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
144
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
156
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
Utilities\FileMatcher.cs (4)
2029
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
2614
if (ex.Flatten().InnerExceptions.All(
ExceptionHandling
.IsIoRelatedException))
2625
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
2647
return ex.Flatten().InnerExceptions.All(
ExceptionHandling
.IsIoRelatedException);
Utilities\FrameworkLocationHelper.cs (1)
1046
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(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\ReferenceTable.cs (5)
704
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
926
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1018
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1232
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
2944
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
AssemblyDependency\ResolveAssemblyReference.cs (2)
1673
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
2893
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
AssemblyDependency\Resolver.cs (1)
334
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Copy.cs (2)
993
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1023
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
CreateManifestResourceName.cs (1)
259
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
Delete.cs (1)
153
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
ErrorFromResources.cs (1)
61
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
FileIO\ReadLinesFromFile.cs (1)
71
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
FileIO\WriteLinesToFile.cs (5)
165
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
193
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
242
catch (Exception ex) when (attempt < maxAttempts &&
ExceptionHandling
.IsIoRelatedException(ex))
249
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
291
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
FileState.cs (1)
216
if (!
ExceptionHandling
.IsIoRelatedException(_exceptionThrown))
GenerateResource.cs (7)
1544
catch (Exception e) when (!
ExceptionHandling
.NotExpectedIoOrXmlException(e) || e is MSBuildResXException)
1638
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
2644
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
2729
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
2775
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
2797
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
2888
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)
179
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))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (2)
111
isCritical:
ExceptionHandling
.IsCriticalException(ex));
124
lock (typeof(
ExceptionHandling
))
src\msbuild\src\Shared\NodePipeServer.cs (1)
151
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
StateFileBase.cs (3)
80
catch (Exception e) when (!
ExceptionHandling
.NotExpectedSerializationException(e))
151
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
181
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)
133
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
569
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
597
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))
109
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
122
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
XmlPoke.cs (4)
81
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
95
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
109
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
136
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
XslTransformation.cs (4)
120
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
147
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
165
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
192
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
Microsoft.Build.Utilities.Core (12)
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 (2)
111
isCritical:
ExceptionHandling
.IsCriticalException(ex));
124
lock (typeof(
ExceptionHandling
))
ToolLocationHelper.cs (7)
866
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1063
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1183
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
1472
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
3079
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
3174
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
3222
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
ToolTask.cs (1)
915
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))
MSBuild (15)
OutOfProcTaskAppDomainWrapperBase.cs (5)
133
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
347
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
372
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
395
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
425
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
OutOfProcTaskHostNode.cs (1)
1474
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
src\msbuild\src\Shared\Debugging\DebugUtils.cs (2)
111
isCritical:
ExceptionHandling
.IsCriticalException(ex));
124
lock (typeof(
ExceptionHandling
))
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
507
catch (Exception e) when (!
ExceptionHandling
.IsCriticalException(e))
src\msbuild\src\Shared\RegisteredTaskObjectCacheBase.cs (1)
150
catch (Exception ex) when (!
ExceptionHandling
.IsCriticalException(ex))
XMake.cs (5)
249
isCritical:
ExceptionHandling
.IsCriticalException(ex));
1118
ExceptionHandling
.IsCriticalException(exception),
2806
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
2825
catch (Exception ex) when (
ExceptionHandling
.IsIoRelatedException(ex))
3717
catch (Exception e) when (
ExceptionHandling
.IsIoRelatedException(e))