Lecture overview -- Keyboard shortcut: 'u'  Previous page: Exceptions in a C# program -- Keyboard shortcut: 'p'  Next page: Handling 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 17 : 30

The try-catch statement C#
The try-catch statement allows us handle certain exceptions instead of stopping the program
try
  try-block
catch (exception-type-1 name)
  catch-block-1
catch (exception-type-2 name)
  catch-block-2
...