Exception Handling


Exception Handling is a type of error-checking, available in many programming languages

Why? When? How?
  Simple Example - note that this is just a toy example to illustrate the syntax and workings of try/catch blocks.  This is not a situation in which one would likely choose to use exception handlers over conventional error checking.  This just makes understanding the syntax easy.

Exception handling examples in textbook (Savitch)

A few code examples from Deitel C++ (old text)