MissingParameterValueException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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. |