Chapter 16: Exception Handling: A Deeper Look
- 16.2 Hnalding an Attempt to Divide by Zero
- fig16_03.cpp - Rethrowing an exception
- fig16_03a.cpp Replacing "exception"
with "runtime_error" so that we can pass a string message to
display.
- fig16_04.cpp - Stack unwinding
- fig16_04a.cpp - Add an exception
handler in function2(), and rethrow to main().
- fig16_04b.cpp -
16.8 Constructors, Destructors and Exception Handling
- fig16_05.cpp
- throwing bad_alloc when memory cannot be allocated by "new"
- fig16_06.cpp - set_new_handler
- Fig16_07_09 - unique_ptr