Lecture overview -- Keyboard shortcut: 'u'  Previous page: The try-catch statement C# -- Keyboard shortcut: 'p'  Next page: The hierarchy of exceptions in C# -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Exception Handling - slide 18 : 30

Handling exceptions in C#
A C# program with a handled exception
prog.cs
A C# program with a handled exception.
output
Output from the C# program with a handled exception.
Go to exercise
Exceptions in Convert.ToDouble
The program handles the exception and brings the program execution back on track