Implemented interface member:
property
Exception
Microsoft.Build.BackEnd.IBuildResults.Exception
3 writes to Exception
Microsoft.Build (3)
BackEnd\BuildManager\BuildManager.cs (2)
1151result.Exception = _threadException.SourceException; 2875submission.BuildResult.Exception = e;
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
887result.Exception = ex;
34 references to Exception
Microsoft.Build (8)
BackEnd\BuildManager\BuildManager.cs (6)
1028if (result?.Exception == null) 1149if (result.Exception == null && _threadException != null) 2065if (submissionException == null && finishedBuildSubmission.BuildResult.Exception != null) 2068submissionException = ExceptionDispatchInfo.Capture(finishedBuildSubmission.BuildResult.Exception); 2722if (!submission.LoggingCompleted && result.Exception != null) 2873if (!submission.IsCompleted && submission.BuildResult != null && submission.BuildResult.Exception == null)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
885if (result.Exception == null)
BackEnd\Shared\BuildResult.cs (1)
566_requestException ??= results.Exception;
Microsoft.Build.Engine.UnitTests (23)
BackEnd\BuildManager_Tests.cs (2)
4061submission1.BuildResult.Exception.ShouldBeOfType<InvalidProjectFileException>(); 4062submission2.BuildResult.Exception.ShouldBeOfType<InvalidProjectFileException>();
BackEnd\BuildResult_Tests.cs (6)
86Assert.Null(result.Exception); 90Assert.Equal(e, result.Exception); 329Assert.True(TranslationHelpers.CompareExceptions(result.Exception, deserializedResult.Exception, out string diffReason), diffReason); 330Assert.Equal(result.Exception.Message, deserializedResult.Exception.Message);
BackEnd\RequestBuilder_Tests.cs (1)
236Assert.Equal(typeof(InvalidProjectFileException), _buildRequestCompleted_Entry.Result.Exception.GetType());
BackEnd\ResultsCache_Tests.cs (6)
135Assert.NotNull(retrievedResult.Exception); 428if ((a.Exception == null) ^ (b.Exception == null)) 433if (a.Exception != null) 435if (a.Exception.GetType() != b.Exception.GetType())
InternalEngineHelpers.cs (2)
161actualBuildResult.Exception.ShouldBe(expectedBuildResult.Exception);
ProjectCache\ProjectCacheTests.cs (6)
1140buildResult.Exception.ShouldNotBeNull(); 1141buildResult.Exception.ShouldBeOfType<ProjectCacheException>(); 1145buildResult.Exception.InnerException!.ShouldNotBeNull(); 1146buildResult.Exception.InnerException!.Message.ShouldContain("Cache plugin exception from"); 1150buildResult.Exception.InnerException.ShouldBeNull(); 1628buildResult.Exception.ShouldBeNull();
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (3)
166customMessage: result.Exception is not null ? result.Exception.ToString() : string.Empty); 182result.Exception.Message.ShouldContain(exceptionMessageSubstring);