Lecture overview -- Keyboard shortcut: 'u'  Previous page: How are errors handled? -- Keyboard shortcut: 'p'  Next page: Conventional Exception Handling [Section] -- 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 8 : 30
Object-oriented Programming in C#
Exception Handling
Where are errors handled?

Should an error be handled locally, or at another place in the program?

  • Handle errors at the place in the program where they occur

    • If possible, this is the easiest approach

    • Not always possible nor appropriate

  • Handle errors at another place

    • Along the calling chain

    • Separation of concerns