OptionsValidationException

The .NET exception thrown when options fail validation, naming the options class, the failing member and the error.

In more detail

Its message lists each failure, so a bad setting can be fixed without a debugger. With ValidateOnStart it appears at startup and the process exits before serving anything.

Related terms

Taught in

References