MissingParameterValueException
Class net10.0
The exception that is thrown when a parameter resource cannot be initialized because its value is missing or cannot be resolved.
namespace Aspire.Hosting;
public class MissingParameterValueException : Aspire.Hosting.DistributedApplicationException{ // ...}Remarks
Section titled Remarks This exception is typically thrown when:
- A parameter value is not provided in configuration and has no default value
- A parameter's value callback throws an exception during execution
- A parameter's value cannot be retrieved from the configured source (e.g., user secrets, environment variables)
Constructors2
Section titled ConstructorsMissingParameterValueException(string) Initializes a new instance of the
MissingParameterValueException class with a specified error message. MissingParameterValueException(string, Exception) Initializes a new instance of the
MissingParameterValueException class with a specified error message and a reference to the inner exception that is the cause of this exception.