Share via


MissingParameterValueException Class

Definition

The exception that is thrown when a parameter resource cannot be initialized because its value is missing or cannot be resolved.

public class MissingParameterValueException : Aspire.Hosting.DistributedApplicationException
type MissingParameterValueException = class
    inherit DistributedApplicationException
Public Class MissingParameterValueException
Inherits DistributedApplicationException
Inheritance
MissingParameterValueException

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)

Constructors

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.

MissingParameterValueException(String)

Initializes a new instance of the MissingParameterValueException class with a specified error message.

Applies to