Exceptions in C#
When something goes wrong at run time, C# throws an exception, and the program crashes unless code catches it. Prevent what you can check for; catch what you can't, most specific type first; and throw your own when a method can't do what it's asked.
Updated

- Category
- C#
- Level
- Apprentice
- Tags
- catch Block (c-sharp), c-sharp, Exception (c-sharp), finally Block (c-sharp), throw (c-sharp), try Block (c-sharp)