5 instantiations of ProjectCacheException
Microsoft.Build (5)
BackEnd\Components\Communications\SerializationContractInitializer.cs (2)
33
new(typeof(ProjectCache.ProjectCacheException), (msg, inner) => new ProjectCache.
ProjectCacheException
(msg, inner)),
36
new(typeof(Experimental.ProjectCache.ProjectCacheException), (msg, inner) => new ProjectCache.
ProjectCacheException
(msg, inner)),
BackEnd\Components\ProjectCache\ProjectCacheException.cs (3)
62
throw new
ProjectCacheException
(message, innerException, hasBeenLoggedByProjectCache: false, errorCode);
73
throw new
ProjectCacheException
(message: message, innerException: null, hasBeenLoggedByProjectCache: true, errorCode: errorCode);
84
throw new
ProjectCacheException
(message: message, innerException: null, hasBeenLoggedByProjectCache: false, errorCode: errorCode);
21 references to ProjectCacheException
Microsoft.Build (10)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
33
new(typeof(ProjectCache.
ProjectCacheException
), (msg, inner) => new ProjectCache.ProjectCacheException(msg, inner)),
BackEnd\Components\ProjectCache\ProjectCacheService.cs (9)
296
ProjectCacheException
.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheInitializationFailed");
437
ProjectCacheException
.ThrowForMSBuildIssueWithTheProjectCache("NoProjectCachePluginFoundInAssembly", pluginAssemblyPath);
644
ProjectCacheException
.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheQueryFailed", buildRequest.ProjectFullPath);
652
catch (Exception e) when (e is not
ProjectCacheException
)
891
catch (Exception e) when (e is not
ProjectCacheException
)
907
ProjectCacheException
.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheHandleBuildResultFailed", fileAccessContext.ProjectFullPath);
975
catch (Exception e) when (e is not
ProjectCacheException
&& e is not Experimental.ProjectCache.ProjectCacheException)
991
ProjectCacheException
.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheShutdownFailed");
1010
ProjectCacheException
.ThrowAsUnhandledException(
Microsoft.Build.Engine.UnitTests (7)
BackEnd\TranslationHelpers.cs (1)
101
right.GetType() == typeof(ProjectCache.
ProjectCacheException
))
ProjectCache\ProjectCacheTests.cs (6)
1160
buildResult.Exception.ShouldBeOfType<
ProjectCacheException
>();
1197
var
e = Should.Throw<
ProjectCacheException
>(() => buildSession!.Dispose());
1294
buildResult.Exception.ShouldBeOfType<
ProjectCacheException
>();
1315
Should.Throw<
ProjectCacheException
>(() => buildSession.Dispose());
1368
Should.Throw<
ProjectCacheException
>(() => buildSession.Dispose()).InnerException!.Message.ShouldContain("Cache plugin exception from EndBuildAsync");
MSBuild (4)
XMake.cs (4)
1006
catch (Exception e) when (e is
ProjectCacheException
|| e is Experimental.ProjectCache.ProjectCacheException)
1009
ProjectCacheException
pce = e as
ProjectCacheException
;
1685
if (exception is LoggerException or InternalLoggerException or
ProjectCacheException
)