Microsoft.Extensions.Options.OptionsValidationException
Represents the exception that's thrown when options validation fails.
Gets the validation failures.
Gets the name of the options instance that failed.
Gets the type of the options that failed.
public OptionsValidationException(string optionsName, Type optionsType, IEnumerable<string> failureMessages)
Creates a new instance of OptionsValidationException.