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 and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 21 : 30
Object-oriented Programming in C#
Exception Handling
Handling more than one type of exception in C#

Multiple types of exceptions can be handled in a single try control structure

/user/normark/oop-csharp-1/sources/c-sharp/exception/handled-exception-more/prog.csA C# program with an exception handling attempt - not a success. This program is explained


/user/normark/oop-csharp-1/sources/c-sharp/exception/handled-exception-more/outputOutput from the C# program with an unhandled exception.


/user/normark/oop-csharp-1/sources/c-sharp/exception/handled-exception-more-1/prog.csA C# program with an exception handling attempt - now successful. This program is explained


/user/normark/oop-csharp-1/sources/c-sharp/exception/handled-exception-more-1/outputOutput from the C# program with a handled exception.


Handle specialized exceptions before general exceptions