Exceptions are a better way to handle error checking than if statements
-
try block of code
- catch block of code after try block
- somewhere with the try (even via a function call, an exceptions can
be thrown
- Exception propagation is an important topic - where does the computer
look to find an exception handler?
cpluplus had a good
tutorial for beginning exceptions without objects.
The builtin exceptions are also at Cplusplus site