Runtime exceptions

Learn about how to work with runtime exceptions in code

Exceptions should not be considered a way to do program flow. Exceptions should be treated as an exceptional state of the system often caused by faulty infrastructure. At times there are exceptions that are valid due to developers not using an API right. As long as it there is no way to recover an exception is fine. You should not throw an exception and let a caller of your API deal with the recovery of an exception. Exceptions MUST be considered unrecoverable.

Naming of exceptions is covered by the C# Coding Styles.

Last modified December 23, 2020: Change to docsy theme (3a7aed3)