Exception Handling
- slide 13 : 30
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