Problem 1
List five common examples of exceptions.
Problem 2
Give several reasons why exception-handling techniques should not be used for conventional program control.
Problem 3
Why are exceptions appropriate for dealing with errors produced by library functions?
Problem 4
What is a "resource leak"?
Problem 5
If no exceptions are thrown in a TRy block, where does control proceed to after the try block completes execution?
Problem 8
What happens if no catch handler matches the type of a thrown object?
Problem 10
Why would a programmer specify a base-class type as the type of a catch handler, then throw objects of derived-class types?
Problem 11
Suppose a catch handler with a precise match to an exception object type is available. Under what circumstances might a different handler be executed for exception objects of that type?
Problem 13
What happens when a catch handler throws an exception?
Problem 14
What does the statement throw; do?