2 implementations of Exception
Aspire.Hosting (1)
ApplicationModel\ExecutionConfigurationResult.cs (1)
30public Exception? Exception { get; init; }
Aspire.Hosting.EntityFrameworkCore.Tests (1)
EFMigrationPipelineTests.cs (1)
920public Exception? Exception { get; init; }
20 references to Exception
Aspire.Hosting (10)
ApplicationModel\IExecutionConfigurationBuilder.cs (1)
26/// <returns>The resource configuration result. Any exceptions that occurred while processing are available via the <see cref="IExecutionConfigurationResult.Exception"/> property.</returns>
Dcp\ContainerCreator.cs (2)
228if (configuration.Exception is not null) 230throw new FailedToApplyEnvironmentException($"Failed to apply configuration to container {cr.ModelResource.Name}", configuration.Exception);
Dcp\ExecutableCreator.cs (2)
68if (configuration.Configuration.Exception is not null) 72configuration.Configuration.Exception);
Lifecycle\DotnetBuildCommandEventingSubscriber.cs (1)
66if (executionConfiguration.Exception is { } exception)
Publishing\ManifestPublishingContext.cs (4)
548if (executionConfiguration.Exception is not null) 550ExceptionDispatchInfo.Throw(executionConfiguration.Exception); 586if (executionConfiguration.Exception is not null) 588ExceptionDispatchInfo.Throw(executionConfiguration.Exception);
Aspire.Hosting.EntityFrameworkCore (2)
EFResourceBuilderExtensions.cs (2)
522if (executionConfiguration.Exception is not null) 532Message = executionConfiguration.Exception.Message
Aspire.Hosting.Tests (4)
ExecutionConfigurationGathererTests.cs (4)
262Assert.NotNull(result.Exception); 263var aggregate = Assert.IsType<AggregateException>(result.Exception); 297Assert.NotNull(result.Exception); 298var aggregate = Assert.IsType<AggregateException>(result.Exception);
Aspire.Hosting.TestUtilities (4)
Utils\ArgumentEvaluator.cs (2)
24if (executionConfiguration.Exception is not null) 26ExceptionDispatchInfo.Throw(executionConfiguration.Exception);
Utils\EnvironmentVariableEvaluator.cs (2)
25if (executionConfiguration.Exception is not null) 27ExceptionDispatchInfo.Throw(executionConfiguration.Exception);