19.3 Exceptions
try-catch-throw mechanism
- Later addition to C++
- An error is signaled by throwing an exception
- Any type can be thrown
- If not handled (caught) locally, function exits
- Does not return to caller
- Unwinds call stack, looking for an appropriate handler
prev
|top
|next