Chapter 3
Controlling the Flow, Converting Types, and Handling Exceptions
Section 5
Handling Exceptions
In this video you will learn about handling exceptions. You've seen several scenarios when errors have occurred. C# calls where an exception has been thrown. A good practice is to avoid writing code that will throw an exception whenever possible, but sometimes you can't. In those scenarios, you must catch the exception and handle it. Some ways of handling exceptions are: - Catch exceptions using the catch block - Catch specific exceptions - Use finally statement