4 instantiations of ProjectCacheException
Microsoft.Build (4)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
33new(typeof(ProjectCacheException), (msg, inner) => new ProjectCacheException(msg, inner)),
BackEnd\Components\ProjectCache\ProjectCacheException.cs (3)
62throw new ProjectCacheException(message, innerException, hasBeenLoggedByProjectCache: false, errorCode); 73throw new ProjectCacheException(message: message, innerException: null, hasBeenLoggedByProjectCache: true, errorCode: errorCode); 84throw new ProjectCacheException(message: message, innerException: null, hasBeenLoggedByProjectCache: false, errorCode: errorCode);
18 references to ProjectCacheException
Microsoft.Build (10)
BackEnd\Components\Communications\SerializationContractInitializer.cs (1)
33new(typeof(ProjectCacheException), (msg, inner) => new ProjectCacheException(msg, inner)),
BackEnd\Components\ProjectCache\ProjectCacheService.cs (9)
271ProjectCacheException.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheInitializationFailed"); 360ProjectCacheException.ThrowForMSBuildIssueWithTheProjectCache("NoProjectCachePluginFoundInAssembly", pluginAssemblyPath); 548ProjectCacheException.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheQueryFailed", buildRequest.ProjectFullPath); 556catch (Exception e) when (e is not ProjectCacheException) 778catch (Exception e) when (e is not ProjectCacheException) 794ProjectCacheException.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheHandleBuildResultFailed", fileAccessContext.ProjectFullPath); 847catch (Exception e) when (e is not ProjectCacheException) 862ProjectCacheException.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheShutdownFailed"); 881ProjectCacheException.ThrowAsUnhandledException(
Microsoft.Build.Engine.UnitTests (6)
ProjectCache\ProjectCacheTests.cs (6)
1141buildResult.Exception.ShouldBeOfType<ProjectCacheException>(); 1178var e = Should.Throw<ProjectCacheException>(() => buildSession!.Dispose()); 1275buildResult.Exception.ShouldBeOfType<ProjectCacheException>(); 1296Should.Throw<ProjectCacheException>(() => buildSession.Dispose()); 1349Should.Throw<ProjectCacheException>(() => buildSession.Dispose()).InnerException!.Message.ShouldContain("Cache plugin exception from EndBuildAsync");
MSBuild (2)
XMake.cs (2)
1017catch (ProjectCacheException e) 1656if (exception is LoggerException or InternalLoggerException or ProjectCacheException)