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)
270ProjectCacheException.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheInitializationFailed"); 359ProjectCacheException.ThrowForMSBuildIssueWithTheProjectCache("NoProjectCachePluginFoundInAssembly", pluginAssemblyPath); 547ProjectCacheException.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheQueryFailed", buildRequest.ProjectFullPath); 555catch (Exception e) when (e is not ProjectCacheException) 777catch (Exception e) when (e is not ProjectCacheException) 793ProjectCacheException.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheHandleBuildResultFailed", fileAccessContext.ProjectFullPath); 846catch (Exception e) when (e is not ProjectCacheException) 861ProjectCacheException.ThrowForErrorLoggedInsideTheProjectCache("ProjectCacheShutdownFailed"); 880ProjectCacheException.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)