## 19.3.1 `try` Block - Example

- Place a handler into the main function that:
  - tells the user that something has gone wrong, and
  - offers a chance to try again with different inputs:
- Handler inspects the object thrown
- `catch` clause resembles a function, w/out a return
- `catch` calls the `what` member of `logic_error`
  - `what` returns the string passed to `e`'s c'tor

prev |top |next