CS202 5- ‹#›
Catching an Exception
nFirst, a catch block is only executed as a result of throwing an exception within a try block.
nSecond, if a throw is executed, control is immediately passed to the appropriate catch block.
nThe statements following the throw are not executed.
nThird, when the catch block is done executing, control goes to the statement immediately following the try block and associated sequence of catch blocks in which the exception was handled; it does not continue with the statement following the throw.
nOf course, if a catch block contains a return, exit, or abort, then the program either returns from the function containing the catch block or exits the program.