Lecture overview -- Keyboard shortcut: 'u'  Previous page: Fundamental Questions about Exception Handling [Section] -- Keyboard shortcut: 'p'  Next page: What is an error? -- 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 2 : 30
Object-oriented Programming in C#
Exception Handling
What is the motivation?

Why should we care about errors and error handling?

  • Understand the nature of errors

    • "An error is not just an error"

  • Prevent as many errors as possible in the final program

    • Automatically - via tools

    • Manually - in a distinguished testing effort

  • Make programs more robust

    • A program should, while executing, be able to resist and survive unexpected situations