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)
271
ProjectCacheException
.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheInitializationFailed");
360
ProjectCacheException
.ThrowForMSBuildIssueWithTheProjectCache("NoProjectCachePluginFoundInAssembly", pluginAssemblyPath);
548
ProjectCacheException
.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheQueryFailed", buildRequest.ProjectFullPath);
556
catch (Exception e) when (e is not
ProjectCacheException
)
778
catch (Exception e) when (e is not
ProjectCacheException
)
794
ProjectCacheException
.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheHandleBuildResultFailed", fileAccessContext.ProjectFullPath);
847
catch (Exception e) when (e is not
ProjectCacheException
)
862
ProjectCacheException
.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheShutdownFailed");
881
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
)