Lecture overview -- Keyboard shortcut: 'u'  Previous page: The class System.Exception in C# -- Keyboard shortcut: 'p'  Next page: Propagation 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 21 : 30

Handling more than one type of exception in C#
Multiple types of exceptions can be handled in a single try control structure
prog.cs
A C# program with an exception handling attempt - not a success.
output
Output from the C# program with an unhandled exception.
prog.cs
A C# program with an exception handling attempt - now successful.
output
Output from the C# program with a handled exception.
Handle specialized exceptions before general exceptions