FormatException

The .NET exception thrown when text cannot be parsed into the requested type, such as int.Parse("2O").

In more detail

Reading configuration as strings and parsing it at each call site produces this failure deep inside a request. The options pattern moves the conversion to startup.

Related terms

Taught in

References