Lecture overview -- Keyboard shortcut: 'u'  Previous page: Object-oriented Exception Handling [Section] -- Keyboard shortcut: 'p'  Next page: Classification of Errors -- 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 13 : 30
Object-oriented Programming in C#
Exception Handling
Errors as Objects

All relevant knowledge about an error is encapsulated in an object

  • Encapsulation of relevant error knowledge

    • Place of occurrence (class, method, line number)

    • Kind of error

    • Error message formulation

    • Call stack information

  • Transportation of the error

    • From the place of origin to the place of handling

    • Via a special throw mechanism in the language