File: Interaction\NonInteractiveException.cs
Web Access
Project: src\src\Aspire.Cli\Aspire.Cli.csproj (aspire)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Aspire.Cli.Interaction;
 
/// <summary>
/// Thrown when a required value cannot be resolved in non-interactive mode.
/// Caught centrally by BaseCommand to return a standard exit code.
/// </summary>
internal sealed class NonInteractiveException : Exception
{
    public NonInteractiveException(string symbolDisplayName)
        : base($"Required input {symbolDisplayName} was not provided in non-interactive mode.")
    {
        SymbolDisplayName = symbolDisplayName;
    }
 
    public string SymbolDisplayName { get; }
}