4 instantiations of ProjectCacheException
Microsoft.Build (4)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
33
new(typeof(ProjectCacheException), (msg, inner) => new
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);
18 references to ProjectCacheException
Microsoft.Build (10)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
33
new(typeof(
ProjectCacheException
), (msg, inner) => new ProjectCacheException(msg, inner)),
BackEnd\Components\ProjectCache\ProjectCacheService.cs (9)
270
ProjectCacheException
.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheInitializationFailed");
359
ProjectCacheException
.ThrowForMSBuildIssueWithTheProjectCache("NoProjectCachePluginFoundInAssembly", pluginAssemblyPath);
547
ProjectCacheException
.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheQueryFailed", buildRequest.ProjectFullPath);
555
catch (Exception e) when (e is not
ProjectCacheException
)
777
catch (Exception e) when (e is not
ProjectCacheException
)
793
ProjectCacheException
.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheHandleBuildResultFailed", fileAccessContext.ProjectFullPath);
846
catch (Exception e) when (e is not
ProjectCacheException
)
861
ProjectCacheException
.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheShutdownFailed");
880
ProjectCacheException
.ThrowAsUnhandledException(
Microsoft.Build.Engine.UnitTests (6)
ProjectCache\ProjectCacheTests.cs (6)
1141
buildResult.Exception.ShouldBeOfType<
ProjectCacheException
>();
1178
var
e = Should.Throw<
ProjectCacheException
>(() => buildSession!.Dispose());
1275
buildResult.Exception.ShouldBeOfType<
ProjectCacheException
>();
1296
Should.Throw<
ProjectCacheException
>(() => buildSession.Dispose());
1349
Should.Throw<
ProjectCacheException
>(() => buildSession.Dispose()).InnerException!.Message.ShouldContain("Cache plugin exception from EndBuildAsync");
MSBuild (2)
XMake.cs (2)
1017
catch (
ProjectCacheException
e)
1656
if (exception is LoggerException or InternalLoggerException or
ProjectCacheException
)